Discussions

Ask a Question
Back to All

Callback_url is not invoked

Hi,
I'm using a web button to create a payment and I'm having trouble redirecting to my callback_url after I've authorized the payment from the mobile app.

This is the body I pass when creating a payment:

paymentBody = [
"flow" => "MATCH_CODE",
"amount_unit" => $amount,
"currency" => $curr,
"callback_url" => "https://mySite/getPaymentDetails.php?payment_id={uuid}"
];

Does {uuid} retrieve the payment id automatically or do I have to pass it in some other ways?

Thanks.