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.
Create a payment and collect a card, end to end.
Drop a secure payment widget into your own site.
Send customers to a ready-made checkout page.
The Payment Intents API for creating payments from your backend.
How it works
- Create a payment on your server with your secret key — you get back a
client_secret. - Collect the card in the browser using the embedded widget or a hosted checkout page.
- 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.
The Payment Intents API is currently v1 and supports payments in USD. Product catalog prices can be set in USD, EUR or GBP.