Migrated from Redmine #1102 | Author: Khurram Shaikh Status: Feedback | Priority: High, I’m very impatient | Created: 2023-09-09
I am building custom payment processor, on response from our payment gateway I have to update order status based on payment capture status. I am calling sbpay approve api as per documentation it throws error Invalid timestamp.
I am passing sbpay timestamp comes after calling custom payment processor.
POST https://app.sbpay.me/api/order/183/approve
X-Merchant:jenanmedical
X-Auth-Token:XXXXX528bdb76211cdebe72XXXXXXXXXXc6126aeb19480679ce1c9ca5XXXXXX
X-Signature:a4939cc3610dacd5d357f160921c5fd249b034ee275f93901ed28644ad63a8a2
This time stamp format available in API documentation thays why I pass the same format. and I guess its not any time its should match sbpay timestamp to decode HMAC data.