Feature RequestThis is an on-demand feature. Please raise a request with our Support team to get this feature activated on your Razorpay account.to get this feature activated on your account.
Web Integration
After an order is created and the customer’s payment details are received, the information should be sent to Razorpay to complete the payment. You can do this by invokingcreatePayment method and passing method = wallet and wallet=amazonpay.
Example
Android Integration
To integrate Amazon Pay wallet with the Custom Checkout on your Android app:- Download the following SDKs and add the
aarfiles to the application library.- Download Amazon-SDK.
- Download Razorpay-Amazon Pay SDK.
Handy TipsThe Razorpay-Amazon Pay SDK acts as a wrapper over the native Amazon-SDK.
-
Add the following lines of code to the
build.gradlefile of your application:build.gradle
iOS Integration
The iOS integration for Amazon Pay is similar to the Razorpay iOS Custom UI SDK integration.Handy Tips
- Always use the Live key with Amazon Pay, even for testing.
- Razorpay SDK has a minimum deployment target of iOS 10.0, built with Swift 4.2. It requires Xcode 10 and above to work.
Prerequisites
Before you begin the integration, download the following SDKs:- Razorpay SDK that has Amazon Pay enabled.
- AmazonPay SDK.
Integration Steps
To use Amazon Pay via the Razorpay SDK:- Add the Amazon Pay SDK to the project directory containing your .xcodeproj or .xcworkspace file.
-
Add
$(PROJ_DIR)to the framework search paths of your target and set the search type to recursive. -
Add the following code to your info.plist file:
-
Import the PayWithAmazon file to your AppDelegate and implement the following function:
-
Use the following command to trigger Amazon Pay:
Here,
razorpayInstanceis an instance of Razorpay.