Skip to content

Mayur-Wadpalliwar/eMandate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Razorpay eMandate Test App for PHP

Sample App for Razorpay eMandate (Standing Instructions via Netbanking) integration with PHP.

This app uses a non composer integration, ideally you should use composer to integrate the Razorpay API.

Demo

You can see a demo of the php-testapp by opening up the index.html file on your browser. Follow the steps below:

  1. Copy the contents of config.php.sample to config.php.
  2. Enter your key id / key secret in the config.php file.

An easy way to test this is to run php -S localhost:8000 in the root directory and opening http://localhost:8000 in your browser.

Manual Checkout

  1. Create an order using razorpay orders api
  2. Create a customer using razorpay customer creation api
  3. Accept the razorpay_payment_id parameter and razorpay_signature in the form submission
  4. Store the razorpay_order_id as a sessions variable
  5. Verify the signature emitted from our server based on the algorithm given at https://docs.razorpay.com/docs/orders

If you are re-using this as your final code, please make sure you do the following:

  • Edit the keyId/keySecret inside orders-api/order.php
  • Edit the keySecret in orders-api/verify-signature.php

Razorpay PHP SDK

Make sure that you download the latest version of razorpay-php.zip file from the releases section here. You can extract that to the razorpay-php directory as well.

This release currently uses the 1.2.8 version of the SDK. Please ensure that you are using the latest as the test app might lag behind.

About

Razorpay eMandate sample app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published