Last active
July 29, 2018 19:12
-
-
Save vaibhav93/aa178adb71991e3e3b077fb6eb6c9e09 to your computer and use it in GitHub Desktop.
payment create
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// POST http://admin.pinkcityrickshawcompany.com/v1/users/:user_id/create_payment | |
// NOTE user_id as params in URL | |
// NOTE send access-token in request headers | |
{ | |
"customer_name":"Vaibhav Bansal", | |
"customer_contact":"9911020699", | |
"customer_email": "[email protected]", | |
"activity_id": 8, | |
"activity_name": "Jaipur tour" // Helps avoid join on backend. So please send | |
"pickup_time": "10:00AM", | |
"timeslot": "10:00AM-11:00AM", | |
"booking_date": "01-31-2018", // FORMAT is MM-DD-YYYY | |
"number_rickshaw": 2, | |
"pickup_location": "Hotel Paradise", | |
"amount":2000 | |
} | |
// RESPONSE | |
// "id" recieved in response has to be passed to razorpay in "notes" | |
// Refer to this link https://github.com/razorpay/razorpay-android-sample-app/blob/master/app/src/main/java/com/razorpay/sampleapp/PaymentActivity.java | |
// Exactly similar to prefill, add "notes" JSON to "options". Inside "notes" add the "id":value in response below | |
{ | |
"createdAt": "2018-07-29T18:15:51.699Z", | |
"updatedAt": "2018-07-29T18:15:51.699Z", | |
"id": 1, | |
"customer_name": "Vaibhav Bansal", | |
"customer_contact": "9911020699", | |
"customer_email": "[email protected]", | |
"activity_id": 8, | |
"activity_name": "Jaipur tour" | |
"pickup_time": 2, | |
"timeslot": "10:00AM-11:00AM", | |
"booking_date": "2018-01-31T00:00:00.000Z", | |
"number_rickshaw": 2, | |
"amount": 2000, | |
"pickup_location": "Hotel Paradise", | |
"user_id": 1, | |
"payment_status": "initiated", | |
"updated_at": "2018-07-29T18:15:51.699Z", | |
"created_at": "2018-07-29T18:15:51.699Z", | |
"razorpay_id": null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment