Cyber Amit Whatsapp Link :- https://chat.whatsapp.com/L8Fnab94QHK...
Razorpay Payment Gateway Integration in Android Studio || #Razorpay #payment #androidapp #android
Android SDK Razorpay Link :- https://razorpay.com/docs/payment-gat...
👉 Link tree:- https://linktr.ee/amitmaity
👉 LinkedIn :- / amit-maity-559a911ba
👉 GitHub :- https://github.com/maityamit
👉 Instagram :- / amit_maity_2003
👉 Twitter :- / amitmai40525308
👉 YouTube :- / @cyberamitcommunity
-------------------------------------------------------------------
⚙️ My Gears :
💻 Laptop : HP ENVY Laptop i5 10th gen
https://bit.ly/3gKnRSz
📱 Mobile : Samsung M21
https://bit.ly/3tbmRMt
⌨️ Keyboard : HP C2500 Desktop
https://bit.ly/3kDbE33
💸💰 Donate me :- https://paypal.me/CyberAmit308
💸💰 Buy a Coffee To me :- https://www.buymeacoffee.com/maityamit
Android SDK Integration - Razorpay Standard Checkout
Razorpay Android Standard SDK lets you easily integrate the Razorpay Payment Gateway with your Android application.
Razorpay Android Sample App#
You can refer to the Razorpay Android Sample App to learn how the SDK has been integrated.
Prerequisites#
Create a Razorpay account.
Generate API Keys from the Razorpay Dashboard. You can use the Test Keys for a sandbox experience. No money will be deducted from your account when making test payments. Please use the Live Keys when going live with the application.
Integration Steps#
Steps to integrate your Android application with Razorpay Android Standard SDK are given below:
Install Razorpay Android Standard SDK.
Initialize Razorpay Android Standard SDK.
Create an Order in your Server.
Initiate Payment and Display Checkout Form.
Handle Success and Error Events.
Store Fields in Server.
Verify Payment Signature.
Post-Integration Steps:
Once you have successfully completed the integration, you can setup webhooks, make test payments, replace test key with live key and integrate with other APIs. Refer to the post-integration section for more details.
Step 1: Install Razorpay Android Standard SDK#
We distribute our SDK from the Maven Central Repository. Download the latest versions of the SDK from the Maven Repository and place the checkout-1.6.6.aar file inside the libs folder.
To add the SDK to your app, add the following dependency in your app's build.gradle file:
Step 4: Initiate Payment and Display Checkout Form#
Preload Checkout#
To quickly load the Checkout form, the preload method of Checkout must be called much earlier than the other methods in the payment flow. The loading time of the preload resources can vary, depending on your network's bandwidth.
Accept Live Payments#
After testing the flow of funds end-to-end in test mode, you are now ready to take your integration live. Once you are confident that the integration is working fine, you can switch to the live mode and start accepting payments from customers. But first, you need to swap the test API keys with the live keys.
To generate API key in live mode:
Log into Dashboard and switch to Live mode on the menu.
Navigate to Settings → API Keys → Generate Key to generate API key for live mode.
Download the keys and save it securely.
Replace the test API key with the Live Key in the Checkout code and start accepting real-time payments.
Timeouts#
The transaction timeout is applicable only when your customer attempts the payment.
The timeout is 3 to 15 minutes for an attempted payment. If there is a payment failure due to timeout, the customer is redirected to the Checkout page.
Subscribe to our developer updates
Introduction
Welcome to Razorpay! This guide you to:
Sign up for a Razorpay Account
Choose the right product to start accepting payments from your customers
Sign Up#
First things, first. Sign up for a Razorpay Account to get started. Here are the steps:
Visit our website and click Sign Up.
Complete and submit the pre sign up form.
You will receive a verification email. Click the link to activate your account.
To learn more about our the sign up process, refer to our sign up documentation.
Sign into the Dashboard with your credentials.
By default, you are in the Live mode.
Switch to Test mode. This is a sandbox mode where you can explore the products. You can use our test cards to simulate and test payments.
Start accepting payments
Using our Payment Gateway.
Using one of our other applications.
Complete KYC process and document verification.
Start receiving settlements.