Embedding
Events
Manifest will broadcast events to your application to keep your app informed of changes. Here are the events you can expect:
payment_method_updated
: The buyer has successfully updated their payment method.resize
: The height of the content has changed. Depending on your design, you may need to resize the embedded view to match the new height.
Web
Embed payment management in your mobile app using an iframe
. Manifest will broadcast an event with a native JS object as the body. Here’s an example listener:
Mobile App
Embed payment management in your mobile app using web views. Note that events are stringified JSON for mobile integrations. See below for specific implementation examples.
iOS
Manifest will post an event using the userContentController
object you created, with a message containing a stringified JSON event.
Android
Manifest will post an event using the checkoutMessageHandler
object you created, with a message containing a stringified JSON event.
React Native
Manifest will post an event using the onMessage
handler you created, with a message containing a stringified JSON event.
Need Addional Support?
If your application needs a different callback scheme, just let us know.