Additional Support For Payment Methods
Additional support features available for card.
The Razorpay iOS Custom SDK lets you integrate the supported payment methods on your iOS app's Checkout form.
Use the
to fetch the payment methods available for your account.Below are the sample payloads for each payment method.
Add the following code where you want to initiate an FPX payment:
let options: [String: Any] = ["amount": 100, // amount in currency subunits. Defaults to INR. 100 = 100 paise = INR 1."currency": "MYR", // We support international currencies."email": "nur.aisyah@example.com","contact": "9000090000","order_id": "order_DBJOWzybf0sJbb","method": "fpx","bank": "HSBC","callback_url": "https://en1mwkqo5ioct.x.pipedream.net/","redirect": true]razorpay.authorize(options)
Add the following code where you want to initiate a card payment:
let options: [String: Any] = ["amount": 100, // amount in currency subunits. Defaults to INR. 100 = 100 paise = INR 1."currency": "MYR", // We support international currencies."email": "gaurav.kumar@example.com","contact": "9000090000","order_id": "order_DBJOWzybf0sJbb","method": "card","card[name]": "Gaurav Kumar","card[number]": "5272008806235704","card[expiry_month]": 06,"card[expiry_year]": 30,"card[cvv]": "123"]razorpay.authorize(options)
Add the following code where you want to initiate a wallet payment:
let options = ["amount": "100","currency": "MYR","email": "gaurav.kumar@example.com","order_id": "order_4xbQrmEoA5WJ0G","contact": "9000090000","method": "wallet","wallet": "touchngo",]razorpay.authorize(options)
Is this integration guide useful?