Make Payment
This Section briefs about how to initiate a payment !
Foloosi's React Native SDK provides easy payment collections.
You can use it on the front-end to open payment page or use the actual flow to create Payment Token
Step - 1 - Install dependency with npm package
$ npm install react-native-foloosi --save
Step - 2 - Usage
a. Make Payment with order object
You need to give the order id, title, description, currency code, order amount and customer details like name, email and mobile number.
Use the line of code below to make payment with the order data
b. Make Payment with reference token
Initialize api
Get Reference Token
POST
https://api.foloosi.com/aggregatorapi/web/initialize-setup
Headers
secret_key*
String
Your Merchant Key get from Foloosi Panel
Request Body
transaction_amount*
Double
customer_unique_identifier
String
customer_mobile
String
customer_email
String
customer_name
String
currency*
String
billing_state
String
customer_city
String
customer_address
String
billing_country
String
billing_postal_code
String
Use the line of code below to make payment with the reference token
Api Specification
Request call must be on POST.
This Api will be used to confirm the feature you are about to Use.
For Saved Card Payment Method, You need to pass your customer unique details like email,etc. to customer_unique_identifier.
Post Request Body
customer_unique_identifier
This is mandatory when you are using saved card payment.
This data must be Unique like email id,customer id, etc.,
Support
Visit https://www.foloosi.com for support requests or email to [email protected].
Developed by
Foloosi Technologies Pvt Ltd.
License
Copyrights (c) 2024 Foloosi
Last updated
Was this helpful?