Skip to main content

Process Paynet Payments

  https://api-sandbox.letpay.io/payment/MY_PAYMENT_TOKEN/sendPayment

Processes a Paynet payment order that were already created using the Create Payment Order method.

Request Fields

  • method (required/string): Payment method. Valid option: PAYNET.
  • expiration_date (optional/date/YYYY-MM-DD): Expiration date (if not informed system will assume 5 days of current date).
  • description (optional/string): This is a message that goes attached to the transaction and will show at the recipient's bank statement.
  • logo (optional/string): The HTTP/Data URL of your logo (must be JPG or PNG format and it is recommended to be proportional to 200 x 45 pixels). If omitted, no logo will be displayed.

Response Fields

  • payment_token (string): Token to identify this payment.
  • refresh_token (string): Updated access token for next calls.
  • transaction_status (string): Status of this payment.
  • paynet_amount (string): Amount of this payment.
  • paynet_barcode_image (string): Base64 zipped PNG image representation of Paynet barcode.
  • paynet_barcode (string): Text string containing barcode to pay this payment.
  • paynet_pdf (string): Payment confirmation in Base64 zipped PDF format.
AUTHORIZATIONAPI Key
KeyX-Auth-Token
ValueMY_ACCESS_TOKEN

Body Raw(json)

json
{
"method": "PAYNET",
"expiration_date": "2024-05-09",
"description": "Payment via PAYNET",
"logo": "data:image/png;base64,BASE64_ENCODED_IMAGE"
}

Example Request

Example Request

200 - Success
    curl --location 'https://api-sandbox.letpay.io/payment/MY_PAYMENT_TOKEN/sendPayment' \
--header 'X-Auth-Token: MY_ACCESS_TOKEN' \
--data '{
"method": "PAYNET",
"expiration_date": "2024-05-09",
"description": "Payment via PAYNET",
"logo": "data:image/png;base64,BASE64_ENCODED_IMAGE"
}'

Example Response

Header
  Content-Type: application/json
Body
    {
"transaction_status": "PROCESSING",
"payment_token": "42afe884-f047-4452-a3db-65a7de76a9c5",
"paynet_barcode": "64000012578123060900025032",
"paynet_barcode_image": "BASE64_ZIPPED_PNG",
"paynet_amount": "123.45",
"paynet_pdf": "BASE64_ZIPPED_PDF",
"refresh_token": "MY_ACCESS_TOKEN"
}