BP-3655 Apple Pay functionality #29
Labels
Bug
Bugs, functions that are not working like they should.
Priority: Normal
This issue has a normal/medium priority.
Status: Waiting for release
This issue has been solved, but is not released yet.
For one of our clients we want to implement Apple Pay however we noticed that the implementation had some issues. I am wondering if this is something that is known and on the radar to fix.
One issue we found during debugging is that in the method
register()
the method checkPaySupport() is called without a merchan tIdentifier (https://github.com/buckaroo-it/Magento2_Hyva_Checkout/blob/master/view/frontend/templates/component/payment/after.phtml#L262) while the original method defined in https://github.com/buckaroo-it/Magento2_Hyva_Checkout/blob/master/view/frontend/web/js/applepay.js#L15 requires it. This is an issue we could fix with providing this.config.guid to the BuckarooApplePay.checkPaySupport() method.However that leaded to a situation where there first appears an unstyled payment link ("Plaats bestelling" = "Place order" in Dutch):
And only after clicking that an Apple Pay button appears which also has a broken styling:
Our expectations were that the customer selects Apple Pay and then continue placing the order and if Apple Pay is not supported the method is not visible. Currently two situations happen:
Apple Pay is not supported or no active card: Nothing appears on the screen indicating this, the payment method is shown and the user receives a message "Payment data is missing" which seems to be triggerd in https://github.com/buckaroo-it/Magento2_Hyva_Checkout/blob/master/Magewire/Payment/Method/Applepay.php#L94
Apple Pay is supported, the customer then first needs to click the unstyled link and then the Apple Pay link and only then can place the order.
The text was updated successfully, but these errors were encountered: