Migrated from Redmine #1258 | Author: João Barroso
Status: Feedback | Priority: High, I’m very impatient | Created: 2024-07-30
Hello. I’m doing an integration with SimplyBooking with a custom payment method on SBPay. I put the callback address in the custom payment and it’s working. The thing is, when there’s a request, it sends me this data: order_id=62&amount=35¤cy=EUR&customer_id=6&save_payment_method=0&return_url=https%3A%2F%2Fapp.sbpay.me%2Freturn%2Fteste763254%2Fcustom%2Forder%2F62%2F513fffba4ab8a012daf78e9b79409ff2138cbd7ffbf7dfad3d34aeaf8cd9b199&cancel_url=https%3A%2F%2Fapp.sbpay. me%2Fcancel%2Fteste763254%2Fcustom%2Forder%2F62%2F513fffba4ab8a012daf78e9b79409ff2138cbd7ffbf7dfad3d34aeaf8cd9b199×tamp=2024-07-30T16%3A32%3A51%2B00 %3A00&algo=sha256&signature=477f8fa7b0a537a8394c86643d9e23901b002086ec6d87ee103370871d7095a5
It happens that this order_id with the value 62, in SBPay has the ID 20. When I want to place the booking as paid (through this endpoint “https://user-api-v2.simplybook.me/admin/invoices/{$orderId}/accept-payment”) it gives an error because the ID is wrong.
Is this a bug or is there a way to solve this?
Thank you.