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.
Steps
Include the sc_applepay.min.js
script on top of your website, before the Nuvei IFrame is initiated.
Notes
- You can take the
sc_applepay.min.js
script 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_url
parameter to the IFrame, as the domain name of the parent page. - A
User Payment Option ID
is not created for an Apple Pay payment.
HTML Example
<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>