- Make one-time Pix payments with PagaLeve
- Make Pix Parcelado (installment Pix) payments with PagaLeve
Requirements
Before starting, you need:- A Yuno account with Dashboard access
- API keys and an
account_id(found in the dashboard) - A PagaLeve connection set up in your Yuno account (see Connections)
Create and manage customers
Create the customer once using your externalmerchant_customer_id, then retrieve by Yuno id or by merchant_customer_id as needed.
- Use the Create Customer endpoint and provide your own
merchant_customer_id(the unique id of the customer in your system). The response returnsidwhich is the Yuno customer id. - Use Retrieve Customer with the Yuno
id. - Use Retrieve Customer by External Id with query parameter
merchant_customer_id.
One-time Pix payment
Use PagaLeve to accept a standard, single Pix payment.- Yuno SDK
- Direct API
Step 1: Create a checkout session
Start by creating a checkout session using the Create Checkout Session endpoint.checkout_session ID.Step 2: Initialize the SDK
Initialize Yuno’s SDK (Web, Android, or iOS) with thecheckout_session ID. PagaLeve renders as an available payment option in the SDK interface, using payment method type "PIX" for a one-time payment.Pix Parcelado (installment) payment
PagaLeve supports Pix Parcelado, letting customers split a Pix payment into installments. The customer picks the installment plan on PagaLeve’s own checkout page — Yuno doesn’t return available plans up front, and no plan or installments data is sent in the Create Payment call.- Yuno SDK
- Direct API
Step 1: Create the payment
Create the payment withpayment_method.type "PIX_PARCELADO". Pass the order’s line items in additional_data.order.items so PagaLeve can build the installment offer.Limitations
- Currency is limited to BRL.
- Pix and Pix Parcelado share the same refund flow, both are refundable the same way, including
DUPLICATE,FRAUDULENT, andREQUESTED_BY_CUSTOMERreasons. - PagaLeve doesn’t use an enrollment/vaulting pattern, unlike NuPay. Every payment is a one-time checkout.
Status transitions
PagaLeve reports payment status through webhooks, processed asynchronously. ForCANCELED and EXPIRED, the webhook publishes the status directly. For the other success states, it first captures the payment via the ProcessPayment endpoint.