pronamic / wp-pronamic-pay-adyen

Adyen driver for the WordPress payment processing library.
https://www.wp-pay.org/gateways/adyen/
6 stars 2 forks source link

Use Adyen's Apple Pay certificate #5

Closed remcotolsma closed 2 years ago

remcotolsma commented 2 years ago

Wij zijn momenteel druk met het koppelen van Apple Pay aan ons Adyen account. Ik kreeg de volgende vraag van mijn development afdeling:

Is het mogelijk om (al dan niet zelf) de gebruikte SDK van Adyen te updaten van 3.15.0 naar minimaal 3.17.2 voor de checkout zodat er gebruik kan worden gemaakt van de Apple Pay Certificates van Adyen zelf.

Internal HelpScout ticket: https://secure.helpscout.net/conversation/1798706229/23596?folderId=1425710

It seems that using Adyen's Apple Pay certificate also has advantages:

You don't need to create your own Apple Pay certificate for your web integration because you can process payments through Adyen's Apple Pay certificate. The benefits of using Adyen's Apple Pay certificate are:

  • A faster way to add Apple Pay to your integration.
  • There is less configuration required.
  • You get access to new features.
  • Apple Pay enabled by default for your Pay by Link integration, if you have one.

Source: https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=_code_payments_code__2#set-up-apple-pay

I suggest we update to version 3.23.0 for now, version 4 or 5 is probably a too big step for now.

https://docs.adyen.com/online-payments/release-notes?integration_type=web&version=3.23.0

We should only set the onValidateMerchant when a custom Apple Pay certificatie is configured?

https://github.com/pronamic/wp-pronamic-pay-adyen/blob/a9ebbfa67940396b1d411fa573d90a535672210e/js/src/checkout-drop-in.js#L81-L105

We now make the onValidateMerchant call by default for the Apple Pay Component. However, you can also choose to make the call manually, in which case your onValidateMerchant call overrides the default.

remcotolsma commented 2 years ago

Did some work in f7ea277cd10391f18a75d3dfea8e95bae20dff7e, 3a4d38f4121f26d7d1f09c701f286892b500bb5c and 1ed0c52b4d0893fc4a22d5184c8dc46d9a7016ff.