curl --request POST \
--url https://testapi.fractalpay.com/api/v1/customers/charge/{customerId} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 1,
"merchant_key": "{{merchant_key}}",
"order_id": "556465"
}
'
{
"message": "Payment captured successfully.",
"result": true,
"transaction_id": "txn_0e99eb7c5a"
}
Customers
Charge Customer
Charge Customer
POST
/
customers
/
charge
/
{customerId}
curl --request POST \
--url https://testapi.fractalpay.com/api/v1/customers/charge/{customerId} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 1,
"merchant_key": "{{merchant_key}}",
"order_id": "556465"
}
'
{
"message": "Payment captured successfully.",
"result": true,
"transaction_id": "txn_0e99eb7c5a"
}
Authorizations
Path Parameters
Body
application/jsontext/plain