-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Still on my paypal serie =)
Since (I guess) this change: https://github.com/Sylius/Sylius/pull/1360/files#diff-399c942287fddfc27a45f2692e55c0e0L52
My payment has nothing for returnUrl and cancelUrl. So I'm asked to pay on Paypal endlessly:
- /payment/capture/rWuZExIkiwvuTz-DB_L6aeE4R6c0YmSHJyaZ85ke-u8 updates payment details without the proper returnUrl, then redirects to paypal:
- https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-4R333320HC439361V redirects to the bad URL:
- /payment/capture/rWuZExIkiwvuTz-DB_L6aeE4R6c0YmSHJyaZ85ke-u8?token=EC-4R333320HC439361V&PayerID=... redirects again to paypal, etc.
When I print $model['RETURNURL'] here https://github.com/Payum/Payum/blob/master/src/Payum/Paypal/ExpressCheckout/Nvp/Action/CaptureAction.php#L37 I got a a value, but not sure it's the good one (shoudn't it be /checkout/purchase/forward?): /payment/capture/rWuZExIkiwvuTz-DB_L6aeE4R6c0YmSHJyaZ85ke-u8. In all cases, this value is not registered in the payment details.
In the security token though, I have the right after_url: /checkout/purchase/forward?payum_token=sivusLwmB-IvjtH4vsJemwwQ5U1YySoPXsU8i_-ZPmM. Why it never redirects to this URL?
@makasim Do I miss something? Any idea?
Does anyone run Paypal successfully on sylius master?
Thanks!