Quick Start (Redirect)

This quick start demonstrates how to initiate a Visa card deposit using the Redirect Integration Option (with PXP Financial Hosted Payment Pages).


Do not use Sandbox attribute in iFrame

If the merchant is displaying the PXP Financial Checkout in an iFrame, then the merchant iFrame must not use the Sandbox attribute!

Step 1: Call getRedirectData

Use Google Chrome with Postman for example to POST (over https) the following request to Payment Service:



  • Authorization = Basic base64({username}:{password})
    • can be set automatically by the Authentication screen in Postman
  • Content-Type = application/xml; charset=utf-8
    • can be automatically set by using the Body screen in Postman

The below screen of Postman automatically creates the Authorization header.

Choose "Raw" and then application/xml, which automatically sets the Content-Type header. The headers will finally look like this:

Paste the below in the Body field:

<getRedirectDataRequest xmlns="http://www.cqrpayments.com/PaymentProcessing" 
  <redirectParameters xsi:type="paymentMethodSelectionWithDetailsRedirectParameters">
      <detail xsi:type="keyStringValuePair">
      <detail xsi:type="keyStringValuePair">
        <value>Order Description</value>

Postman should look like this:

After pressing the Send button you should see the following:

<getRedirectDataResponse xmlns="http://www.cqrpayments.com/PaymentProcessing" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <redirectData xsi:type="redirectDataWithPost">

Step 2: Redirect to PXP Financial Hosted Payment Pages

Save the following html/javascript to a file. Replace {REQUEST_DATA} with the value of the getRedirectDataResponse.redirectData.dataFields.dataField with key equal to "redirectData":

		<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
		<form name="input" action="https://payments.test.kalixa.com/Checkout/PaymentMethods/" method="post">
			<input type="text" name="requestData" value="{REQUEST_DATA}"/>
			<input type="submit" value="Submit"/>

Open it with a browser, click the Submit button and you will be redirected to the PXP Financial Hosted Payment Pages:


Choose Visa Deposit


Enter the following test values into the form:

  • Holder Name: TestUser
  • Expiry Month: 12
  • Expiry Month: 2025
  • Card Number: 4111111111111111
  • CVC: 111

and press "Deposit now" or "Pay Now". You will be redirected to the success URL supplied previously in getRedirectDataRequest.redirectParameters.successUrl.


  • No shop fee applied (usual case): http://www.merchantwebsite.com/success?am=3300
  • Shop fee applied http://www.merchantwebsite.com/success?am=3300&fee=165
    Note: Shop fees can be configured per merchant, shop and payment method and can be a percentage fee or fixed amount or a combination of both. The PXP Checkout would calculate the fee amount based on the payment amount and add it to the total amount (=surcharge). It is important to ensure that this action complies with any applicable laws that pertain to the merchants business or payment country.

The Merchant application should at this point not yet mark the order as paid, or credit the customer's account with the money, as the above request can be easily manipulated.
Instead the merchant should implement a notification listener, which will be notified in the background by PaymentService at approximately the same time as the customer's redirection back. For more information see Process Notifications