Accept Payments — Overview
Initialize a collection transaction to accept a customer payment.
See Authentication before making requests.
Endpoint
POST /transaction/initialize
Headers
Authorization
Bearer PUBLIC_KEY
Content-Type
application/json
Find your public key in Settings on the Startbutton dashboard.
Parameters
email
Yes
Payer email address.
amount
Yes
Amount in fractional units.
currency
Yes
Collection currency.
partner
No
A configured partner value.
reference
No
Your unique collection identifier.
metadata
No
Your custom transaction data.
redirectUrl
No
URL for the customer after payment.
On success, the API returns an authorization URL for the customer.
Sample request
Find test numbers to aid your checkout test Test Numbers for Collections.
Use a supported collection currency.
The reference value returns as userTransactionRef in the webhook payload.
Sample response
Last updated