Integrating a Payment Gateway for E-commerce App

Hi there!

How can I integrate or connect a payment gateway for my E-commerce app say PayPal, MasterCard and the like?

Thanks

На firebase должно быть дополнение для приема платежей,

Если Вы хотите создать свой вариант, то для этого Вам в любом случае нужно пространство в сети для обработки платежей, это может быть обычный хостинг с поддержкой php.
Существуют два способа

  1. Вся логика оформления на вашей стороне, провайдер только обрабатывает данные платежа и отправляет ответ на Ваш сервер либо хостинг.
  2. Вся логика на стороне провайдера, в итоге провайдер только отправляет Вам ответ результата платежа.
    Во всех случаях ответ должен быть обработан на Вашей стороне.
    Лучше использовать второй вариант. Вы формируете товар, цену, id покупателя и отправляете провайдеру платежа, провайдер получает оплату и отправляет Вам ответ с данными которые Вы ему передали, Вы на своей стороне с помощью скрипта (скрипт и правила его настройки должны предоставляться провайдером) принимаете ответ, разбираете его и создаете запись в БД.

There should be an add-on for accepting payments on firebase,

If you want to create your own version, then for this you will in any case need space in the network for processing payments, this can be a regular hosting with php support.

There are two ways

  1. All the logic of the design is on your side, the provider only processes the payment data and sends a response to your server or hosting.
  2. All the logic is on the provider’s side, as a result, the provider only sends you a response with the payment result.

In all cases, the response must be processed on your side.
It is better to use the second option. You form the product, price, buyer ID and send it to the payment provider, the provider receives the payment and sends you a response with the data that you gave him, you on your side with the help of a script (the script and the rules for its configuration must be provided by the provider) accept the response, parse it and create a record in the database.

Okay. Thank you very much for the response. After all, I don’t know how to integrate it with firebase. Do you have any idea on how to get the add-on, please? And, probably, how to integrate it.

I shall be very appreciative. Thank you

Я могу только показать, где взять плагин, настраивать вы должны его самостоятельно (инструкции есть в сети), Вам нужно будет настроить БД покупок относительно ваших пользователей. Запомните БД с товарами и БД с покупками отличаются. Если ваш товар имеет число, то после успешной покупки нужно будет это число уменьшить.
Я давно хочу создать видео урок по покупкам, но у меня мало времени.

I can only show you where to get the plugin, you must configure it yourself (there are instructions online), you will need to configure the purchase DB relative to your users. Remember, the product DB and the purchase DB are different. If your product has a number, then after a successful purchase you will need to decrease this number.
I have long wanted to create a video tutorial on shopping, but I have little time.

Great one! That’s very informative. Well, for an e-commerce app I have explored Stripe because it will best serve the requirements I wanted.

Nevertheless, thank you very much for the guide and explanations. I really appreciate your efforts.

Perhaps you could go on to visualize how it can be integrated within the workflow in Flipabit when you get chance. For now, I would try myself to see how I can get it working.


Back to Flipabit >
Copyright © 2018. Flipabit Team. All rights reserved.