Skip to main content
POST
Initiate payment

Reading the response

The recommendedGateway.session object contains the main checkout and payment details. See the payment session page to learn more about this field.

Fallback behavior

If the first configured gateway in your smart routing rule fails, Archefusion routes the payment to your available fallback gateway. The response for a successful fallback is the same as when no fallback was applied. If all gateways fail, including the first configured gateway and the fallback gateways, the payment fails with status: FAILED. See the failed payment section to learn more.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
merchantOrderId
string
required

A unique order ID generated by your system to track and reconcile the payment. It must be unique for every payment request. This is your own reference, not the gateway's transaction reference. Visit the payment identifiers page to learn more about IDs in Archefusion.

Example:

"order-70-0o8hh-ojy78j0e-8i903-pl679-e07"

amount
integer
required

This represents the payment amount in the main currency unit. For example, pass 1000 to charge ₦1,000 NGN.

Example:

200

currency
string
required

This represents the payment currency in ISO 4217 format. Currently supported: NGN.

Example:

"NGN"

customer
object
required

This represents the customer's details.

metadata
object

This represents additional details about your product or service.

redirectUrl
string

This represents the URL to redirect customers to after payment. If not provided, Archefusion uses the redirect URL configured on your dashboard.

Example:

"https://merchant.example.com/payment/callback"

paymentMethod
string

This represents the payment method used to match your configured smart routing rule. It is optional, but if not provided, Archefusion cannot match your routing rules and will fall back to the default provider order. Example: Card, Transfer

Example:

"transfer"

customerCountry
string
Example:

"NGA"

Response

Success

status
boolean
Example:

true

statusCode
integer
Example:

200

message
string
Example:

"Payment initiated"

data
object