GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 17-Mar-2004, 21:12
BobbyDouglas's Avatar
BobbyDouglas BobbyDouglas is offline
Regular Member
 
Join Date: Aug 2003
Posts: 789
BobbyDouglas has a spectacular aura aboutBobbyDouglas has a spectacular aura about

Displaying Results Via URL


Overview: I am currently working on a project that works with a Bank of America merchant account. I plan to have a payment page on a secure connection that will have both hidden values as well as input boxes for them to enter their name, credit card information, ect.

The information then gets passed to the Bank of America Gateway which will then process the information, and send back a response to a specified page in the form of:
http://merchant_domain.com/reject.as...rder_id=001 & IOC_merchant_shopper_id=001&IOC_shopper_id=W2J67H4 950S92GN700A3H69HVH6TDX5B &IOC_response_code=0&Ecom_transaction_complete=TRU E&IOC_order_total_amount=0.1& IOC_reject_description=The+credit+card+number+or+e xpiration+you+provided+appears+invalid%2E& IOC_AVS_result=4 &textfield=merchant_defined_value&textfield2=merch ant_defined_value&
textfield3=merchant_defined_value&submit1=Proceed+ to+Checkout


If the transaction is invalid, it will bring you to another page that will have the URL above.

Question: How do I parse the URL to form a “reason” behind a failed transaction.

The response code will be something like 0,1,2,3. And if the response code was 1, it would say: Error: We're sorry, but we are unable to process your request at this time due to a communication issue with your card-issuing company. Please retry this transaction or try using a different Credit Card for this purchase.

So instead of displaying the numver 1, it will display the actual message. Unless, the number 1 is a 2, and then it would display something like: We're sorry, but we are unable to authorize your request. Please contact the Company that issued this Credit Card or try using a different Credit Card for this purchase.

Has anyone done something like this before?
Last edited by dsmith : 18-Mar-2004 at 08:52.
  #2  
Old 18-Mar-2004, 09:36
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
When you say 'merchant_domain.com', you mean that's the domain off the project you're working on?

If that's true, then inside the web page, reject.asp you can process the GET variables. Since the page is in .ASP, I have no clue how that's done. In PHP, you will have the information in the SUPER GLOBAL arrays $_GET and $_REQUEST.
  #3  
Old 18-Mar-2004, 10:14
BobbyDouglas's Avatar
BobbyDouglas BobbyDouglas is offline
Regular Member
 
Join Date: Aug 2003
Posts: 789
BobbyDouglas has a spectacular aura aboutBobbyDouglas has a spectacular aura about
When you say 'merchant_domain.com', you mean that's the domain off the project you're working on?
- Correct.


If that's true, then inside the web page, reject.asp you can process the GET variables. Since the page is in .ASP, I have no clue how that's done. In PHP, you will have the information in the SUPER GLOBAL arrays $_GET and $_REQUEST.
- It could be done in any language. Basically, I set up the payment page, have it send the information to the gateway, then if the page is accepted, it will goto a specific URL (I can set this specific URL inside of the gayway through an online interface) afterwards, the rejected page (if it was rejected) will have a few specific numbers in it that will stand for something. Where 1 stands for Hello, and 2 stands for Goodbye. Things like that.
__________________
Mr. Bob's Web Design - Tirelessly looking for ways to enhance the customer base of your business.
  #4  
Old 19-Mar-2004, 21:12
erniegerdie erniegerdie is offline
Awaiting Email Confirmation
 
Join Date: Feb 2004
Location: England
Posts: 93
erniegerdie has a spectacular aura abouterniegerdie has a spectacular aura about
Quote:
Originally Posted by BobbyDouglas
Question: How do I parse the URL to form a “reason” behind a failed transaction.

The response code will be something like 0,1,2,3. And if the response code was 1, it would say: Error: We're sorry, but we are unable to process your request at this time due to a communication issue with your card-issuing company. Please retry this transaction or try using a different Credit Card for this purchase.

So instead of displaying the numver 1, it will display the actual message. Unless, the number 1 is a 2, and then it would display something like: We're sorry, but we are unable to authorize your request. Please contact the Company that issued this Credit Card or try using a different Credit Card for this purchase.

Has anyone done something like this before?

Can reject.asp not just grab the response_code:
response_code = Request.QueryString("IOC_response_code");

Then create a message depending on the value of response_code.

Or am I missing something here?
  #5  
Old 20-Mar-2004, 12:35
BobbyDouglas's Avatar
BobbyDouglas BobbyDouglas is offline
Regular Member
 
Join Date: Aug 2003
Posts: 789
BobbyDouglas has a spectacular aura aboutBobbyDouglas has a spectacular aura about
Maybe? I dunno. Im just wodnering how to do it.
__________________
Mr. Bob's Web Design - Tirelessly looking for ways to enhance the customer base of your business.
 
 

Recent GIDBlogAccepted for Ph.D. program by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hardware Forum Getting the Results? BobbyDouglas GIDForums™ 4 05-Mar-2004 12:37
Trying to retrieve selective results from a table. icsys MySQL / PHP Forum 9 18-Nov-2003 04:31
Displaying the Post Number BobbyDouglas Open Discussion Forum 4 10-Oct-2003 11:43
Displaying Code Using Notepad BobbyDouglas Web Design Forum 1 16-Aug-2003 07:03
Search Engine Positioning 101 and 201 "How To" Tips... 000 Search Engine Optimization Forum 0 29-May-2003 11:34

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 08:25.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.