Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFX Cybercash Tag error

Status
Not open for further replies.

Duncanmcl

Programmer
Dec 23, 2000
61
US
I'm developing in a local server environment using PWS, ColdFusion Studio and Access. I'm using the Coldfusion Cybercash tag, registered in administor. I'm trying to test and pass a transaction to Cybercash and get a response status. My test is made with my PC connected to the web via AOL. I have called cybercash with my code and they say all required fields are their and my test values are ok. The error returned is on my MStatus line? Note for test I have hardcoded all values. I'm not even sure if my data has been passed to Cybercash...any way to tell...my error is returned after about 10 sec's.

Can anyone identify the problem?? Thanks in advance...Jim
<CFX_CYBERCASH
version=&quot;3.2&quot;
CCPS_Host=&quot; cybercash_id=&quot;test-mck&quot;
hash_secret=&quot;secret-test-mck&quot;
merchant_key=&quot;key-test-mck&quot;
outputpopquery=&quot;pop&quot;
card_type=&quot;MC&quot;
SERVER=&quot;r5e5b5&quot;
timeout =&quot;120&quot;
cpi_card_address=&quot;cc&quot;
cpi_card_exp=&quot;03/02&quot;
cpi_card_name=&quot;aaaaaa bbbbbbb&quot;
cpi_card_number=&quot;4444555566667777&quot;
mo_order_id=&quot;123zz&quot;
mo_price=&quot;usd25.99&quot;
mo_version=&quot;mck-cfx-3.2.0.6&quot;>
<HTML>

<HEAD>

<TITLE>Order Status</TITLE>

</HEAD>

<!---if payment fails, show error message--->

<CFIF mstatus is &quot;failure-hard&quot;>

Your order has not been processed. Our payment process returned the following error:<P>

<CFOUTPUT>#MErrMsg#</CFOUTPUT>

</CFIF>--->

<!---if payment succeeds, add ordered items to orders table and show confirmation--->

<CFIF mStatus is &quot;success&quot;>

Your order has been processed. Your order ID is <CFOUTPUT>#session.cfid#</CFOUTPUT>. Please print this page for your records<P>
 
Found my own answer! In the above script, the key to the problem the the OutputPoPQuery, that the name of an inbedded query within the Tag where the response data is returned and temp stored. In my example I named this query 'POP'. There in the CFIF statement you need to refer to it as pop.status. The script works correctly in a test environment. The actual variables in OutputPopPQuery is not clear...but status, error_message are valid...i'm not sure if we can get an accept in test mode...I need to call Cybercase again....note their support didn't see the fix I needed. End-of-story
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top