success Card
-
How to get the success code for card payment. I mean if card is right then I wanna add a function on it.
-
The response returned from authorize.net is as follows
AuthorizeNetAIM_Response Object( [_response_array:AuthorizeNetAIM_Response:private] => Array ( [0] => 1 [1] => 1 [2] => 1 [3] => This transaction has been approved. [4] => LBO9HU [5] => Y [6] => 40007687557 [7] => 4537 [8] => WordPress Demos Order #4537 [9] => 20.00 [10] => CC [11] => auth_capture [12] => 1 [13] => Allen [14] => Wang [15] => System8088 [16] => Chemsford Road [17] => Allen [18] => TX [19] => 75013 [20] => US [21] => 9852502084 [22] => [23] => [email protected] [24] => [25] => [26] => [27] => [28] => [29] => [30] => [31] => [32] => 0.00 [33] => [34] => 0.00 [35] => [36] => [37] => 5093EADE909D8188B78D7875D51D5BC3 [38] => P [39] => 2 [40] => [41] => [42] => [43] => [44] => [45] => [46] => [47] => [48] => [49] => [50] => XXXX1111 [51] => Visa [52] => [53] => [54] => [55] => [56] => [57] => [58] => [59] => [60] => [61] => [62] => [63] => [64] => [65] => [66] => [67] => [68] => ) [approved] => 1 [declined] => [error] => [held] => [response_code] => 1 [response_subcode] => 1 [response_reason_code] => 1 [response_reason_text] => This transaction has been approved. [authorization_code] => LBO9HU [avs_response] => Y [transaction_id] => 40007687557 [invoice_number] => 4537 [description] => WordPress Demos Order #4537 [amount] => 20.00 [method] => CC [transaction_type] => auth_capture [customer_id] => 1 [first_name] => Allen [last_name] => Wang [company] => System8088 [address] => Chemsford Road [city] => Allen [state] => TX [zip_code] => 75013 [country] => US [phone] => 9852502084 [fax] => [email_address] => [email protected] [ship_to_first_name] => [ship_to_last_name] => [ship_to_company] => [ship_to_address] => [ship_to_city] => [ship_to_state] => [ship_to_zip_code] => [ship_to_country] => [tax] => 0.00 [duty] => [freight] => 0.00 [tax_exempt] => [purchase_order_number] => [md5_hash] => 5093EADE909D8188B78D7875D51D5BC3 [card_code_response] => P [cavv_response] => 2 [account_number] => XXXX1111 [card_type] => Visa [split_tender_id] => [requested_amount] => [balance_on_card] => [response] => 1|1|1|This transaction has been approved.|LBO9HU|Y|40007687557|4537|Wordpress Demos Order #4537|20.00|CC|auth_capture|1|Allen|Wang|System8088|Chemsford Road|Allen|TX|75013|US|9852502084||[email protected]|||||||||0.00||0.00|||5093EADE909D8188B78D7875D51D5BC3|P|2|||||||||||XXXX1111|Visa|||||||||||||||||)
You can take what you need from this response array and add your code ? there is somthing like [card_code_response] => P but its not P always depends on settings in authorize.net
- The topic ‘success Card’ is closed to new replies.