Skip to main content
Payment Element is the recommended browser integration for new card checkouts.

When to use it

  • You are building a new card checkout.
  • You want hosted card fields instead of collecting raw card data.
  • You need 3D Secure in the same browser flow.
  • Your backend should remain the owner of transaction creation and fulfillment state.

Browser vs backend

Browser responsibilities:
  • load the Pagou script
  • mount the card field
  • submit through elements.submit(...)
  • continue browser-side challenge flow when required
Backend responsibilities:
  • authenticate with secret credentials
  • create POST /v2/transactions
  • persist external_ref, transaction ID, and requestId
  • fulfill only from webhook or reconciliation state

Backend request example

Backend response example

Return this payload to the browser unchanged. next_action is opaque — elements.submit(...) reads it and completes card authentication for you.

Common error

Start here