Debit and Credit Card
For card payments,method should be specified as card.
Sample Code
The sample code shown below allows the checkout to accept a card payment of 299.35:Card
Netbanking
For netbanking,method should be specified as netbanking and an additional field bank must specify the bank with its respective bank code. Use getPaymentMethods to retrieve the list of supported bank codes.
Sample Code
The sample code shown below allows the checkout to perform a netbanking transaction for a payment of ₹299.35:Netbanking
UPI
For UPI payments,method should be specified as upi. The SDK supports two flows:
- Intent
- Collect
Handy TipsIf your application targetSdkVersion is 30 or above, add the following code in your app’s manifest file to support the UPI Intent flow.View the complete list of UPI supported apps and their package names.
AndroidManifest.xml
Collect Flow
In Collect Flow, the collect request will be sent to the UPI app for the specifiedvpa.Sample Code
The sample code below will send collect request togaurav.kumar@exampleupi handle:UPI Collect
CRED
Given below is the sample code when the payment method isapp and provider is cred.
Intent Flow
- Check if the Cred app is installed on the customer’s phone. This can be detected by calling
isCredAppAvailablemethod.
Flow
- Handle the Cred app callback in the
AppDelegate. To do this:- Open
Runner.xcworkspace. - Go to
AppDelegate.swift. - Add the
open url: methodas given below:
- Open
Open URL
Collect Flow
Check if the Cred app is installed on the customer’s phone. This can be detected by callingisCredAppAvailable method.
Collect Flow
Pay Later
Given below is the sample code for the payment methodpaylater. Know more about paylater.
Paylater
Cardless EMI
Given below is the sample code for the payment methodcardless_emi. Know more about Cardless EMI.
Cardless EMI
EMI
Given below is the sample code for the payment methodemi.
EMI