Mangopay / mangopay2-php-sdk

PHP SDK for MANGOPAY
https://packagist.org/packages/mangopay/php-sdk-v2
MIT License
122 stars 133 forks source link

Possible issue with iDeal payments #417

Closed yannbug closed 4 years ago

yannbug commented 4 years ago

Following this thread on the WordPress Plugin Support Forum, it looks like users wishing to get an iDeal payment page are presented with a Credit Card form instead.

We performed some tests, and it appears the Payin Object returned by the PHP SDK API call has this form:

MangoPay\PayIn Object (
[CreditedWalletId] => 11815120
[PaymentType] => CARD
[PaymentDetails] => MangoPay\PayInPaymentDetailsCard Object (
[CardType] => IDEAL
[CardId] => [StatementDescriptor] => )
[ExecutionType] => WEB
[ExecutionDetails] => MangoPay\PayInExecutionDetailsWeb Object (
[RedirectURL] => *to check*
[ReturnURL] => http://wc.celyan.com/checkout/order-received/3753/?key=wc_order_5JzWt72RpUQs5&transactionId=86364738
[TemplateURL] => https://api.sandbox.mangopay.com/Content/PaylineTemplateWidget?rp=9fdca2ce09f748b2&transactionId=86364738
[TemplateURLOptions] =>
[Culture] => FR
[SecureMode] => DEFAULT )
[AuthorId] => 11815119
[CreditedUserId] => 11815119
[DebitedFunds] => MangoPay\Money Object (
[Currency] => EUR [Amount] => 240 )
[CreditedFunds] => MangoPay\Money Object (
[Currency] => EUR
[Amount] => 240 )
[Fees] => MangoPay\Money Object (
[Currency] => EUR [Amount] => 0 )
[Status] => FAILED
[ResultCode] => *?*
[ResultMessage] => *?*
[ExecutionDate] =>
[Type] => PAYIN
[Nature] => REGULAR
[DebitedWalletId] =>
[Id] => 86364738
[Tag] => WC Order #3753
[CreationDate] => 1598265612 )

Please notice the following parameters:

...it should be confirmed that the PaymentTypeparameter is the right one, and also, il should be checked that the ReturnURL is really an iDeal payin form.

Due to trouble enabling iDEAL on our sandbox account we have not yet been able to confirm at this point what kind of URL is returned with those parameters.

(this ticked was opened as requested by Maxime Gavanon, Lead Product Manager, MANGOPAY, after our conf call of 2020-08-25 at 15:00)