Skip to main content
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#

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.

  1. Create an order_token. Create an order in COP for a Colombian merchant with the Create an Order endpoint. The API returns the order_token used throughout the flow.
  2. Open the widget. Initialize the Payment Widget with the order_token. The buyer sees Movii (PSE Avanza) among the methods enabled for your account.
  3. Collect the buyer's details. The buyer selects a bank and enters their email, full name, document type and number, phone number, and address.
  4. 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.

FieldDescriptionRestriction
payment_source.method_typePayment method typebank_transfer
payment_source.processorProcessormovii_pse
payment_source.method_type_specific_fields.pse.financial_institutionCode of the bank selected by the buyerMaximum 5 characters
order.billing_address.identity_document_typeDocument typeCC, RC, TI, CE, PP, or NIT
order.billing_address.identity_documentDocument numberMaximum 15 characters
order.billing_address.first_name and order.billing_address.last_namePayer nameMaximum 64 characters in total
order.billing_address.phonePhone number10 digits, without +57
order.billing_address.address1 and order.billing_address.address2AddressMaximum 64 characters in total
order.billing_address.emailEmailMaximum 120 characters
order.currencyCurrencyCOP only
order.total_amountOrder amountUp to 14 digits, in cents
order.total_tax_amountTax amountUp to 14 digits, in cents
order.descriptionOrder descriptionMaximum 80 characters, including the order_id
order.callback_urls.on_successURL to return the buyer to after paymentMaximum 512 characters

Expected statuses#

payment.data.statusFinalMeaning
pendingNoThe transaction was created, and the buyer has not finished at the bank.
processedYesThe PSE transaction was completed. The order is succeeded.
deniedYesThe 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).

  1. 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.
  2. Create an order in COP and open the widget. Use a different document number for each test payment.
  3. 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.
  4. Set the final state of the transaction in the simulator, run it, and return to the merchant.
  5. Verify that the widget shows the result and that order.payment.data.status has the expected value.

Test these scenarios before going live:

ScenarioWhat to verify
The buyer completes the paymentorder.payment.data.status is processed, and the order is succeeded.
The bank rejects the paymentorder.payment.data.status is denied. It is not marked as paid, and your site shows the rejected-payment page.
The payment stays pendingorder.payment.data.status is pending. Your site does not fulfil the order until DEUNA reports a final status.
The buyer closes the bank windowThe 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.