Este servicio te permite realizar el cobro por el monto especificado a tarjetas de crédito y débito del cliente.
Within our collection flow, a fraud analysis is carried out based on the order parameters and the buying behavior of the user. This analysis results in the recommendation of one of these three possible actions:
When obtaining the result of the pay, there are 3 possible states that can be describe below: * SUCCEEDED, indicates that the payment was made successfully
In addition, it is important to consider the following parameters in the service response.
| Parameter | Type | Description |
|---|---|---|
| captured | Boolean | Indicates that the specified amount was retained on the account user. |
| paid | Boolean | Indicates that the specified amount was transferred to account destination. |
| orderId | String | unique purchase order identifier in system n1co. It is important to store this value in case you want make a refund in future. |
Successful payment
Bad request
unauthorized user
{- "customerId": "customer_id",
- "order": {
- "id": "order_id",
- "name": "Order name",
- "amount": 15.5,
- "description": "purchase order description"
}, - "cardId": "0ca4b9aad7f417634359bf4e549ff280156dec4a149fd4b1cd20ce74f7d330ba",
- "cvv": 111,
- "authenticationId": "f4e549ff280156dec4a149fd4b1cd20ce74f7d330b237u"
}{- "success": true,
- "message": "The payment was made successfully",
- "chargeId": "aec0aceb-a4db-49fb-b366-75e90229c640",
- "orderId": 9654,
- "paymentId": "472e651e-5a1e-424d-8098-23858bf03ad7",
- "amount": 0,
- "currency": "USD",
- "captured": true,
- "paid": true,
- "capturedAt": "2019-08-24T14:15:22Z",
- "status": "SUCCEEDED",
- "authorizationCode": 1234598
}