Skip to main content
This guide explores how to integrate PagaLeve, a Pix-based payment provider for Brazil, into your checkout. Yuno supports both the Yuno SDK (recommended) and Direct API workflows. You’ll learn how to:
  • 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 external merchant_customer_id, then retrieve by Yuno id or by merchant_customer_id as needed.
  1. Use the Create Customer endpoint and provide your own merchant_customer_id (the unique id of the customer in your system). The response returns id which is the Yuno customer id.
  2. Use Retrieve Customer with the Yuno id.
  3. Use Retrieve Customer by External Id with query parameter merchant_customer_id.
Creating a Yuno customer record first is not required. PagaLeve accepts customer info (CPF, email, name, phone, birth date, address) directly in the Create Payment call, the same as plain Pix. Creating the customer up front is still recommended for consistency with your other payment methods.

One-time Pix payment

Use PagaLeve to accept a standard, single Pix payment.

Step 1: Create a checkout session

Start by creating a checkout session using the Create Checkout Session endpoint.
The response returns a checkout_session ID.

Step 2: Initialize the SDK

Initialize Yuno’s SDK (Web, Android, or iOS) with the checkout_session ID. PagaLeve renders as an available payment option in the SDK interface, using payment method type "PIX" for a one-time payment.
The customer completes the payment on PagaLeve’s hosted checkout page. If your PagaLeve connection has TRANSPARENT_CHECKOUT enabled, the customer completes it inside the SDK instead, through a checkout URL. Either way, PagaLeve confirms the result to Yuno through a webhook. See Status transitions below.

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.

Step 1: Create the payment

Create the payment with payment_method.type "PIX_PARCELADO". Pass the order’s line items in additional_data.order.items so PagaLeve can build the installment offer.
The response returns the redirect at payment_method.payment_method_detail.bank_transfer.redirect_url — Pix Parcelado is categorized as BANK_TRANSFER internally, so it uses the same detail object as other bank transfer methods. installments and installments_plan_id come back empty at creation; the customer chooses the installment count on PagaLeve’s hosted checkout page after the redirect. The payment starts out Created, and the final Successful or declined status arrives through the webhook. See Status transitions below.
Limitations
  • Currency is limited to BRL.
  • Pix and Pix Parcelado share the same refund flow, both are refundable the same way, including DUPLICATE, FRAUDULENT, and REQUESTED_BY_CUSTOMER reasons.
  • 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. For CANCELED and EXPIRED, the webhook publishes the status directly. For the other success states, it first captures the payment via the ProcessPayment endpoint.

Endpoints