This solution integrates the Apple Pay payment method into a Nuvei Checkout / Cashier Page which is presented as an IFrame in its own page.
The integration involves inserting the
sc_applepay.min.js script on top of your website, which acts as a proxy between the IFrame Cashier and your main website page.
sc_applepay.min.js script on top of your website, before the Nuvei IFrame is initiated.
- You can take the
sc_applepay.min.jsscript from https://cdn.safecharge.com/safecharge_resources/v1/sc_applepay.min.js
- The Nuvei IFrame must be included directly on your website, not nested in another IFrame.
- Make sure to send the
parent_urlparameter to the IFrame, as the domain name of the parent page.
User Payment Option IDis not created for an Apple Pay payment.
<head> … <script src= "https://cdn.safecharge.com/safecharge_resources/v1/sc_applepay.min.js"></script> </head> <body> … <div> <iframe name="sc_frame" src= "https://secure.safecharge.com/ppp/purchase.do..."></iframe> </div> … </body>