pronamic / wp-pronamic-pay

The Pronamic Pay plugin allows you to easily accept payments with payment methods like credit card, iDEAL, Bancontact and Sofort through a variety of payment providers on your WordPress website.
https://pronamicpay.com
34 stars 14 forks source link

Extend PayPal support in gateways #145

Closed remcotolsma closed 3 years ago

remcotolsma commented 3 years ago

Is the PayPal payment method supported in all the gateways?

Internal Basecamp to-do: https://basecamp.com/1810084/projects/10966871/todos/335230949

remcotolsma commented 3 years ago

Just checked https://github.com/wp-pay-gateways/omnikassa-2/blob/master/src/PaymentBrands.php#L103, looks like this is working.

Schermafbeelding 2021-06-17 om 15 37 57
remcotolsma commented 3 years ago

Just checked https://github.com/wp-pay-gateways/buckaroo/blob/master/src/Gateway.php#L354-L365, looks like this is working.

According to https://dev.buckaroo.nl/PaymentMethods/Description/paypal#pay there are no input is required for the PayPal pay action.

remcotolsma commented 3 years ago

The following gateways are iDEAL only gateways:

remcotolsma commented 3 years ago

The https://github.com/wp-pay-gateways/targetpay gateway is deprecated, we have to check this one in the new DigiWallet gateway: https://github.com/wp-pay-gateways/digiwallet.

remcotolsma commented 3 years ago

I just tested https://github.com/wp-pay-gateways/sisow, at first I got the following error message:

TA6121: No PayPal API data

The Explanation from https://github.com/wp-pay-gateways/sisow/blob/develop/documentation/rest540-en.pdf:

No PayPal API data found in the Sisow profile

After entering PayPal API data in the Sisow dashboard I was able to initiate a payment.

www sisow nl_Sisow_portal_Simulator aspx_merchantid=2537541595 txid=TEST90757699172 sha1=4017bff3095cd027ad01abe8d70cdedeaa739030

remcotolsma commented 3 years ago

I just checked https://github.com/wp-pay-gateways/digiwallet, there was no PayPal support implemented, just added this in https://github.com/wp-pay-gateways/digiwallet/commit/fca8fb9941a9c2e1b59e3aad0de5b8c34545348f. When starting a PayPal payment via DigiWallet I currently get the following error:

DW_IE_0001 Unknown internal error

Probably caused by the PayPal payment method not being active within our DigiWallet test account:

www digiwallet nl_nl_organization_141722_payment-methods

I was also unable to activate the PayPal payment method, but I am confident that it will work.

remcotolsma commented 3 years ago

I just checked https://github.com/wp-pay-gateways/payvision, currently the PayPal payment method is not supported: https://github.com/wp-pay-gateways/payvision/blob/b61967ac363ee8eff9f57922cfde62787944801f/src/Gateway.php#L80-L90

We do convert the core payment method to a Payvision brand ID: https://github.com/wp-pay-gateways/payvision/blob/b61967ac363ee8eff9f57922cfde62787944801f/src/BrandId.php#L90-L91

If i enable the PayPal method and start a payment i see the following error on https://test.ppipe.net/connectors/simulator;jsessionid=D0973CD43E4348DD52A038671AE3DA1A.uat01-vm-con02.

Parameter with name <b>cmd</b> is missing in redirection.<br>Parameter with name <b>connector</b> is missing in redirection.<br>Parameter with name <b>ndcid</b> is missing in redirection.<br>Parameter with name <b>token</b> is missing in redirection.<br>Parameter with name <b>useraction</b> is missing in redirection.<br>

This looks like an error with Payvision, but maybe we don't have the minimum required parameters: https://developers.acehubpaymentservices.com/docs/paypal

remcotolsma commented 3 years ago

I just tested https://github.com/wp-pay-gateways/pay-nl, this is working.

Schermafbeelding 2021-06-21 om 21 59 28

rvdsteege commented 3 years ago

Just tested this with https://github.com/wp-pay-gateways/mollie, working as expected in test mode.

Schermafbeelding 2021-06-30 om 11 36 33 Schermafbeelding 2021-06-30 om 11 35 52
remcotolsma commented 3 years ago

I just tested EMS e-Commerce, unfortunately, it is not possible to successfully start a PayPal test payment with our EMS test account.

Goedkeuringscode N:-5002:brand not supported Status MISLUKT Mislukt reden Kaartype, merk of dienst wordt niet ondersteund door onderneming. Probeer het met een andere kaart.

pay local_wp-admin_post php_post=480 action=edit

Created a new issue for this: https://github.com/pronamic/wp-pronamic-pay-ems-e-commerce/issues/3.

remcotolsma commented 3 years ago

Also checked ICEPAY, currently no support for PayPal: https://github.com/wp-pay-gateways/icepay/blob/9ce8fbe5daae6ed0183f28ef6f733011e95f2832/src/Gateway.php#L154-L167

However, they do offer the PayPal payment method: https://icepay.nl/betaalmethoden/paypal/.

Created a new issue for this: https://github.com/pronamic/wp-pronamic-pay-icepay/issues/9.

rvdsteege commented 3 years ago

ING Kassa Compleet supports PayPal:

However, I've just deprecated this gateway in https://github.com/wp-pay-gateways/ing-kassa-compleet/commit/852ced54aa2917a4ad2811821db6e33e4be94d96 (in favour of the Payvision gateway), as the API at api.kassacompleet.nl is not available anymore.

rvdsteege commented 3 years ago

MultiSafepay integration seems to supports PayPal:

However, I was unable to test this as the PayPal method is not enabled for our testing account. I've requested activation of this method via integration@multisafepay.com — awaiting reply.

rvdsteege commented 3 years ago

Added support for PayPal via Ingenico/Ogone in https://github.com/wp-pay-gateways/ogone/commit/3d7b282bf7a725aed4e5a0bee37d50a4032924d7.

Uses a PayPal simulator for testing purposes.

Schermafbeelding 2021-07-26 om 16 13 35
rvdsteege commented 3 years ago

MultiSafepay integration seems to supports PayPal. However, I was unable to test this as the PayPal method is not enabled for our testing account. I've requested activation of this method via integration@multisafepay.com — awaiting reply.

Tested successfully in pronamic/wp-pronamic-pay#179.

jelkeboonstra commented 3 years ago

A WooCommerce PayPal payment in combination with Adyen isn't working. The user gets redirected to the 'Order received' page without getting redirected to the PayPal environment. Tested it with the overall and general 'Pronamic' payment method.

remcotolsma commented 3 years ago

A WooCommerce PayPal payment in combination with Adyen isn't working. The user gets redirected to the 'Order received' page without getting redirected to the PayPal environment. Tested it with the overall and general 'Pronamic' payment method.

New issue for Adyen: https://github.com/pronamic/wp-pronamic-pay/issues/180.

The original question of this issue is answered:

Is the PayPal payment method supported in all the gateways?