Skip to Content
docs
Token PaymentOverview

Token Payment

Accept payments via Apple Pay and Google Pay through Epoint’s token payment system. The widget provides a unified payment interface that can be embedded in your website or app via an iframe.

POST
***
Generate widget URLClick to reveal

Integration Options

  • Apple Pay — Web and mobile app integration
  • Google Pay — Web integration

How It Works

  1. Generate a widget URL using the Token Widget endpoint
  2. Embed the widget URL in an iframe or webview
  3. The customer completes payment using Apple Pay or Google Pay
  4. Listen for the message event to receive the payment result
JavaScript
1window.addEventListener('message', function(event) {
2console.log(event.data); // {status: 'success', payment: {...}}
3});