For the complete documentation index, see llms.txt. This page is also available as Markdown.

Accept Payments — Overview

Initialize a collection transaction to accept a customer payment.

See Authentication before making requests.

Endpoint

POST /transaction/initialize

Headers

Header
Value

Authorization

Bearer PUBLIC_KEY

Content-Type

application/json

Find your public key in Settings on the Startbutton dashboard.

Parameters

Parameter
Required
Description

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