This endpoint is to be called to authenticate 3DS Secure Transactions
This endpoint is protected with OAuth 2.0 Bearer token
Endpoint URL: {{base_url}}/api/v1/merchant/cards/charge
HTTP Method: POST
The {{base_url}} for test is https://sandbox.monnify.com
but when you go live, it changes to the live url
Sample Request
{ "transactionReference": "MNFY|19|20210430115705|000243", "collectionChannel": "API_NOTIFICATION", "card": { "cvv": "123", "expiryMonth": "12", "expiryYear": "2022", "number": "4000000000000002", "pin": "1234" } }
Sample Response
{ "requestSuccessful": true, "responseMessage": "success", "responseCode": "0", "responseBody": { "status": "BANK_AUTHORIZATION_REQUIRED", "message": "3D Secure Authorization required", "secure3dData": { "id": "2000.00-59077a3e5157fae7ca9dd260d911ccbb", "redirectUrl": "http://localhost:10001" }, "transactionReference": "MNFY|19|20210430115705|000243", "paymentReference": "1619780224192", "authorizedAmount": 1000 } }
Field Parameters
Field | Description |
---|---|
transactionReference | Unique reference generated for the transaction by Monnify |
collectionChannel |
|
card | Object containing card information |
number | Card number |
expiryMonth | Card expiration month |
expiryYear | Card expiration year |
pin | Card pin from card owner |
cvv | Security code behind card |
tokenId | Token id from the request response (otpData.id) |
token | OTP from card owner (use 12345 for test card) |