Ensure you are using the latest version of the SDK. You can download the latest version of the SDK from GitHub.
Make a checkout form using our Checkout Integration.
razorpay_payment_idparameter in the form submission.
Run the capture code to capture the payment.
Edit the key inside index.ftl.
Add you <key_id> and <key_secret> in the server.yml file.
Build the test application using the following command:Copy
mvn clean install
Run the test application using the following command:Copy
java -jar target/razorpay-java-testapp-1.0-SNAPSHOT.jar server server.yml
If you are re-using this as your final code, please ensure you:
- Edit the key inside index.ftl file.
- Edit the <key_id> and <key_secret> inside server.yml file. Use the live keys when using the application to accept live payments. Click here to learn more about how to generate keys.
- Edit the APPId/APPSecret in the app.py file.