Embed in Web App
Use our web SDK to embed the buyer’s payment method form into your web application. First, add our web SDK to your document’s <head>
tag:
Embed
Now you can initialize the SDK and embed the buyer’s payment method form into an iframe
on your page:
The ID of the iframe
element to embed the buyer’s payment method form into.
The payment_method_embed_url
to embed.
The domain of the parent page. This page must be served over HTTPS. Please note that for Apple Pay to work, the parent domain must be added to your merchant account by Manifest. Please contact developer@manifestfinancial.com to begin verifying your domain.
The height of the content has changed. The new values are passed in as an object with width
and height
properties. Depending on your design, you may need to resize the embedded view to match the new height.
The buyer has successfully updated their payment method; you can navigate to the next step of your process.
An object of customization options to customize the buyer’s payment method form.
Example
Check Digital Wallet Support (optional)
There is an optional function that allows you to check if the buyer’s device supports digital wallets — useful if you’d like to show a different UI based on support.
It returns a promise that resolves to an object with the following properties:
Whether the buyer’s device supports Apple Pay.
Whether the buyer’s device supports Google Pay.
Whether the buyer’s device supports any digital wallets.