MONEI / monei-php-sdk

MONEI php SDK
https://docs.monei.com
MIT License
2 stars 2 forks source link

PayPal permanent token #11

Open osster opened 3 years ago

osster commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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.