question

wm1 avatar image
wm1 asked bobbygill answered

Apple Pay instantly cancels on e-comm (iframe)

This forum is a joke now since there's zero support from clover, but maybe some other dev has experienced this and has some info.

We're trying to implement the finally available apple pay on e-comm iframe integration.

Domain has been added and verified in app dashboard.

Merchant has apple-pay enabled.


1726973966768.png


Apple pay button is properly configured (with app UUID) and added as per docs here

https://docs.clover.com/dev/docs/clover-iframe-features-apple-pay


1726974575153.png



The button shows up as expected, however as soon as it is tapped, apple pay window pops up, and the payment request intent INSTANTLY cancels with "Payment not Completed"

eventMessage: "Session is either closed or terminated, void the charge request, if charge was initiated"

status: "session_cancelled"


Tested on ios 17/18 and Macos 15 safari




ecommerce
1726973966768.png (73.4 KiB)
1726974575153.png (21.7 KiB)
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

wm1 avatar image
wm1 answered

Well, after a few days, this was resolved by trial and error.

In case anyone else comes across this issue with apple pay:

1. Merchant must add your e-comm domain to their e-comm apple settings.

2. sessionIdentifier must be set to MID (not to app id)

3. elements.createApplePaymentRequest.amount is just "for show" to display in the appl-pay popup. the user will be charged the amount in the clover order param passed to charge endpoint.

It seems that registering domain in app-settings has no effect on apple pay as trying to start the process with app-id as sessionIdentifier always throws an error.

In addition, despite - neither ApplePay nor Google Pay can "save card on file". If you try to create a customer on scl.clover.com/v1/customers with apple or google pay token, Clover throws 500 API Error : Processing error.


10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

bobbygill avatar image
bobbygill answered

I get the same error even when using MerchantID instead of App ID.

eventMessage: "Session is either closed or terminated, void the charge request, if charge was initiated"
status: "session_cancelled"


Apple Pay Payment view pops up and closes automatically within a second. Is there any other possible code fix I need to do to get that working?

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community