PIX with Nuvei via Widget
Prerequisites#
Before implementing Pix payments, ensure you have:
- Enabled Pix Nuvei in the DEUNA Admin Panel.
- An generated order token.
- Integrated the DEUNA SDK in your project.
- Reviewed the Payment Widget documentation for your platform.
Payment Widget configuration#
JavaScript
DeunaSDK.initPaymentWidget({
orderToken: '<YOUR_GENERATED_ORDER_TOKEN>',
paymentMethods: [
{
paymentMethod: 'bank_transfer',
processors: ['nuvei_pix'],
},
],
callbacks: { ... },
});Flow Events#
Event Name | Description | Metadata |
|---|---|---|
| Triggered when Pix Nuvei is selected as the payment method. | { "methodType": "bank_transfer", "processorName": "nuvei_pix" } |
| Triggered when the Payment Button is clicked to process the transaction. | { "methodType": "bank_transfer", "processorName": "nuvei_pix", "checkedPolicies": [] } |
| Triggered while the transaction is being processed. | {} |
| Triggered when the "change payment method" button is clicked on the voucher. | {} |
| Triggered when the payment process is canceled. | {} |