From the sample code by Paypal:
http://paypal.github.io/PayPal-PHP-SDK/sample/doc/payments/CreatePaymentUsingPayPal.html
How can I define a notify_url in this practice like express checkout?
I found there's a method setNotifyUrl in PayPal\Api\TransactionBase Class, but it seems doesnot work correctly
Thanks in advance!
The previous answer doesn't seem to apply anymore; it appears that, although this is undocumented, notify_url is used by the PayPal REST API. The following code works fine:
actions.payment.create({
payment: {
transactions: [
{
amount: { total: 100,
currency: "USD" },
notify_url: "http://www.example.com"
}
]
}
})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With