PSE testing data

This page provides testing data and expected responses for a successful PSE integration.

Expected statuses

After PSE redirects the user back to the page specified by the merchant, the processor will send DEUNA's system updates through Webhooks, regarding the final status of the transaction.

📘

For more information, refer to DEUNA webhooks.

After creating a transaction for an order, a transaction passes through the following statuses:

  • pending: The transaction is recently created. To obtain a final status, the merchant must redirect the user to the URL given by the processor to complete the PSE transaction.
  • processed: The PSE transaction has been successfully completed. In this case, the status of the order will be succeeded.
  • denied: A final status after the PSE transaction failed or after it was abandoned by the user.

📘

These statuses are accessible through the order.payment.data.status property from our payment endpoint response.

Sandbox testing

Send the following input to test your integration in DEUNA's sandbox environment. The input allows you to process a PSE transaction through PayU's Sandbox environment:

{	
	"payment_source": {
		"method_type_specific_fields": {
			"pse": {
				"financial_institution": "1022",
				"financial_institution_name": "BANCO UNION COLOMBIANO"
			}
		}
	}
}

The response from PayU will return a redirection URL to complete the transaction in their Sandbox environment for PSE.

Redirection process

Follow these steps to test the redirection process for a user:

  1. The user is redirected to enter their email address.
  2. The user enters [email protected] and then clicks Ir al Banco to proceed.

🚧

The user enters the PSE sample frontend.

  1. Click Debug to move forward.
  1. User confirms the transaction by filling the following fields:
  2. bankProcessDate: Must have the same date as soliciteDate.
  3. transactionState: Expected final status for the transaction. Use the options in the dropdown menu to test different paths.
  4. authorizationID: Must have the value 12 to proceed.
  5. After completing the form, the user clicks Call to set the final status of the transaction.
  1. The user clicks Return to PPE to execute the redirection to the URL.

Airline data

For merchants in the airline industry, the PSE integration allows them to send the following information about a ticket being booked by their users, through these fields from the order of their users:

Airline informationDeuna field
Passenger Name Record (PNR)order.airline_information.booking_items[].pnr
IATA code of the airline operating the flightorder.airline_information.booking_items[].legs[].origin.iata_code
IATA code of travel agency booking the flightorder.airline_information.booking_items[].ticketing_travel_agency.iata_code