Pay (Virtual Account)
POST {{BASE_URL}}/payment/collection/transaction
The endpoint to initiate payment
| Fields | Data Type | Description | Required |
|---|---|---|---|
| amount | Integer | Amount in kobo or Naira | Mandatory |
| isNaira | Boolean | Flag true to send amount as naira instead of Kobo | Optional |
| String | Customer email | Mandatory | |
| ValidityTime | Integer | Account number expiration time. the default value is 20. max value is 60 | Optional |
Request Body
{"amount"=>1000, "email"=>"testin@figo.com", "validityTime"=>60}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
api-key | string | ||
public-key | string | ||
reference-id | string |
RESPONSES
status: OK
{"status":"success","msg":"payment instantiated successfully","data":{"status":"00","message":"Successful","accountNumber":"4600100145","reference":"FIGO-Q59PWbnijs0RCNZcktWx","amount":100,"transactionId":"FR-ORETLB1VGHWZOJLAJTSY","bank":"VFD Microfinance Bank","validityTime":20}}