You are here: credit card reciept response « PHP Programming Language « IT news, forums, messages
credit card reciept response

Posted by Paul Furman on 03/01/07 02:09

I'm setting up credit card payment through authorize.net and they have
the option to send a POST string back to my site once complete. I'm not
sure how to proceed. They don't have much to read about this, their tech
support seemed to think I've got the general idea though & said I might
have have my hosting server set up permissions to recieve POST data that
way.

Let me paste their explanation:
-----------
Gateway Response API
This section describes the response returned by the gateway when a
transaction is submitted for processing. The gateway response to a
transaction submitted via SIM is either a Receipt Page that is displayed
to the consumer or a POST string to a site designated by the merchant.
The merchant can then parse the POST string, customize a response, and
submit it back to the gateway. The gateway will then relay the response
to the customer’s browser.

x_response_code
Indicates the result of the transaction:
1 = Approved
2 = Declined
3 = Error

x_trans_id
This number identifies the transaction in the system and can be used to
submit a modification of this transaction at a later time, such as
voiding, crediting or capturing the transaction.

x_invoice_num
This is the merchant's supplied invoice number

etc...
--------

So best I figure I'm going to get a redirect to my server And I'm
guessing I'd use something like this:

if (isset($_REQUEST['x_response_code'])) {
//then finalize the order, subtract from inventory
// and generate a reciept

And I'm not so comfortable with the idea of setting up a page on my site
that lets any external server send POST data & retrieve customer's order
details. I think I'm not understanding all this. I do need to know if
their credit card was accepted to continue processing the order on my
end though. I don't want to update the inventory & they end up getting
their card rejected or give up.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация