Migrated from Redmine #698 | Author: Fayaz Ahamed PA
Status: Rejected | Priority: Immediate, there is BUG! | Created: 2021-05-19
I tried to do my payment using the stripe method, The payment reflected success response but when I checked in the stripe the payment was not reflected.
ACCEPT PAYMENT:
URL: https://user-api-v2.simplybook.me/admin/invoices/517/accept-payment
METHOD: PUT
HEADER: server: nginx
date: Thu, 22 Apr 2021 04:27:12 GMT
content-type: application/json; charset=UTF-8
content-length: 202
access-control-allow-origin: *
access-control-allow-methods: POST, PUT, DELETE, GET, OPTIONS
access-control-allow-headers: content-type, x-company-login, x-token, x-requested- with
x-xss-protection: 1; mode=block
REQUEST:
{“payment_processor”:“stripe”,“id”:517}
RESPONSE:
{“client”:{“id”:717,“name”:“indhumathi”,“email”:“indhumathi@srudioq.co.in”,“phone”:“+792860626”,“address1”:null,“address2”:null,“city”:null,“zip”:null,“country_id”:null,“state_id”:null,“full_address”:“”},“created_by_user_id”:null,“created_by_user”:null,“approved_by_user_id”:1,“approved_by_user”:{“id”:1,“login”:“admin”,“firstname”:“webadmin”,“lastname”:“”,“email”:“webadmin”,“phone”:“+61433688598”,“company”:null},“used_discount_amount”:null,“id”:517,“number”:“I-00000321”,“datetime”:“2021-05-19 23:39:40”,“due_datetime”:“2021-05-19 23:44:40”,“payment_datetime”:“2021-05-19 23:40:40”,“amount”:1,“deposit”:1,“is_with_deposit_amount”:false,“rest_amount”:0,“discount_amount”:0,“taxes”:[{“amount”:0.0909,“id”:1,“name”:“GST”,“ratio”:0.1,“is_default”:true}],“tax_amount”:0.0909,“currency”:“AUD”,“client_id”:717,“description”:“”,“payment_received”:true,“payment_processor”:“stripe”,“lines”:[{“booking_ids”:[615],“bookings”:null,“tickets”:,“deposit”:1,“is_with_deposit_amount”:false,“description_string”:“Service: Standard Mobile Inspection (22-05-2021 10:00 AM, 1gabh2xzy) x1 1.00 AUD”,“id”:“893”,“invoice_id”:517,“name”:“Standard Mobile Inspection (22-05-2021 10:00 AM, 1gabh2xzy)”,“type”:“booking”,“discount_ratio”:0,“discount_amount”:0,“discount”:0,“price”:1,“final_price”:1,“qty”:1,“package_qty”:0,“tax”:{“id”:1,“name”:“GST”,“ratio”:0.1,“is_default”:true},“tax_ratio”:0.1,“tax_amount”:0.0909,“amount”:1,“rest_amount”:0,“currency”:“AUD”}],“status”:“paid”,“support_recurring_payment_method”:false,“recurring_profile_id”:null,“promotion_instances”:,“package_instances”:,“deposit_child_invoice”:null,“deposit_parent_invoice”:null}