Authorize.net - Registered trademark of Cybersource, a Visa company. Steps involved in online buying through credit card: 1. Customer submits credit card info. 2. Authorize.net forwards info to Merchant Banks *processor* which then forwards info to the Visa/Master network; 3. After sanity checking, it Visa (say) forwards the request to issuing Bank, which validates the 'credit limit' and other info and approves the transaction. Approval is forwarded to *processor* and then to authorize.net. 4. Authorize.net stores the transaction and sends info to both buyer and merchant. 5. (buyer credit card) Issuing Bank deposits money to Visa; Visa then transfers money to merchant's bank account. =================================================================== - Created test account with authorize.net : thavamuni1 / H.Na* Save Your API Credentials To help you get started quickly, we've generated these Test API Credentials. Save these for use in testing your application. Card Not Present Test Account API Login ID 9Xfp7t6AfQ Transaction Key 44T869AKwd3mfPQ6 =================================================================== The merchantās Transaction Key is highly sensitive and should only be known by the payment gateway and the merchant. For this reason it is vital that the Transaction Key is stored securely and separately from the merchantās Web server. In addition, note that the merchantās API Login ID will be visible in the source for the payment form request, but the Transaction Key should never be visible. =================================================================== =================================================================== Example Session with localhost : =================================================================== Step 1: register.php First visit =================================================================== Your session name is: PHPSESSID Your session id is: var_dump of _SESSION is : _SESSION undefined var_dump of _REQUEST is : array(0) { } Choose prgid, click on 'Get Details!' =================================================================== Step 2: Prg id chosen; register.php?prgid=xxx =================================================================== Your session name is: PHPSESSID Your session id is: qlc5md41sq4cc3ukftpkh7l035 var_dump of _SESSION is : array(2) { ["prgid"]=> string(32) "nsp20120322-bidadi-india-swamiji" ["my_ses_id"]=> string(26) "qlc5md41sq4cc3ukftpkh7l035" } var_dump of _REQUEST is : array(1) { ["prgid"]=> string(32) "nsp20120322-bidadi-india-swamiji" } Prompt for user data, etc. This is saved in session variable. Click on Pay! =================================================================== Step 3: Prog Reg Confirmation Page; register.php?prgid=xxx&prg_confirmed=1 =================================================================== Your session name is: PHPSESSID Your session id is: qlc5md41sq4cc3ukftpkh7l035 var_dump of _SESSION is : array(2) { ["prgid"]=> string(32) "nsp20120322-bidadi-india-swamiji" ["my_ses_id"]=> string(26) "qlc5md41sq4cc3ukftpkh7l035" } COOKIE is : array(3) { ["has_js"]=> string(1) "1" ["SESScfc90a62c81b7bfc6f292320b1d0b8ca"]=> string(26) "25i9t4hk0e32eu6msptaf65oi7" ["PHPSESSID"]=> string(26) "qlc5md41sq4cc3ukftpkh7l035" } var_dump of _REQUEST is : array(5) { ["first_name"]=> string(2) "Th" ["last_name"]=> string(2) "Al" ["email"]=> string(19) "thavamuni@yahoo.com" ["prgid"]=> string(32) "nsp20120322-bidadi-india-swamiji" ["prg_confirmed"]=> string(1) "1" } =================================================================== Example Session with Drupal : =================================================================== =================================================================== Step 1: register.php First visit =================================================================== Your session name is: SESScfc90a62c81b7bfc6f292320b1d0b8ca Your session id is: f9l4i81gq0mtbgs4fr26csgb64 _COOKIE is: Array ( [SESS18bd860e1dbadf7835cee5f21360acbe] => o43u9f0fntmtitgupf7kihjel3 [SESS9e8b0b0e752600bbac8426f64a287f00] => t4na5757fmlm2bdinl3nkhnso2 [SESS59451e1f92c3e076af71fcf72e564a4b] => 7uq716tpu0rqijrd3rofarlfb7 [SESScfc90a62c81b7bfc6f292320b1d0b8ca] => f9l4i81gq0mtbgs4fr26csgb64 [has_js] => 1 ) user is : stdClass Object ( [uid] => 1 [name] => thava [pass] => a9d604a1890d7fd09501d71935e17065 [mail] => thavamuni@gmail.com [mode] => 0 [sort] => 0 [threshold] => 0 [theme] => [signature] => [signature_format] => 0 [created] => 1332158111 [access] => 1332336990 [login] => 1332335949 [status] => 1 [timezone] => [language] => [picture] => [init] => thavamuni@gmail.com [data] => a:0:{} [sid] => f9l4i81gq0mtbgs4fr26csgb64 [hostname] => 127.0.0.1 [timestamp] => 1332337030 [cache] => 0 [session] => node_overview_filter|a:0:{}hsid|i:4; [roles] => Array ( [2] => authenticated user ) ) print_r of _SESSION is : Array ( [node_overview_filter] => Array ( ) [hsid] => 4 ) print_r of _REQUEST is: Array ( [q] => register.php ) Another visit to the same page: =================================================================== Your session name is: SESScfc90a62c81b7bfc6f292320b1d0b8ca <=== same Your session id is: f9l4i81gq0mtbgs4fr26csgb64 <=== same _COOKIE is: <== same. user is : stdClass Object ( <== same things are omitted. [uid] => 1 [name] => thava [created] => 1332158111 <== same [access] => 1332336990 <== same [login] => 1332335949 <== same [init] => thavamuni@gmail.com [data] => a:0:{} [sid] => f9l4i81gq0mtbgs4fr26csgb64 [timestamp] => 1332337035 <== old timestamp was: => 1332337030 [cache] => 0 print_r of _SESSION is <== same print_r of _REQUEST is: Array ( [q] => register.php ) <== same After logging out go to the same page: =================================================================== Note: The older session name/id is not destroyed! However the session variables have been cleared! Your session name is: SESScfc90a62c81b7bfc6f292320b1d0b8ca Your session id is: f9l4i81gq0mtbgs4fr26csgb64 _COOKIE is: Array ( [SESS18bd860e1dbadf7835cee5f21360acbe] => o43u9f0fntmtitgupf7kihjel3 [SESS9e8b0b0e752600bbac8426f64a287f00] => t4na5757fmlm2bdinl3nkhnso2 [SESS59451e1f92c3e076af71fcf72e564a4b] => 7uq716tpu0rqijrd3rofarlfb7 [SESScfc90a62c81b7bfc6f292320b1d0b8ca] => f9l4i81gq0mtbgs4fr26csgb64 [has_js] => 1 ) user is : stdClass Object ( [uid] => 0 [hostname] => 127.0.0.1 [roles] => Array ( [1] => anonymous user ) [session] => [cache] => 0 ) print_r of _SESSION is : Array ( ) print_r of _REQUEST is: Array ( [q] => register.php ) ===================================================================