Make payment.

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:

  • ALLOW, Allow the transaction to go through.
  • PREVENT, Prevents the transaction from going through as it is very risky. No charge will be made to the means of payment.
  • REVIEW, A human operator is needed to verify the Transactions before being processed.

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

  • PENDING, indicates that it is in the processing queue waiting to be solved
  • FAILED, indicates that the payment could not be made

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.
Request
Security:
BearerAuth
Request Body schema: application/json
customerId
required
string

Unique identifier of the user in the customer's system

required
object (Order)
cardId
required
string

Token that identifies the user's card to make payments

cvv
string

CVV security code, if sent, this value will be updated on the tokenized card

authenticationId
string

Processor 3DS authentication token. Only applies to customers who have 3DS configured

Responses
200

Successful payment

400

Bad request

401

unauthorized user

post/Charges
Request samples
application/json
{
  • "customerId": "customer_id",
  • "order": {
    },
  • "cardId": "0ca4b9aad7f417634359bf4e549ff280156dec4a149fd4b1cd20ce74f7d330ba",
  • "cvv": 111,
  • "authenticationId": "f4e549ff280156dec4a149fd4b1cd20ce74f7d330b237u"
}
Response samples
application/json
{
  • "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
}
Copyright © n1co 2023. All right reserved.