Closed rvdsteege closed 2 years ago
@rvdsteege What about https://github.com/wp-pay-gateways/paypal/commit/56852cc9d54d20b38f13cecc4fbcde0bd09f9842? Or too much REST API abuse?
Maybe not the REST API as intended, but the URL structure and permission check are nice advantages. I'm fine with the JSON response if the hash or payment ID are incorrect. Under normal circumstances, users won't ever get these results.
From internal Help Scout ticket (https://secure.helpscout.net/conversation/1657365126/22847):
We can add the
cancel_return
URL parameter in Gateway.php, for example with:However, this way the payment will not actually be canceled. Therefore, this needs some additional implementation steps.