Apple & Google Pay

Enable Quick and Secure Checkout with Google and Apple pay

To enable Google Pay and Apple Pay for your Tweed token checkout modal, please follow the steps outlined below.

1. Provide Your Domain Information

We need to know the domains where the Tweed token checkout modal is being displayed. This is likely your application domain. If you have multiple environments, such as staging and production, please send all the relevant domains.

2. Setting Up for Apple Pay

To enable Apple Pay on your site, you'll need to follow these steps:

  1. Download the Apple Pay verification file: apple-developer-merchantid-domain-association.

  2. Host the file at the following path on your server:

    /.well-known/apple-developer-merchantid-domain-association

For example, if you are registering https://yourdomain.com, make the file available at:

https://yourdomain.com/.well-known/apple-developer-merchantid-domain-association

Final Steps

Once you've completed the above steps:

  • Let us know, and we will enable Google Pay and Apple Pay on Tweed's end.

Important Points to Consider:

  • HTTPS Requirement: You cannot test the Apple Pay/Google Pay integration locally because both require HTTPS. If you want to test locally, you can use a service like ngrok to tunnel HTTPS traffic to your local server.

  • Safari Compatibility: Apple Pay works with iframes that load from different domains (in this case, your domain displays an iframe containing Tweed's domain), but this is supported only in the latest version of Safari. Ensure you are testing the integration under these conditions.

By following these instructions, you will be able to integrate Google Pay and Apple Pay successfully into your application via the Tweed checkout modal.

Last updated