Movii (PSE Avanza) via Widget
Show Movii (PSE Avanza) in the DEUNA Payment Widget, from the form to the final payment status.
On this page
This guide explains how to offer Movii (PSE Avanza) with the DEUNA Payment Widget. The buyer completes a form, pays in the bank portal, and the widget updates when DEUNA confirms the payment. The widget uses the Purchase V2 flow.
Prerequisites#
- Movii (PSE Avanza) enabled for your merchant and connected in Admin. See Connect Movii (PSE Avanza).
- The Movii webhook configured to notify DEUNA. See Configure the Movii webhook.
- An
order_tokenfor an order inCOP. - The DEUNA SDK integrated in your project.
- The Payment Widget documentation reviewed for your platform.
Payment method configuration#
No paymentMethods configuration is needed. Once Movii (PSE Avanza) is enabled for your account, the widget shows it among your payment methods. When the buyer selects it, the widget sends the processor automatically and connects to the DEUNA API.
Integrate Movii (PSE Avanza) with the widget#
The widget flow creates an order before processing a payment. The amount, taxes, and description belong to the order; the widget does not send them again when the buyer pays.
- Create an
order_token. Create an order inCOPfor a Colombian merchant with the Create an Order endpoint. The API returns theorder_tokenused throughout the flow. - Open the widget. Initialize the Payment Widget with the
order_token. The buyer sees Movii (PSE Avanza) among the methods enabled for your account. - Collect the buyer's details. The buyer selects a bank and enters their email, full name, document type and number, phone number, and address.
- Send the buyer to the bank. After the form is submitted, the widget opens the PSE flow in a new window and shows a waiting view. Wait for the buyer to complete the payment and for the widget to confirm the result.
If the buyer closes the bank window, the widget returns the buyer to the payment method selection. Do not treat this as a payment result. Wait for the final status from DEUNA.
If the buyer takes too long, the widget stops waiting, closes the bank window, reports a timeout error, and redirects to the pending page when the order has one.
Required fields#
Make sure these fields are available in the order. DEUNA validates them before sending the payment to Movii. The widget sets payment_source.method_type and payment_source.processor.
| Field | Description | Restriction |
|---|---|---|
payment_source.method_type | Payment method type | bank_transfer |
payment_source.processor | Processor | movii_pse |
payment_source.method_type_specific_fields.pse.financial_institution | Code of the bank selected by the buyer | Maximum 5 characters |
order.billing_address.identity_document_type | Document type | CC, RC, TI, CE, PP, or NIT |
order.billing_address.identity_document | Document number | Maximum 15 characters |
order.billing_address.first_name and order.billing_address.last_name | Payer name | Maximum 64 characters in total |
order.billing_address.phone | Phone number | 10 digits, without +57 |
order.billing_address.address1 and order.billing_address.address2 | Address | Maximum 64 characters in total |
order.billing_address.email | Maximum 120 characters | |
order.currency | Currency | COP only |
order.total_amount | Order amount | Up to 14 digits, in cents |
order.total_tax_amount | Tax amount | Up to 14 digits, in cents |
order.description | Order description | Maximum 80 characters, including the order_id |
order.callback_urls.on_success | URL to return the buyer to after payment | Maximum 512 characters |
Expected statuses#
payment.data.status | Final | Meaning |
|---|---|---|
pending | No | The transaction was created, and the buyer has not finished at the bank. |
processed | Yes | The PSE transaction was completed. The order is succeeded. |
denied | Yes | The PSE transaction was not completed. |
The widget treats a payment as successful only when the order is succeeded and the payment is processed. Fulfil the order only after that status. Do not use the redirect alone as proof of payment; confirm the status in your backend.
How the result is confirmed#
- The widget polls the order status until it receives a final result.
- DEUNA always verifies the transaction status with Movii before changing the order to a final status.
- DEUNA notifies your backend through webhooks when the payment status changes.
Handle the result in the widget#
Use the onSuccess and onError callbacks to guide the buyer, as described in Payment Widget. Treat them as a user-experience signal and confirm the final status in your backend.
Testing#
Test in the DEUNA sandbox (https://api.sandbox.deuna.io) with a Colombian merchant enabled for Movii (PSE Avanza).
- Ask Movii for test credentials for your merchant. Connect them in Admin, and ask Movii to configure the test webhook with the DEUNA sandbox notification URL. See Configure the Movii webhook.
- Create an order in
COPand open the widget. Use a different document number for each test payment. - Select Movii (PSE Avanza), choose a bank from the list, and complete the form. The PSE sample frontend opens, using the simulator described in PSE testing data.
- Set the final state of the transaction in the simulator, run it, and return to the merchant.
- Verify that the widget shows the result and that
order.payment.data.statushas the expected value.
Test these scenarios before going live:
| Scenario | What to verify |
|---|---|
| The buyer completes the payment | order.payment.data.status is processed, and the order is succeeded. |
| The bank rejects the payment | order.payment.data.status is denied. It is not marked as paid, and your site shows the rejected-payment page. |
| The payment stays pending | order.payment.data.status is pending. Your site does not fulfil the order until DEUNA reports a final status. |
| The buyer closes the bank window | The widget returns to the payment method selection, and your site does not fulfil the order. Wait for the final status from DEUNA. |
Limitations#
- Available only in Colombia and in
COP. - Available through the Payment Widget with the Purchase V2 flow.
- Only Purchase is supported. Authorization, Capture, and Cancel (Void) are not supported.
- Refunds are not supported. Movii does not publish a refund endpoint.
- Recurring payments are not supported.