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

PayPal permanent token #11

Open
osster opened this issue Apr 12, 2021 · 3 comments
Open

PayPal permanent token #11

osster opened this issue Apr 12, 2021 · 3 comments

Comments

@osster
Copy link

osster commented Apr 12, 2021

Hi guys.

I have troubles with PayPal integration.

When I'm using PayPal and trying to send request with

"generatePaymentToken" => true

I'm receiving ApiException: "child "expireAt" fails because ["expireAt" must be a number]".

Is it ok?

@leamarty
Copy link

Hi @osster , thank you for your issue.

For now, the generatePaymentToken param is exclusive for "Credit Card" purchases.

If you need to generate a token to reuse it later, please avoid having PayPal as a payment method for those transactions.
You can specify this with the allowedPaymentMethods param.

We are working on allowing tokenized payments with PayPal as well, but this may take a few weeks still. I'll let you know as soon as it's done.

Please let us know if there's anything else we can do from our side.

@osster
Copy link
Author

osster commented Apr 15, 2021

Thank you for quick answer.

Would be nice if you will update documentation :)

I have another one problem with generatePaymentToken and cards.

I'm receiving callback without paymentToken, but sometimes it exists in payload. Thats weird.

$payment = $monei->payments->confirm($data["payment_id"], [
"paymentToken" => $data["payment_token"],
"generatePaymentToken" => true,
]);

@leamarty
Copy link

Hi @osster , thanks again for your feedback. We just updated our API to make this really consistent.

Please let us know if you're still experiencing this issue or if it is fixed already.

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

2 participants