Pagar.me
The Pagar.me integration with NicoChat provides a complete and versatile payment solution for businesses seeking efficiency and security in online transactions. With the API Key obtained from Pagar.me, this integration makes it possible to generate payment checkouts within the chat itself.
Introduction
The Pagar.me integration with NicoChat provides a complete and versatile payment solution for businesses seeking efficiency and security in online transactions. With the API Key obtained from Pagar.me, this integration makes it possible to generate payment checkouts within the chat itself, making the purchase process easier for customers and increasing conversion for sellers. In this document, we will explore how to set up the Pagar.me integration in NicoChat and detail the steps to generate a checkout with all the information needed to complete a sale.
Configuring Pagar.me
Payment Actions
Create CheckOut (CREATE)
- Required data:
Amount to charge: enter the transaction amount, using a period for the cents (e.g. "99.90"). Purchase Item Description: provide details about the item or service. Buyer Name: identify the customer responsible for the purchase. Person type: indicate whether the buyer is an Individual or a Company. Buyer Email: enter the email for contact and for sending the receipt. CPF/CNPJ/TAX PAYER ID: document number for issuing the invoice. Address Data: Street, ZIP Code, City, State and Country – all are required if one of them is filled in. Phone: the buyer’s phone contact. Date of Birth: in YYYY-MM-DD format. Time for the Checkout link to expire: in seconds, up to a maximum of 3600 (1 hour). - Payment Options:
Default Payment Method: set the preferred payment method. Accepted Payment Methods: choose from the available options. Allowed Card Brands: specify which brands are accepted. Boleto Instructions: if applicable, add guidance for the payment. Boleto Due Date: payment deadline, in YYYY-MM-DD format. - Response Mapping:
Set up custom fields in NicoChat to store payment URLs and checkout IDs for future queries.
Practical Examples
- Generate a CheckOut for a Sale:
At the time of the sale, collect the customer information through NicoChat. Use the "Generate CheckOut" action with the data provided to create a personalized payment link. The customer receives the link immediately and makes the payment conveniently and securely. - Post-Sale Management:
Track transactions through the response mapping, which makes it easy to trace payments and checkout IDs.
With these steps, the Pagar.me integration turns NicoChat into a powerful sales assistant, optimizing the payment process and contributing significantly to the customer experience. Remember to observe the API limits to avoid excesses that may result in "Too Many Requests" errors, and manage the use of requests strategically.

