Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SANDBOX] errorCode=02628 #652

Open
Linkinou opened this issue Aug 12, 2024 · 3 comments
Open

[SANDBOX] errorCode=02628 #652

Linkinou opened this issue Aug 12, 2024 · 3 comments

Comments

@Linkinou
Copy link

Linkinou commented Aug 12, 2024

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 ?

@romartohero
Copy link

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....

@Linkinou
Copy link
Author

Hi @mickaelpois , is your team aware of this ?

@victorberson99
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants