Recommend this page to a friend! |
Classes of Samuel Adeshina | PHP Authorize.net SIM | sdk/doc/SIM.markdown | Download |
|
DownloadServer Integration MethodBasic OverviewThe Authorize.Net PHP SDK includes classes that can speed up implementing a Server Integration Method solution. Hosted Order/Receipt PageThe AuthorizeNetSIM_Form class aims to make it easier to setup the hidden fields necessary for creating a SIM experience. While it is not necessary to use the AuthorizeNetSIM_Form class to implement SIM, it may be handy for reference. The code below will generate a buy now button that leads to a hosted order page:
Fingerprint GenerationTo generate the fingerprint needed for a SIM transaction call the getFingerprint method:
Relay ResponseThe PHP SDK includes a AuthorizeNetSIM class for handling a relay response from Authorize.Net. To receive a relay response from Authorize.Net you can either configure the url in the Merchant Interface or specify the url when submitting a transaction with SIM using the "x_relay_url" field. When a transaction occurs, Authorize.Net will post the transaction details to this url. You can then craete a page on your server at a url such as http://yourdomain.com/response_handler.php and execute any logic you want when a transaction occurs. The AuthorizeNetSIM class makes it easy to verify the transaction came from Authorize.Net and parse the response:
|