Docs

securepayAPI

securepayAPI accepts card payments through a drop-in widget, a hosted checkout page, or the Payment Intents API. Card security and 3-D Secure authentication are built in.

How it works

  1. Create a payment on your server with your secret key — you get back a client_secret.
  2. Collect the card in the browser using the embedded widget or a hosted checkout page.
  3. Authentication and settlement happen automatically; the result is reported back.

Your server is always the source of truth for the amount — the browser never decides what a customer is charged.

What you can build

  • A custom checkout on your own pages using the embedded widget.
  • A hosted page per product, shareable as a link.
  • A catalog of products with prices, coupons and images.

Before you start

You need a securepayAPI merchant account and a pair of API keys: a publishable key (sp_client_…) for the browser and a secret key (sp_secret_…) for your server.

Note

The Payment Intents API is currently v1 and supports payments in USD. Product catalog prices can be set in USD, EUR or GBP.

© securepayAPI · Built with Markdoc