Skip to content

Instantly share code, notes, and snippets.

@npverni
Created September 28, 2012 16:53
Show Gist options
  • Select an option

  • Save npverni/3800927 to your computer and use it in GitHub Desktop.

Select an option

Save npverni/3800927 to your computer and use it in GitHub Desktop.
VALIDATE:
REQUEST:
<?xml version="1.0"?>
<Txn>
<CardHolderName>James Jamerson</CardHolderName>
<CardNumber>4111111111111111</CardNumber>
<DateExpiry>0813</DateExpiry>
<Cvc2>123</Cvc2>
<Cvc2Presence>1</Cvc2Presence>
<Amount>1.00</Amount>
<InputCurrency>NZD</InputCurrency>
<EnableAddBillCard>1</EnableAddBillCard>
<PostUsername>ChargifyDev</PostUsername>
<PostPassword>test1234</PostPassword>
<TxnType>Validate</TxnType>
</Txn>
RESPONSE:
---
:px_pay_bg_color:
:card_holder_response_description: The Transaction was approved
:test_mode: "0"
:txn_mac: 2BC20210
:auth_code: 04411300e09a0700000001
:rm_reason:
:allow_retry: "1"
:enable_post_response: "0"
:acquirer: Undefined
:currency_name: NZD
:rx_date_local: "20120929044113"
:px_pay_options:
:merchant_response_text: APPROVED
:date_expiry: 0813
:amount_balance: "0.00"
:rm_reason_id: "0000000000000000"
:dps_txn_ref: 0000000100e09a07
:transaction_id: 00e09a07
:billing_id:
:dps_billing_id: 0000010001287681
:px_pay_name:
:acquirer_re_co: "00"
:card_holder_name: JAMES JAMERSON
:local_time_zone: NZT
:cvc2_result_code: NotUsed
:merchant_help_text: The Transaction was approved
:product_id:
:currency_id: "554"
:amount: "1.00"
:risk_score: "-1"
:response_text: APPROVED
:px_host_id: "00000001"
:px_pay_logo_src:
:acquirer_response_text: APPROVED
:date_settlement: "20120929"
:merchant_reference:
:re_co: "00"
:acquirer_port: 1000000-1002486
:merchant_response_description: The Transaction was approved
:acquirer_date: "20120929"
:input_currency_id: "554"
:retry: "0"
:risk_score_text:
:success: "1"
:px_pay_user_id:
:card_id: "2"
:txn_type: Auth
:card_name: Visa
:help_text: Transaction Approved
:acquirer_txn_ref: "465499"
:url_fail:
:acquirer_time: "044113"
:input_currency_name: NZD
:authorized: "1"
:px_pay_xsl:
:card_holder_help_text: The Transaction was approved
:card_holder_response_text: APPROVED
:card_number: 411111........11
:status_required: "0"
:txn_ref:
:group_account: "9997"
:url_success:
:acquirer_id: "9001"
:currency_rate: "1.00"
:rx_date: "20120928164113"
/Users/npverni/apps/gh/active_merchant/lib/active_merchant/billing/gateways/payment_express.rb:205:in `add_amount'Support for Money objects is deprecated and will be removed from a future release of ActiveMerchant. Please use an Integer value in cents
PURCHASE
REQUEST:
<?xml version="1.0"?>
<Txn>
<DpsBillingId>0000010001287681</DpsBillingId>
<Amount>25.00</Amount>
<InputCurrency>USD</InputCurrency>
<PostUsername>ChargifyDev</PostUsername>
<PostPassword>test1234</PostPassword>
<TxnType>Purchase</TxnType>
</Txn>
RESPONSE:
---
:px_pay_bg_color:
:card_holder_response_description: The Transaction was approved
:test_mode: "0"
:txn_mac: 2BC20210
:auth_code: "044117"
:rm_reason:
:allow_retry: "1"
:enable_post_response: "0"
:acquirer: Undefined
:currency_name: USD
:rx_date_local: "20120929044117"
:px_pay_options:
:merchant_response_text: APPROVED
:date_expiry: 0813
:amount_balance: "0.00"
:rm_reason_id: "0000000000000000"
:dps_txn_ref: 0000000100e09a0a
:transaction_id: 00e09a0a
:billing_id:
:dps_billing_id: 0000010001287681
:px_pay_name:
:acquirer_re_co: "00"
:card_holder_name: JAMES JAMERSON
:local_time_zone: NZT
:cvc2_result_code: NotUsed
:merchant_help_text: The Transaction was approved
:product_id:
:currency_id: "840"
:amount: "25.00"
:risk_score: "-1"
:response_text: APPROVED
:px_host_id: "00000001"
:px_pay_logo_src:
:acquirer_response_text: APPROVED
:date_settlement: "20120929"
:merchant_reference:
:re_co: "00"
:acquirer_port: 1000000-1002486
:merchant_response_description: The Transaction was approved
:acquirer_date: "20120929"
:input_currency_id: "840"
:retry: "0"
:risk_score_text:
:success: "1"
:px_pay_user_id:
:card_id: "2"
:txn_type: Purchase
:card_name: Visa
:help_text: Transaction Approved
:acquirer_txn_ref: "465500"
:url_fail:
:acquirer_time: "044117"
:input_currency_name: USD
:authorized: "1"
:px_pay_xsl:
:card_holder_help_text: The Transaction was approved
:card_holder_response_text: APPROVED
:card_number: 411111........11
:status_required: "0"
:txn_ref:
:group_account: "9997"
:url_success:
:acquirer_id: "9001"
:currency_rate: "1.00"
:rx_date: "20120928164117"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment