HomeGuidesReferenceChangelog↗ Forage Dashboard
Log In
Reference

Capture a payment

This request will attempt to process a payment.

The payment will first be checked for a
consistent state, If these checks fail, a 400
response is returned and no payment methods
will be charged.

Once the payment is processed successfully, the
status of the payment will be updated to
succeeded.

Path Params
string
required

The reference hash of the payment

Body Params

An EBT cardholder's PIN data

This object contains an EBT cardholder's PIN data when one PIN entry is required

string

The PIN data

string

The token field of the TokenizedPaymentMethod.card object. This token is an input to Forage's secure PIN encryption.

Headers
string
required

A unique merchant ID that Forage provides during onboarding, as in 123ab45c67. The Merchant ID can be found in the Forage sandbox or production dashboard.

string
required

An alphanumeric key that clients can use to identify repeated requests that are dropped in transit. Generate a distinct key for every unique request and only re-use keys for retries.

string

The Forage version, represented as a string with the format of a YYYY-MM-DD date.

If not specified in the request header, then the version defaults to the value set in the Forage dashboard.

Responses

500

Server Errors Something went wrong on Forage's servers. Try again.

Language
Credentials
OAuth2
URL
LoadingLoading…
Response
Choose an example:
application/json