Skip to main content

Process PicPay Payments

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

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

Request Fields

  • method (required/string): Payment method. Valid option: PICPAY.
  • expiration_date (optional/date/YYYY-MM-DD): Expiration date (if not informed system will assume 2 days of current date).
  • delay_capture (optional/boolean): true to pre-authorize payment for later capture. Default: false. Pre-auth capture/cancelation has a TTL of 5 days.

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.
  • picpay_amount (string): Amount of this payment.
  • picpay_qr_code (string): Base64 zipped PNG image representation of PicPay QR code.
  • picpay_duedate (string/date/YYYY-MM-DD): Expiration date of the payment.
AUTHORIZATIONAPI Key
KeyX-Auth-Token
ValueMY_ACCESS_TOKEN

Body Raw(json)

json
{
"method": "PICPAY",
"expiration_date": "2024-12-31",
"delay_capture": false
}

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": "PICPAY",
"expiration_date": "2024-12-31",
"delay_capture": false
}'

Example Response

Header
  Content-Type: application/json
Body
    {
"transaction_status": "PROCESSING",
"payment_token": "633de157-9a42-4d30-bbad-bd9fb883e058",
"picpay_qr_code": "BASE64_ZIPPED_PNG",
"picpay_duedate": "2024-12-31",
"picpay_amount": "1.00",
"refresh_token": "MY_ACCESS_TOKEN"
}