Create a Checkout with Niubiz

This integration enables merchants to leverage the PagSeguro Checkout in Peru to offer payments via digital wallets using QR code technology. Through this integration, the following wallets are supported: Yape, Plin, BBVA Wallet, Scotiabank, Interbank, Ligo, BanBif, and Izipay Ya+.

To complete a payment, the end customer must open their preferred digital wallet application, scan the QR code presented at checkout, and authorize the transaction directly within the selected wallet. QR code expires after 2 days.

How it works

  1. The merchant creates a checkout through the Payment Page API.
  2. The customer is redirected to the PagSeguro Payment Page, where a QR code is displayed.
  3. The customer opens their preferred wallet app, scans the QR code, and authorizes the payment.
  4. PagSeguro sends a notification to the merchant's notification_url with the final status.

🚧

The QR code expires 2 days after creation.

Request

The only difference from the standard Payment Page request is the charge.e_wallet field, which must be set to NIUBIZ_WALLET.

POST /v3/checkouts
{
  "integration": {
    "reference": "REF-XXX-1778529330143",
    "notification_url": "https://yoururlnotification",
    "project": 1
  },
  "order": {
    "currency": "PEN",
    "items": [
      {
        "quantity": 1,
        "description": "Pants",
        "unit_price": 1000
      },
      {
        "quantity": 1,
        "description": "T-shirt",
        "unit_price": 1000
      }
    ]
  },
  "checkout": {
    "language": "es_ES",
    "redirect_urls": {
      "success": "http://yoururlnotificationsuccess"
    }
  },
  "charge": {
    "country": "PE",
    "e_wallet": "NIUBIZ_WALLET"
  },
  "payer": {
    "email": "********@test.com",
    "person": {
      "name": "Tiago ******** ******",
      "birth_date": "1988-**-**",
      "phone": {
        "country_code": "51",
        "number": "*****999999"
      }
    }
  }
}

Response

{
  "code": "2bd81fda-c77c-436c-8a4a-4855b9fadec7",
  "url": "https://checkout.international.pagseguro.com/2bd81fda-c77c-436c-8a4a-4855b9fadec7",
  "created_at": "2026-05-12T19:22:36Z",
  "expires_at": "2026-05-12T20:22:36Z"
}

Notification

GET /transactions/2bd81fda-c77c-436c-8a4a-4855b9fadec7
{
  "transaction-result": {
    "store-id": "10",
    "transactions": [
      {
        "transaction-code": "1224025387",
        "order-id": "TEST_1778164567134",
        "order-description": "produto teste",
        "status": "COMPLETE",
        "currency": "PEN",
        "amount": "10.00",
        "customer-email": "********@uolinc.com",
        "customer-country": "PE",
        "notify-url": "https://yoururlnotification",
        "payment-country": "PE",
        "payment-id": "238",
        "payment-name": "niubiz wallet",
        "order-date": "2026-05-07T11:36:19-03:00",
        "payment-date": null,
        "last-status-change-date": "2026-05-07T11:37:23-03:00",
        "chargeback-date": null,
        "refundable": false,
        "refunds": [],
        "payment-response": null,
        "payment": {
          "payment-method": {
            "type": "e_wallet",
            "sub-type": "niubiz wallet"
          }
        }
      }
    ]
  },
  "metadata": {
    "found": "1",
    "page-results": 1,
    "current-page": 1,
    "total-pages": 1
  }
}

Field reference

FieldRequiredDescription
integration.referenceRequiredMerchant's unique reference for the transaction
integration.notification_urlRequiredURL that receives status updates
integration.projectOptionalIntegration project identifier (≥ 1)
order.currencyRequiredISO code, e.g. PEN, BRL
order.items[].quantityRequiredQuantity of the item
order.items[].descriptionRequiredDescription of the item
order.items[].unit_priceRequiredUnit price (minor units)
checkout.languageRequireden_US, es_ES, pt_BR, pt_PT, tr_TR
checkout.redirect_urls.successRequiredURL the customer is redirected to on success
charge.countryRequiredCountry of charge, e.g. PE
charge.e_walletRequiredNIUBIZ_WALLET
payer.emailOptionalCustomer's email
payer.person.nameRequiredCustomer's full name
payer.person.birth_dateOptionalYYYY-MM-DD
payer.person.phone.country_codeRequiredPeru: 51
payer.person.phone.numberRequiredLocal phone number