@ambassadorai/payment-webview

A package that can be included in the chat webview component, or the Messenger webview host. You should pass one of either `token` or `signedRequest` depending on the environment.

Usage no npm install needed!

<script type="module">
  import ambassadoraiPaymentWebview from 'https://cdn.skypack.dev/@ambassadorai/payment-webview';
</script>

README

Payment webview

A package that can be included in the chat webview component, or the Messenger webview host. You should pass one of either token or signedRequest depending on the environment.

Environment variables

  • API_URL - URL to the /webview/payment API on the dashboard.
  • CHAT_TOKEN - JWT token provided by the chat app.
  • WEBVIEW_APP_ID - (Optional) ID for a specific webview app to get options from.