![]() |
|
#1
|
||||
|
||||
Displaying Results Via URLOverview: 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 07:52.
|
||||
|
#2
|
||||
|
||||
|
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. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
||||
|
||||
|
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
|
|||
|
|||
|
Quote:
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
|
||||
|
||||
|
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 GIDBlog
Install Adobe Flash - Without Administrator Rights by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hardware Forum Getting the Results? | BobbyDouglas | GIDForums™ | 4 | 05-Mar-2004 11:37 |
| Trying to retrieve selective results from a table. | icsys | MySQL / PHP Forum | 9 | 18-Nov-2003 03:31 |
| Displaying the Post Number | BobbyDouglas | Open Discussion Forum | 4 | 10-Oct-2003 10:43 |
| Displaying Code Using Notepad | BobbyDouglas | Web Design Forum | 1 | 16-Aug-2003 06:03 |
| Search Engine Positioning 101 and 201 "How To" Tips... | 000 | Search Engine Optimization Forum | 0 | 29-May-2003 10:34 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The