Skip to content

Instantly share code, notes, and snippets.

@vaibhav93
Last active July 29, 2018 18:31
Show Gist options
  • Save vaibhav93/10080f73bd9a650b8cee649f2d705438 to your computer and use it in GitHub Desktop.
Save vaibhav93/10080f73bd9a650b8cee649f2d705438 to your computer and use it in GitHub Desktop.
Update payment
// POST http://admin.pinkcityrickshawcompany.com/v1/users/:user_id/update_payment
// NOTE user_id as params in URL
// NOTE send access-token in request headers
{
"razor_payment_id" : "razr345466"
}
//RESPONSE
{
"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": "vaibhav@gmail.com",
"activity_id": 8,
"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": "captured",
"updated_at": "2018-07-29T18:15:51.699Z",
"created_at": "2018-07-29T18:15:51.699Z",
"razorpay_id": "razr2343"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment