Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

belalmajeed's avatar

Payment Gateway API

we integrate the payment gateway api in laravel but how can we make that web api into api for mobile and ios? what is the way to integrate payment gateways in apps thru backend api's?

0 likes
6 replies
martinbean's avatar

@belalmajeed The same way you would make an API for anything else. Have endpoints that read and write data, and ensure they’re using authentication, especially with something as sensitive as payment information. Or just use something like Stripe.

1 like
belalmajeed's avatar

yes you are right but the problem is when making an how we are going to checkout thru api? i am using stripe.

martinbean's avatar

@belalmajeed Read Stripe’s docs. They have plenty of them.

You’ll need to use Stripe’s API to create a payment intent for the amount you want to charge, and then use Stripe’s mobile SDKs to capture payment method details to be able to complete the payment.

1 like
belalmajeed's avatar

Stripe's mobile SDK? Can you share the link with me please. it will be really helpful. Thankyou so much

Please or to participate in this conversation.