Test Result : Cancelled: Data format problem

I am using US Hosted Pay Page, and using hpp id and key from Merchant Resource Center. But when i use any of sample credit cards given, i am getting  Cancelled: Data format problem. Any clue?

  • We have just been pointed out that we missed this. Are you still looking for an answer? Typically that's because invalid data is passed to the hosted paypage. For example the charge amount not including two decimal points. Or maybe a comma in the amount etc.
  • In reply to RR_Moneris:

    This is resolved, Thanks!
  • I am getting the same "Cancelled: Data format problem" but when using the US gateway with the Drupal Commerce Moneris module (not HPP).

    Array
    (
    [gateway] => us
    [server] => test
    [unique_order_id] => 153-113
    [request] => Array
    (
    [type] => us_preauth
    [order_id] => 153-113
    [amount] => 1.00
    [crypt_type] => 7
    [cust_id] => 0
    [dynamic_descriptor] => Customer Store Name
    [commcard_invoice] => 153
    [commcard_tax_amount] => 0.00
    [pan] => ************5454
    [expdate] => 2002
    [cvd_indicator] => 1
    [cvd_value] => ***
    )

    [responseData] => Array
    (
    [ReceiptId] => null
    [ReferenceNum] => null
    [ResponseCode] => null
    [ISO] => null
    [AuthCode] => null
    [TransTime] => null
    [TransDate] => null
    [TransType] => null
    [Complete] => false
    [Message] => Cancelled: Data format problem
    [TransAmount] => null
    [CardType] => null
    [TransID] => null
    [TimedOut] => null
    [Ticket] => null
    )

    )
  • In reply to Sean:

    Hi Sean,

    there seems to be some oddity there in that request? What are these parameters: gateway, server, unique_order_id request? is that part of what gets sent to our gateway? these are not parameters that we support.

    where did you get the module from? Was there modifications done to it?
  • In reply to RR_Moneris:

    Sorry ,that was the object in Drupal. I am using Drupal Commerce with the module Commerce Moneris 7.x-2.0-rc1.

    Here is the XML request:

    <?xml version="1.0" encoding="iso-8859-1"?>
    <request>
    <store_id>monusqa005</store_id>
    <api_token>qatoken</api_token>
    <us_preauth>
    <order_id>153-121</order_id>
    <cust_id>0</cust_id>
    <amount>2.00</amount>
    <pan>5454545454545454</pan>
    <expdate>1802</expdate>
    <crypt_type>7</crypt_type>
    <dynamic_descriptor>Customer Store Name</dynamic_descriptor>
    </us_preauth>
    </request>

  • In reply to Sean:

    I just tested and got an approval. Are you sure that this is the XML that gets posted to our gateway? I can maybe give you a call and we can do a live trace? Can you email eproducts@moneris.com and provide your number? Just make sure to include this conversation for context.