Menu

ToditoCash Card

How to integrate ToditoCash Card payments:

Direct payment request

For ToditoCash Card payments, you must supply:

  • The <shopperEmailAddress>
  • The pan - The voucher card number
  • The pin - The Personal Identification Number corresponding to the card
Copied!
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE paymentService PUBLIC "-//WorldPay/DTD WorldPay PaymentService v1//EN" "http://dtd.worldpay.com/paymentService_v1.dtd">
<paymentService version="1.4" merchantCode="YOUR_MERCHANT_CODE"> <!--Use your merchant code-->
  <submit>
    <order orderCode="YOUR_ORDER_CODE"> <!--Use a unique order code each time-->
      <description>test order</description>
      <amount value="500" currencyCode="MXN" exponent="2"/>
      <orderContent>
        <![CDATA[]]>
      </orderContent>
      <paymentDetails>
        <TODITOCARD-SSL shopperCountryCode="MX">
          <pan>1111111111</pan><!--Mandatory-->
          <pin>3333</pin><!--Mandatory-->
          <successURL>http://www.worldpay.com/successURL</successURL>
          <cancelURL>http://www.worldpay.com/cancelURL</cancelURL>
          <pendingURL>http://www.worldpay.com/pendingURL</pendingURL>
        </TODITOCARD-SSL>
      </paymentDetails>
      <shopper>
        <shopperEmailAddress>shopper@worldpay.com</shopperEmailAddress><!--Mandatory-->
      </shopper>
    </order>
  </submit>
</paymentService>

Response URLs

If you are using the Direct model, you must specify the successURL, cancelURL, and pendingURL. If you are using the Hosted model, we recommend that you specify these URLs.

After you submit your order, the Worldpay Payment service returns either of the following response URLs:

  • successURL, if the payment is successful
  • pendingURL, which is returned in exceptional circumstances, for example, if there is an unexpected delay in the bank authorising the payment