mangopay2-php-sdk icon indicating copy to clipboard operation
mangopay2-php-sdk copied to clipboard

[SANDBOX] errorCode=02628

Open Linkinou opened this issue 1 year ago • 3 comments

Hi,

Since last week, we encounter an error during the payment process in local environment and github actions (tried with both testing payment cards : https://docs.mangopay.com/testing/payment-methods#cb-visa-mastercard).

After submitting the payment form to MANGOPAY, we end up on the following URL : https://homologation-webpayment.payline.com/webpayment/getToken

With the following content : errorCode=02628

But I don't find this error code in the documentation.

Any ideas ?

[EDIT] It actually happens in local and within github actions but it works on our staging environment...

[UPDATE] According to other PSP documentation, It seems that the error code 02628 refers to an invalid return URL. Here's an example of my return URL : https://localhost/reservation/confirmation/01J5827H8F9D5PRH889KQ60M3T

We didn't change anything, it's the same URL we had before the bug.

[UPDATE 2]

Ok, I just replaced localhost with 127.0.0.1 and the error code disappeared, letting me process the payment.

Why can't we use localhost in the returnURL anymore ?

Linkinou avatar Aug 12 '24 16:08 Linkinou

I have the same probleme and I have a "custom" localhost name for dev purpose. So Why can't we use localhost or other stuff in the returnURL anymore ?

BUT it still work fine with paypal sandbox....

romartohero avatar Aug 14 '24 16:08 romartohero

Hi @mickaelpois , is your team aware of this ?

Linkinou avatar Aug 23 '24 13:08 Linkinou

Hello, I'm using a custom domains (virtual host) on my local environment and my urls are not working anymore. Do you know any work around in the meantime ? Hope this is fixed quickly though

victorberson99 avatar Aug 28 '24 14:08 victorberson99

This has been fixed

Linkinou avatar Feb 04 '25 14:02 Linkinou