Search code examples
androidfirebasekotlinpayment-gatewaybraintree

Serverless card payment processor integration options


I m currently developing an app for a local company that needs to integrate card payments for enabling customers to buy some sort of physical products.

Are there any options for a "serverless" card payment integration?

Unfortunately I cant use Stripe + Firebase because Stripe is not available for my country. (Romania)

Has anyone implemented a card payment solution using Braintree payments and Firebase?

Thanks a lot.


Solution

  • The Firebase functions-samples repo contains examples of processing payments with Stripe and with Paypal. If you look at the code for these, you'll see that the Firebase aspects of them are fairly similar, and the main differences are in the calls to the Paypal/Stripe API.

    If you need to support another payment provider, you will have to make your own implementation of this approach, typically using these examples as a template. I also recommend checking out the video explaining this flow: Go serverless: manage payments in your apps.