<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Drupal recurring payment works only with sandbox not live in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Drupal-recurring-payment-works-only-with-sandbox-not-live/m-p/38323#M20974</link>
    <description>&lt;P&gt;I am using the Drupal moneyscripts module for recurring payments, everything works as it should, when I am using my Authorize.net sandbox account, but when I enter my live API key login&lt;BR /&gt;the module fails. meaning the user is not created in Drupal and the role is not assigned. but the catch is that the transaction does go through to authorize.net and gets approved there.&lt;BR /&gt;Only the Drupal side fails (a user is supposed to be created and role assigned) this works 100% using the authorize.net sandbox account, and the only thing I change is switching from sandbox to live.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have included response messages from authorize from both and the line of error in the module. First is the response I get from the live account when Drupal fails second is the response from the sandbox when everything works 100%.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Authorize.Net AIM: Payment for Order 66 failed.&lt;BR /&gt;&amp;lt;pre&amp;gt;Authnet Object ( [login:Authnet:private] =&amp;gt; [transkey:Authnet:private] =&amp;gt; [params:Authnet:private] =&amp;gt; Array ( [x_delim_data] =&amp;gt; TRUE [x_delim_char] =&amp;gt; | [x_relay_response] =&amp;gt; FALSE [x_url] =&amp;gt; FALSE [x_version] =&amp;gt; 3.1 [x_method] =&amp;gt; CC [x_type] =&amp;gt; AUTH_CAPTURE [x_login] =&amp;gt; 724Vs5JQht [x_tran_key] =&amp;gt; xxxxxxvg5dX [x_card_num] =&amp;gt; xxxxxx46 [x_exp_date] =&amp;gt; 07/2014 [x_amount] =&amp;gt; 0.01 [x_po_num] =&amp;gt; [x_tax] =&amp;gt; [x_card_code] =&amp;gt; 484 [x_invoice_num] =&amp;gt; [x_description] =&amp;gt; The Calorie Myth - Monthly Membership - $0.01 every Month [x_first_name] =&amp;gt; Davide [x_last_name] =&amp;gt; ededd [x_address] =&amp;gt; teststreet [x_city] =&amp;gt; New York [x_zip] =&amp;gt; 10538 [x_country] =&amp;gt; US [x_email] =&amp;gt; test@gmail.com [x_cust_id] =&amp;gt; 0 [x_customer_ip] =&amp;gt; 37.55.241.139 [x_email_customer] =&amp;gt; FALSE [x_duplicate_window] =&amp;gt; 0 ) [results:Authnet:private] =&amp;gt; Array ( [0] =&amp;gt; [1] =&amp;gt; 1 [2] =&amp;gt; [3] =&amp;gt; [4] =&amp;gt; 1 [5] =&amp;gt; [6] =&amp;gt; [7] =&amp;gt; 1 [8] =&amp;gt; [9] =&amp;gt; [10] =&amp;gt; This transaction has been approved. [11] =&amp;gt; [12] =&amp;gt; [13] =&amp;gt; 228479 [14] =&amp;gt; [15] =&amp;gt; [16] =&amp;gt; Z [17] =&amp;gt; [18] =&amp;gt; [19] =&amp;gt; 5841731972 [20] =&amp;gt; [21] =&amp;gt; [22] =&amp;gt; [23] =&amp;gt; [24] =&amp;gt; [25] =&amp;gt; The Calorie Myth - Monthly Membership - $0.01 every Month [26] =&amp;gt; [27] =&amp;gt; [28] =&amp;gt; 0.01 [29] =&amp;gt; [30] =&amp;gt; [31] =&amp;gt; CC [32] =&amp;gt; [33] =&amp;gt; [34] =&amp;gt; auth_capture [35] =&amp;gt; [36] =&amp;gt; [37] =&amp;gt; 0 [38] =&amp;gt; [39] =&amp;gt; [40] =&amp;gt; Davide [41] =&amp;gt; [42] =&amp;gt; [43] =&amp;gt; ededd [44] =&amp;gt; [45] =&amp;gt; [46] =&amp;gt; [47] =&amp;gt; [48] =&amp;gt; [49] =&amp;gt; teststreet [50] =&amp;gt; [51] =&amp;gt; [52] =&amp;gt; New York [53] =&amp;gt; [54] =&amp;gt; [55] =&amp;gt; [56] =&amp;gt; [57] =&amp;gt; [58] =&amp;gt; 10538 [59] =&amp;gt; [60] =&amp;gt; [61] =&amp;gt; US [62] =&amp;gt; [63] =&amp;gt; [64] =&amp;gt; [65] =&amp;gt; [66] =&amp;gt; [67] =&amp;gt; [68] =&amp;gt; [69] =&amp;gt; [70] =&amp;gt; test@gmail.com [71] =&amp;gt; [72] =&amp;gt; [73] =&amp;gt; [74] =&amp;gt; [75] =&amp;gt; [76] =&amp;gt; [77] =&amp;gt; [78] =&amp;gt; [79] =&amp;gt; [80] =&amp;gt; [81] =&amp;gt; [82] =&amp;gt; [83] =&amp;gt; [84] =&amp;gt; [85] =&amp;gt; [86] =&amp;gt; [87] =&amp;gt; [88] =&amp;gt; [89] =&amp;gt; [90] =&amp;gt; [91] =&amp;gt; [92] =&amp;gt; [93] =&amp;gt; [94] =&amp;gt; [95] =&amp;gt; [96] =&amp;gt; [97] =&amp;gt; [98] =&amp;gt; [99] =&amp;gt; [100] =&amp;gt; [101] =&amp;gt; [102] =&amp;gt; [103] =&amp;gt; [104] =&amp;gt; [105] =&amp;gt; [106] =&amp;gt; [107] =&amp;gt; [108] =&amp;gt; [109] =&amp;gt; [110] =&amp;gt; [111] =&amp;gt; [112] =&amp;gt; EA83CEE11EEFD957C634417DE9EEA716 [113] =&amp;gt; [114] =&amp;gt; [115] =&amp;gt; M [116] =&amp;gt; [117] =&amp;gt; [118] =&amp;gt; [119] =&amp;gt; [120] =&amp;gt; [121] =&amp;gt; [122] =&amp;gt; [123] =&amp;gt; [124] =&amp;gt; [125] =&amp;gt; [126] =&amp;gt; [127] =&amp;gt; [128] =&amp;gt; [129] =&amp;gt; [130] =&amp;gt; [131] =&amp;gt; [132] =&amp;gt; [133] =&amp;gt; [134] =&amp;gt; [135] =&amp;gt; [136] =&amp;gt; [137] =&amp;gt; [138] =&amp;gt; [139] =&amp;gt; [140] =&amp;gt; [141] =&amp;gt; [142] =&amp;gt; [143] =&amp;gt; [144] =&amp;gt; [145] =&amp;gt; [146] =&amp;gt; [147] =&amp;gt; [148] =&amp;gt; [149] =&amp;gt; [150] =&amp;gt; [151] =&amp;gt; XXXX6646 [152] =&amp;gt; [153] =&amp;gt; [154] =&amp;gt; MasterCard [155] =&amp;gt; [156] =&amp;gt; [157] =&amp;gt; [158] =&amp;gt; [159] =&amp;gt; [160] =&amp;gt; [161] =&amp;gt; [162] =&amp;gt; [163] =&amp;gt; [164] =&amp;gt; [165] =&amp;gt; [166] =&amp;gt; [167] =&amp;gt; [168] =&amp;gt; [169] =&amp;gt; [170] =&amp;gt; [171] =&amp;gt; [172] =&amp;gt; [173] =&amp;gt; [174] =&amp;gt; [175] =&amp;gt; [176] =&amp;gt; [177] =&amp;gt; [178] =&amp;gt; [179] =&amp;gt; [180] =&amp;gt; [181] =&amp;gt; [182] =&amp;gt; [183] =&amp;gt; [184] =&amp;gt; [185] =&amp;gt; [186] =&amp;gt; [187] =&amp;gt; [188] =&amp;gt; [189] =&amp;gt; [190] =&amp;gt; [191] =&amp;gt; [192] =&amp;gt; [193] =&amp;gt; [194] =&amp;gt; [195] =&amp;gt; [196] =&amp;gt; [197] =&amp;gt; [198] =&amp;gt; [199] =&amp;gt; [200] =&amp;gt; [201] =&amp;gt; [202] =&amp;gt; [203] =&amp;gt; [204] =&amp;gt; [205] =&amp;gt; FALSE [206] =&amp;gt; ) [approved:Authnet:private] =&amp;gt; [declined:Authnet:private] =&amp;gt; [error:Authnet:private] =&amp;gt; 1 [test:Authnet:private] =&amp;gt; [fields:Authnet:private] =&amp;gt; x_delim_data=TRUE&amp;amp;x_delim_char=%7C&amp;amp;x_relay_response=FALSE&amp;amp;x_url=FALSE&amp;amp;x_version=3.1&amp;amp;x_method=CC&amp;amp;x_type=AUTH_CAPTURE&amp;amp;x_login=REMOVEDt&amp;amp;x_tran_key=REMOVEDX&amp;amp;x_card_num=REMOVED&amp;amp;x_exp_date=07%2F2014&amp;amp;x_amount=0.01&amp;amp;x_po_num=&amp;amp;x_tax=&amp;amp;x_card_code=484&amp;amp;x_invoice_num=&amp;amp;x_description=The+Calorie+Myth+-+Monthly+Membership+-+%240.01+every+Month&amp;amp;x_first_name=Davide&amp;amp;x_last_name=ededd&amp;amp;x_address=teststreet&amp;amp;x_city=New+York&amp;amp;x_zip=10538&amp;amp;x_country=US&amp;amp;x_email=test%40gmail.com&amp;amp;x_cust_id=0&amp;amp;x_customer_ip=37.55.241.139&amp;amp;x_email_customer=FALSE&amp;amp;x_duplicate_window=0&amp;amp; [response:Authnet:private] =&amp;gt; |1|||1|||1|||This transaction has been approved.|||228479|||Z|||5841731972||||||The Calorie Myth - Monthly Membership - $0.01 every Month|||0.01|||CC|||auth_capture|||0|||Davide|||ededd||||||teststreet|||New York||||||10538|||US|||||||||test@gmail.com||||||||||||||||||||||||||||||||||||||||||EA83CEE11EEFD957C634417DE9EEA716|||M||||||||||||||||||||||||||||||||||||XXXX6646|||MasterCard|||||||||||||||||||||||||||||||||||||||||||||||||||FALSE| [url] =&amp;gt; &lt;A target="_blank" href="https://secure.authorize.net/gateway/transact.dll"&gt;https://secure.authorize.net/gateway/transact.dll&lt;/A&gt; ) &amp;lt;/pre&amp;gt;&lt;BR /&gt;Logged at /srv/bindings/1ea944aacfa249279fb86d3581f0d3b7/code/sites/all/modules/ms_core/gateways/ms_authorizenet/ms_authorizenet.module line 2098&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the array from the debug message that I input on line 2098 the problem seems to be inside inside ms_authorizenet_charge() function. After $aim-&amp;gt;proccess.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;pre&amp;gt;|1|||1|||1|||This transaction has been approved.|||00000|||Z|||00000||||||The Calorie Myth - Monthly Membership - $0.01 every Month|||0.01|||CC|||auth_capture|||0|||Davidee|||Dadadaee||||||teststreet|||New York||||||10538|||US|||||||||test@gmail.com||||||||||||||||||||||||||||||||||||||||||Eremoved0E2BA239F|||M||||||||||||||||||||||||||||||||||||XXXX6646|||MasterCard|||||||||||||||||||||||||||||||||||||||||||||||||||FALSE|&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;|1|||1|||1|||This transaction has been approved.|||095650|||Z|||5841959304||||||The Calorie Myth - Monthly Membership - $0.01 every Month|||0.01|||CC|||auth_capture|||0|||Davidee|||Dadadaee||||||teststreet|||New York||||||10538|||US|||||||||test@gmail.com||||||||||||||||||||||||||||||||||||||||||DD3B1A2B05FD7441BC3E972A0DC966ED|||M||||||||||||||||||||||||||||||||||||XXXX6646|||MasterCard|||||||||||||||||||||||||||||||||||||||||||||||||||FALSE|&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;|1|||1|||1|||This transaction has been approved.|||102322|||Z|||removed||||||The Calorie Myth - Monthly Membership - $0.01 every Month|||0.01|||CC|||auth_capture|||0|||Davidee|||Dadadaee||||||teststreet|||New York||||||10538|||US|||||||||test@gmail.com||||||||||||||||||||||||||||||||||||||||||removed|||M||||||||||||||||||||||||||||||||||||XXXX6646|||MasterCard|||||||||||||||||||||||||||||||||||||||||||||||||||FALSE|&amp;lt;/pre&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the response from sandbox when everything works 100%&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Authnet Object&lt;BR /&gt;(&lt;BR /&gt;[login:Authnet:private] =&amp;gt;&lt;BR /&gt;[transkey:Authnet:private] =&amp;gt;&lt;BR /&gt;[params:Authnet:private] =&amp;gt; Array&lt;BR /&gt;(&lt;BR /&gt;[x_delim_data] =&amp;gt; TRUE&lt;BR /&gt;[x_delim_char] =&amp;gt; |&lt;BR /&gt;[x_relay_response] =&amp;gt; FALSE&lt;BR /&gt;[x_url] =&amp;gt; FALSE&lt;BR /&gt;[x_version] =&amp;gt; 3.1&lt;BR /&gt;[x_method] =&amp;gt; CC&lt;BR /&gt;[x_type] =&amp;gt; AUTH_CAPTURE&lt;BR /&gt;[x_login] =&amp;gt; 8xxxxxx8&lt;BR /&gt;[x_tran_key] =&amp;gt; 4xxxxxxx&lt;BR /&gt;[x_card_num] =&amp;gt; 4111111111111111&lt;BR /&gt;[x_exp_date] =&amp;gt; 10/2014&lt;BR /&gt;[x_amount] =&amp;gt; 0.01&lt;BR /&gt;[x_po_num] =&amp;gt;&lt;BR /&gt;[x_tax] =&amp;gt;&lt;BR /&gt;[x_card_code] =&amp;gt; 111&lt;BR /&gt;[x_invoice_num] =&amp;gt;&lt;BR /&gt;[x_description] =&amp;gt; The Calorie Myth - Monthly Membership - $0.01 every Month&lt;BR /&gt;[x_first_name] =&amp;gt; David&lt;BR /&gt;[x_last_name] =&amp;gt; Bacham&lt;BR /&gt;[x_address] =&amp;gt; sadds&lt;BR /&gt;[x_city] =&amp;gt; chicago&lt;BR /&gt;[x_zip] =&amp;gt; 15151&lt;BR /&gt;[x_country] =&amp;gt; US&lt;BR /&gt;[x_email] =&amp;gt; test@gmail.com&lt;BR /&gt;[x_cust_id] =&amp;gt; 0&lt;BR /&gt;[x_customer_ip] =&amp;gt; 37.55.241.139&lt;BR /&gt;[x_email_customer] =&amp;gt; FALSE&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;[results:Authnet:private] =&amp;gt; Array&lt;BR /&gt;(&lt;BR /&gt;[0] =&amp;gt; 1&lt;BR /&gt;[1] =&amp;gt; 1&lt;BR /&gt;[2] =&amp;gt; 1&lt;BR /&gt;[3] =&amp;gt; This transaction has been approved.&lt;BR /&gt;[4] =&amp;gt; SRFO9I&lt;BR /&gt;[5] =&amp;gt; Y&lt;BR /&gt;[6] =&amp;gt; 2204549942&lt;BR /&gt;[7] =&amp;gt;&lt;BR /&gt;[8] =&amp;gt; The Calorie Myth - Monthly Membership - $0.01 every Month&lt;BR /&gt;[9] =&amp;gt; 0.01&lt;BR /&gt;[10] =&amp;gt; CC&lt;BR /&gt;[11] =&amp;gt; auth_capture&lt;BR /&gt;[12] =&amp;gt; 0&lt;BR /&gt;[13] =&amp;gt; David&lt;BR /&gt;[14] =&amp;gt; Bacham&lt;BR /&gt;[15] =&amp;gt;&lt;BR /&gt;[16] =&amp;gt; sadds&lt;BR /&gt;[17] =&amp;gt; chicago&lt;BR /&gt;[18] =&amp;gt;&lt;BR /&gt;[19] =&amp;gt; 15151&lt;BR /&gt;[20] =&amp;gt; US&lt;BR /&gt;[21] =&amp;gt;&lt;BR /&gt;[22] =&amp;gt;&lt;BR /&gt;[23] =&amp;gt; test@gmail.com&lt;BR /&gt;[24] =&amp;gt;&lt;BR /&gt;[25] =&amp;gt;&lt;BR /&gt;[26] =&amp;gt;&lt;BR /&gt;[27] =&amp;gt;&lt;BR /&gt;[28] =&amp;gt;&lt;BR /&gt;[29] =&amp;gt;&lt;BR /&gt;[30] =&amp;gt;&lt;BR /&gt;[31] =&amp;gt;&lt;BR /&gt;[32] =&amp;gt;&lt;BR /&gt;[33] =&amp;gt;&lt;BR /&gt;[34] =&amp;gt;&lt;BR /&gt;[35] =&amp;gt;&lt;BR /&gt;[36] =&amp;gt;&lt;BR /&gt;[37] =&amp;gt; C58xxxxxxxx546B37A&lt;BR /&gt;[38] =&amp;gt; P&lt;BR /&gt;[39] =&amp;gt; 2&lt;BR /&gt;[40] =&amp;gt;&lt;BR /&gt;[41] =&amp;gt;&lt;BR /&gt;[42] =&amp;gt;&lt;BR /&gt;[43] =&amp;gt;&lt;BR /&gt;[44] =&amp;gt;&lt;BR /&gt;[45] =&amp;gt;&lt;BR /&gt;[46] =&amp;gt;&lt;BR /&gt;[47] =&amp;gt;&lt;BR /&gt;[48] =&amp;gt;&lt;BR /&gt;[49] =&amp;gt;&lt;BR /&gt;[50] =&amp;gt; XXXX1111&lt;BR /&gt;[51] =&amp;gt; Visa&lt;BR /&gt;[52] =&amp;gt;&lt;BR /&gt;[53] =&amp;gt;&lt;BR /&gt;[54] =&amp;gt;&lt;BR /&gt;[55] =&amp;gt;&lt;BR /&gt;[56] =&amp;gt;&lt;BR /&gt;[57] =&amp;gt;&lt;BR /&gt;[58] =&amp;gt;&lt;BR /&gt;[59] =&amp;gt;&lt;BR /&gt;[60] =&amp;gt;&lt;BR /&gt;[61] =&amp;gt;&lt;BR /&gt;[62] =&amp;gt;&lt;BR /&gt;[63] =&amp;gt;&lt;BR /&gt;[64] =&amp;gt;&lt;BR /&gt;[65] =&amp;gt;&lt;BR /&gt;[66] =&amp;gt;&lt;BR /&gt;[67] =&amp;gt;&lt;BR /&gt;[68] =&amp;gt; FALSE&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;[approved:Authnet:private] =&amp;gt; 1&lt;BR /&gt;[declined:Authnet:private] =&amp;gt;&lt;BR /&gt;[error:Authnet:private] =&amp;gt;&lt;BR /&gt;[test:Authnet:private] =&amp;gt; 1&lt;BR /&gt;[fields:Authnet:private] =&amp;gt; x_delim_data=TRUE&amp;amp;x_delim_char=%7C&amp;amp;x_relay_response=FALSE&amp;amp;x_url=FALSE&amp;amp;x_version=3.1&amp;amp;x_method=CC&amp;amp;x_type=AUTH_CAPTURE&amp;amp;x_login=8Cxxxx&amp;amp;x_tran_key=xxxxx49vP&amp;amp;x_card_num=4111111111111111&amp;amp;x_exp_date=10%2F2014&amp;amp;x_amount=0.01&amp;amp;x_po_num=&amp;amp;x_tax=&amp;amp;x_card_code=111&amp;amp;x_invoice_num=&amp;amp;x_description=The+Calorie+Myth+-+Monthly+Membership+-+%240.01+every+Month&amp;amp;x_first_name=David&amp;amp;x_last_name=Bacham&amp;amp;x_address=sadds&amp;amp;x_city=chicago&amp;amp;x_zip=15151&amp;amp;x_country=US&amp;amp;x_email=test%40gmail.com&amp;amp;x_cust_id=0&amp;amp;x_customer_ip=37.55.241.139&amp;amp;x_email_customer=FALSE&amp;amp;&lt;BR /&gt;[response:Authnet:private] =&amp;gt; 1|1|1|This transaction has been approved.|SRFO9I|Y|2204549942||The Calorie Myth - Monthly Membership - $0.01 every Month|0.01|CC|auth_capture|0|David|Bacham||sadds|chicago||15151|US|||test@gmail.com||||||||||||||C58104D65E4F190912F1D9CCD546B37A|P|2|||||||||||XXXX1111|Visa|||||||||||||||||FALSE&lt;BR /&gt;[url] =&amp;gt; &lt;A target="_blank" href="https://test.authorize.net/gateway/transact.dll"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here is the code from the module that is throwing the error, I left in the watchdog debug statement so you can see what line 2098 is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if ($response['approved'] == TRUE) {&lt;BR /&gt;// Insert the Payment to the database for the Free Trial&lt;BR /&gt;$payment = ms_core_new_payment($order-&amp;gt;oid, 'ms_authorizenet_cim', 'rec_signup');&lt;BR /&gt;$payment-&amp;gt;transaction = $response['data']['txn_id'];&lt;BR /&gt;$payment-&amp;gt;currency = 'USD';&lt;BR /&gt;$payment-&amp;gt;data = $payment_profile;&lt;BR /&gt;$payment-&amp;gt;recurring_schedule = $order-&amp;gt;recurring_schedule;&lt;/P&gt;&lt;P&gt;// Update the address&lt;BR /&gt;$payment-&amp;gt;billing_address = array(&lt;BR /&gt;'street' =&amp;gt; trim($v['billing_address1']) .'\n'. trim($v['billing_address2']),&lt;BR /&gt;'city' =&amp;gt; trim($v['billing_city']),&lt;BR /&gt;'state' =&amp;gt; trim($v['billing_state']),&lt;BR /&gt;'zip' =&amp;gt; trim($v['billing_zip']),&lt;BR /&gt;'country' =&amp;gt; trim($v['billing_country']),&lt;BR /&gt;'phone' =&amp;gt; trim($v['billing_phone']),&lt;BR /&gt;);&lt;BR /&gt;$payment-&amp;gt;shipping_address = $payment-&amp;gt;billing_address;&lt;/P&gt;&lt;P&gt;// Update the contact details&lt;BR /&gt;$payment-&amp;gt;first_name = trim($v['cc_first_name']);&lt;BR /&gt;$payment-&amp;gt;last_name = trim($v['cc_last_name']);&lt;BR /&gt;$payment-&amp;gt;recurring_id = $order-&amp;gt;oid;&lt;/P&gt;&lt;P&gt;// Add the Payment to the Order&lt;BR /&gt;ms_core_enter_payment($payment, FALSE);&lt;/P&gt;&lt;P&gt;// Save the CIM profiles&lt;BR /&gt;if (variable_get('ms_authorizenet_cim_profile', FALSE)) {&lt;BR /&gt;$order = ms_core_order_load($order-&amp;gt;oid);&lt;BR /&gt;// Create the profile without validating since the AIM is valid&lt;BR /&gt;$cim_result = ms_authorizenet_create_cim_profiles_from_order($order, $v, FALSE);&lt;BR /&gt;if ($cim_result['success']) {&lt;BR /&gt;// Add the payment to the order&lt;BR /&gt;$form_state['values']['ms_oid'] = $order-&amp;gt;oid;&lt;BR /&gt;$form_state['values']['ms_order_charged'] = TRUE;&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;form_set_error('ccnumber', t('Error') . ': ' . $cim_result['error']);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;form_set_error('ccnumber', t('Error: There was a configuration error in the settings.'));&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else { // The Credit Card was not approved, set an error on the form&lt;BR /&gt;form_set_error('ccnumber', t('Error') .': '. $response['message']);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;// Check if there is a trial&lt;BR /&gt;$amount = ($order-&amp;gt;recurring_schedule['trial_length']) ? $order-&amp;gt;recurring_schedule['trial_amount'] : $order-&amp;gt;recurring_schedule['main_amount'];&lt;BR /&gt;&lt;BR /&gt;//my debug message line 2098&lt;BR /&gt;watchdog('ms', '2-V&amp;lt;pre&amp;gt;' . print_r($v , 1) . '&amp;lt;/pre&amp;gt;', array(), WATCHDOG_WARNING);&lt;BR /&gt;$response = ms_authorizenet_charge($order, $amount, $v);&lt;BR /&gt;watchdog('ms', '2-ORDER&amp;lt;pre&amp;gt;' . print_r($response , 1) . '&amp;lt;/pre&amp;gt;', array(), WATCHDOG_WARNING);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;// Use AIM for the first charge&lt;BR /&gt;&lt;BR /&gt;if ($response['approved'] == TRUE) {&lt;BR /&gt;// Insert the Payment to the database for the Free Trial&lt;BR /&gt;$payment = ms_core_new_payment($order-&amp;gt;oid, 'ms_authorizenet_cim', 'rec_signup');&lt;BR /&gt;$payment-&amp;gt;transaction = $response['data']['txn_id'];&lt;BR /&gt;$payment-&amp;gt;currency = 'USD';&lt;BR /&gt;$payment-&amp;gt;data = $payment_profile;&lt;BR /&gt;$payment-&amp;gt;recurring_schedule = $order-&amp;gt;recurring_schedule;&lt;/P&gt;&lt;P&gt;// Update the address&lt;BR /&gt;$payment-&amp;gt;billing_address = array(&lt;BR /&gt;'street' =&amp;gt; trim($v['billing_address1']) .'\n'. trim($v['billing_address2']),&lt;BR /&gt;'city' =&amp;gt; trim($v['billing_city']),&lt;BR /&gt;'state' =&amp;gt; trim($v['billing_state']),&lt;BR /&gt;'zip' =&amp;gt; trim($v['billing_zip']),&lt;BR /&gt;'country' =&amp;gt; trim($v['billing_country']),&lt;BR /&gt;'phone' =&amp;gt; trim($v['billing_phone']),&lt;BR /&gt;);&lt;BR /&gt;$payment-&amp;gt;shipping_address = $payment-&amp;gt;billing_address;&lt;BR /&gt;$payment-&amp;gt;recurring_id = $order-&amp;gt;oid;&lt;/P&gt;&lt;P&gt;// Update the contact details&lt;BR /&gt;$payment-&amp;gt;first_name = trim($v['cc_first_name']);&lt;BR /&gt;$payment-&amp;gt;last_name = trim($v['cc_last_name']);&lt;/P&gt;&lt;P&gt;// Add the Payment to the Order&lt;BR /&gt;ms_core_enter_payment($payment, FALSE);&lt;/P&gt;&lt;P&gt;// Save the CIM profiles&lt;BR /&gt;if (variable_get('ms_authorizenet_cim_profile', FALSE)) {&lt;BR /&gt;$order = ms_core_order_load($order-&amp;gt;oid);&lt;BR /&gt;// Create the profile without validating since the AIM is valid&lt;BR /&gt;$cim_result = ms_authorizenet_create_cim_profiles_from_order($order, $v, FALSE);&lt;BR /&gt;if ($cim_result['success']) {&lt;BR /&gt;// Add the rec_payment payment to the order&lt;BR /&gt;$payment-&amp;gt;type = 'rec_payment';&lt;BR /&gt;$payment-&amp;gt;amount = $amount;&lt;BR /&gt;ms_core_enter_payment($payment, FALSE);&lt;/P&gt;&lt;P&gt;// Add the payment to the order&lt;BR /&gt;$form_state['values']['ms_oid'] = $order-&amp;gt;oid;&lt;BR /&gt;$form_state['values']['ms_order_charged'] = TRUE;&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;form_set_error('ccnumber', t('Error') . ': ' . $cim_result['error']);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;form_set_error('ccnumber', t('Error: There was a configuration error in the settings.'));&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else { // The Credit Card was not approved, set an error on the form&lt;/P&gt;&lt;P&gt;form_set_error('ccnumber', t('Error') .': '. $response['message']);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2014 17:10:06 GMT</pubDate>
    <dc:creator>kreid86</dc:creator>
    <dc:date>2014-01-10T17:10:06Z</dc:date>
    <item>
      <title>Drupal recurring payment works only with sandbox not live</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Drupal-recurring-payment-works-only-with-sandbox-not-live/m-p/38323#M20974</link>
      <description>&lt;P&gt;I am using the Drupal moneyscripts module for recurring payments, everything works as it should, when I am using my Authorize.net sandbox account, but when I enter my live API key login&lt;BR /&gt;the module fails. meaning the user is not created in Drupal and the role is not assigned. but the catch is that the transaction does go through to authorize.net and gets approved there.&lt;BR /&gt;Only the Drupal side fails (a user is supposed to be created and role assigned) this works 100% using the authorize.net sandbox account, and the only thing I change is switching from sandbox to live.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have included response messages from authorize from both and the line of error in the module. First is the response I get from the live account when Drupal fails second is the response from the sandbox when everything works 100%.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Authorize.Net AIM: Payment for Order 66 failed.&lt;BR /&gt;&amp;lt;pre&amp;gt;Authnet Object ( [login:Authnet:private] =&amp;gt; [transkey:Authnet:private] =&amp;gt; [params:Authnet:private] =&amp;gt; Array ( [x_delim_data] =&amp;gt; TRUE [x_delim_char] =&amp;gt; | [x_relay_response] =&amp;gt; FALSE [x_url] =&amp;gt; FALSE [x_version] =&amp;gt; 3.1 [x_method] =&amp;gt; CC [x_type] =&amp;gt; AUTH_CAPTURE [x_login] =&amp;gt; 724Vs5JQht [x_tran_key] =&amp;gt; xxxxxxvg5dX [x_card_num] =&amp;gt; xxxxxx46 [x_exp_date] =&amp;gt; 07/2014 [x_amount] =&amp;gt; 0.01 [x_po_num] =&amp;gt; [x_tax] =&amp;gt; [x_card_code] =&amp;gt; 484 [x_invoice_num] =&amp;gt; [x_description] =&amp;gt; The Calorie Myth - Monthly Membership - $0.01 every Month [x_first_name] =&amp;gt; Davide [x_last_name] =&amp;gt; ededd [x_address] =&amp;gt; teststreet [x_city] =&amp;gt; New York [x_zip] =&amp;gt; 10538 [x_country] =&amp;gt; US [x_email] =&amp;gt; test@gmail.com [x_cust_id] =&amp;gt; 0 [x_customer_ip] =&amp;gt; 37.55.241.139 [x_email_customer] =&amp;gt; FALSE [x_duplicate_window] =&amp;gt; 0 ) [results:Authnet:private] =&amp;gt; Array ( [0] =&amp;gt; [1] =&amp;gt; 1 [2] =&amp;gt; [3] =&amp;gt; [4] =&amp;gt; 1 [5] =&amp;gt; [6] =&amp;gt; [7] =&amp;gt; 1 [8] =&amp;gt; [9] =&amp;gt; [10] =&amp;gt; This transaction has been approved. [11] =&amp;gt; [12] =&amp;gt; [13] =&amp;gt; 228479 [14] =&amp;gt; [15] =&amp;gt; [16] =&amp;gt; Z [17] =&amp;gt; [18] =&amp;gt; [19] =&amp;gt; 5841731972 [20] =&amp;gt; [21] =&amp;gt; [22] =&amp;gt; [23] =&amp;gt; [24] =&amp;gt; [25] =&amp;gt; The Calorie Myth - Monthly Membership - $0.01 every Month [26] =&amp;gt; [27] =&amp;gt; [28] =&amp;gt; 0.01 [29] =&amp;gt; [30] =&amp;gt; [31] =&amp;gt; CC [32] =&amp;gt; [33] =&amp;gt; [34] =&amp;gt; auth_capture [35] =&amp;gt; [36] =&amp;gt; [37] =&amp;gt; 0 [38] =&amp;gt; [39] =&amp;gt; [40] =&amp;gt; Davide [41] =&amp;gt; [42] =&amp;gt; [43] =&amp;gt; ededd [44] =&amp;gt; [45] =&amp;gt; [46] =&amp;gt; [47] =&amp;gt; [48] =&amp;gt; [49] =&amp;gt; teststreet [50] =&amp;gt; [51] =&amp;gt; [52] =&amp;gt; New York [53] =&amp;gt; [54] =&amp;gt; [55] =&amp;gt; [56] =&amp;gt; [57] =&amp;gt; [58] =&amp;gt; 10538 [59] =&amp;gt; [60] =&amp;gt; [61] =&amp;gt; US [62] =&amp;gt; [63] =&amp;gt; [64] =&amp;gt; [65] =&amp;gt; [66] =&amp;gt; [67] =&amp;gt; [68] =&amp;gt; [69] =&amp;gt; [70] =&amp;gt; test@gmail.com [71] =&amp;gt; [72] =&amp;gt; [73] =&amp;gt; [74] =&amp;gt; [75] =&amp;gt; [76] =&amp;gt; [77] =&amp;gt; [78] =&amp;gt; [79] =&amp;gt; [80] =&amp;gt; [81] =&amp;gt; [82] =&amp;gt; [83] =&amp;gt; [84] =&amp;gt; [85] =&amp;gt; [86] =&amp;gt; [87] =&amp;gt; [88] =&amp;gt; [89] =&amp;gt; [90] =&amp;gt; [91] =&amp;gt; [92] =&amp;gt; [93] =&amp;gt; [94] =&amp;gt; [95] =&amp;gt; [96] =&amp;gt; [97] =&amp;gt; [98] =&amp;gt; [99] =&amp;gt; [100] =&amp;gt; [101] =&amp;gt; [102] =&amp;gt; [103] =&amp;gt; [104] =&amp;gt; [105] =&amp;gt; [106] =&amp;gt; [107] =&amp;gt; [108] =&amp;gt; [109] =&amp;gt; [110] =&amp;gt; [111] =&amp;gt; [112] =&amp;gt; EA83CEE11EEFD957C634417DE9EEA716 [113] =&amp;gt; [114] =&amp;gt; [115] =&amp;gt; M [116] =&amp;gt; [117] =&amp;gt; [118] =&amp;gt; [119] =&amp;gt; [120] =&amp;gt; [121] =&amp;gt; [122] =&amp;gt; [123] =&amp;gt; [124] =&amp;gt; [125] =&amp;gt; [126] =&amp;gt; [127] =&amp;gt; [128] =&amp;gt; [129] =&amp;gt; [130] =&amp;gt; [131] =&amp;gt; [132] =&amp;gt; [133] =&amp;gt; [134] =&amp;gt; [135] =&amp;gt; [136] =&amp;gt; [137] =&amp;gt; [138] =&amp;gt; [139] =&amp;gt; [140] =&amp;gt; [141] =&amp;gt; [142] =&amp;gt; [143] =&amp;gt; [144] =&amp;gt; [145] =&amp;gt; [146] =&amp;gt; [147] =&amp;gt; [148] =&amp;gt; [149] =&amp;gt; [150] =&amp;gt; [151] =&amp;gt; XXXX6646 [152] =&amp;gt; [153] =&amp;gt; [154] =&amp;gt; MasterCard [155] =&amp;gt; [156] =&amp;gt; [157] =&amp;gt; [158] =&amp;gt; [159] =&amp;gt; [160] =&amp;gt; [161] =&amp;gt; [162] =&amp;gt; [163] =&amp;gt; [164] =&amp;gt; [165] =&amp;gt; [166] =&amp;gt; [167] =&amp;gt; [168] =&amp;gt; [169] =&amp;gt; [170] =&amp;gt; [171] =&amp;gt; [172] =&amp;gt; [173] =&amp;gt; [174] =&amp;gt; [175] =&amp;gt; [176] =&amp;gt; [177] =&amp;gt; [178] =&amp;gt; [179] =&amp;gt; [180] =&amp;gt; [181] =&amp;gt; [182] =&amp;gt; [183] =&amp;gt; [184] =&amp;gt; [185] =&amp;gt; [186] =&amp;gt; [187] =&amp;gt; [188] =&amp;gt; [189] =&amp;gt; [190] =&amp;gt; [191] =&amp;gt; [192] =&amp;gt; [193] =&amp;gt; [194] =&amp;gt; [195] =&amp;gt; [196] =&amp;gt; [197] =&amp;gt; [198] =&amp;gt; [199] =&amp;gt; [200] =&amp;gt; [201] =&amp;gt; [202] =&amp;gt; [203] =&amp;gt; [204] =&amp;gt; [205] =&amp;gt; FALSE [206] =&amp;gt; ) [approved:Authnet:private] =&amp;gt; [declined:Authnet:private] =&amp;gt; [error:Authnet:private] =&amp;gt; 1 [test:Authnet:private] =&amp;gt; [fields:Authnet:private] =&amp;gt; x_delim_data=TRUE&amp;amp;x_delim_char=%7C&amp;amp;x_relay_response=FALSE&amp;amp;x_url=FALSE&amp;amp;x_version=3.1&amp;amp;x_method=CC&amp;amp;x_type=AUTH_CAPTURE&amp;amp;x_login=REMOVEDt&amp;amp;x_tran_key=REMOVEDX&amp;amp;x_card_num=REMOVED&amp;amp;x_exp_date=07%2F2014&amp;amp;x_amount=0.01&amp;amp;x_po_num=&amp;amp;x_tax=&amp;amp;x_card_code=484&amp;amp;x_invoice_num=&amp;amp;x_description=The+Calorie+Myth+-+Monthly+Membership+-+%240.01+every+Month&amp;amp;x_first_name=Davide&amp;amp;x_last_name=ededd&amp;amp;x_address=teststreet&amp;amp;x_city=New+York&amp;amp;x_zip=10538&amp;amp;x_country=US&amp;amp;x_email=test%40gmail.com&amp;amp;x_cust_id=0&amp;amp;x_customer_ip=37.55.241.139&amp;amp;x_email_customer=FALSE&amp;amp;x_duplicate_window=0&amp;amp; [response:Authnet:private] =&amp;gt; |1|||1|||1|||This transaction has been approved.|||228479|||Z|||5841731972||||||The Calorie Myth - Monthly Membership - $0.01 every Month|||0.01|||CC|||auth_capture|||0|||Davide|||ededd||||||teststreet|||New York||||||10538|||US|||||||||test@gmail.com||||||||||||||||||||||||||||||||||||||||||EA83CEE11EEFD957C634417DE9EEA716|||M||||||||||||||||||||||||||||||||||||XXXX6646|||MasterCard|||||||||||||||||||||||||||||||||||||||||||||||||||FALSE| [url] =&amp;gt; &lt;A target="_blank" href="https://secure.authorize.net/gateway/transact.dll"&gt;https://secure.authorize.net/gateway/transact.dll&lt;/A&gt; ) &amp;lt;/pre&amp;gt;&lt;BR /&gt;Logged at /srv/bindings/1ea944aacfa249279fb86d3581f0d3b7/code/sites/all/modules/ms_core/gateways/ms_authorizenet/ms_authorizenet.module line 2098&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the array from the debug message that I input on line 2098 the problem seems to be inside inside ms_authorizenet_charge() function. After $aim-&amp;gt;proccess.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;pre&amp;gt;|1|||1|||1|||This transaction has been approved.|||00000|||Z|||00000||||||The Calorie Myth - Monthly Membership - $0.01 every Month|||0.01|||CC|||auth_capture|||0|||Davidee|||Dadadaee||||||teststreet|||New York||||||10538|||US|||||||||test@gmail.com||||||||||||||||||||||||||||||||||||||||||Eremoved0E2BA239F|||M||||||||||||||||||||||||||||||||||||XXXX6646|||MasterCard|||||||||||||||||||||||||||||||||||||||||||||||||||FALSE|&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;|1|||1|||1|||This transaction has been approved.|||095650|||Z|||5841959304||||||The Calorie Myth - Monthly Membership - $0.01 every Month|||0.01|||CC|||auth_capture|||0|||Davidee|||Dadadaee||||||teststreet|||New York||||||10538|||US|||||||||test@gmail.com||||||||||||||||||||||||||||||||||||||||||DD3B1A2B05FD7441BC3E972A0DC966ED|||M||||||||||||||||||||||||||||||||||||XXXX6646|||MasterCard|||||||||||||||||||||||||||||||||||||||||||||||||||FALSE|&amp;lt;/pre&amp;gt;&amp;lt;pre&amp;gt;|1|||1|||1|||This transaction has been approved.|||102322|||Z|||removed||||||The Calorie Myth - Monthly Membership - $0.01 every Month|||0.01|||CC|||auth_capture|||0|||Davidee|||Dadadaee||||||teststreet|||New York||||||10538|||US|||||||||test@gmail.com||||||||||||||||||||||||||||||||||||||||||removed|||M||||||||||||||||||||||||||||||||||||XXXX6646|||MasterCard|||||||||||||||||||||||||||||||||||||||||||||||||||FALSE|&amp;lt;/pre&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the response from sandbox when everything works 100%&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Authnet Object&lt;BR /&gt;(&lt;BR /&gt;[login:Authnet:private] =&amp;gt;&lt;BR /&gt;[transkey:Authnet:private] =&amp;gt;&lt;BR /&gt;[params:Authnet:private] =&amp;gt; Array&lt;BR /&gt;(&lt;BR /&gt;[x_delim_data] =&amp;gt; TRUE&lt;BR /&gt;[x_delim_char] =&amp;gt; |&lt;BR /&gt;[x_relay_response] =&amp;gt; FALSE&lt;BR /&gt;[x_url] =&amp;gt; FALSE&lt;BR /&gt;[x_version] =&amp;gt; 3.1&lt;BR /&gt;[x_method] =&amp;gt; CC&lt;BR /&gt;[x_type] =&amp;gt; AUTH_CAPTURE&lt;BR /&gt;[x_login] =&amp;gt; 8xxxxxx8&lt;BR /&gt;[x_tran_key] =&amp;gt; 4xxxxxxx&lt;BR /&gt;[x_card_num] =&amp;gt; 4111111111111111&lt;BR /&gt;[x_exp_date] =&amp;gt; 10/2014&lt;BR /&gt;[x_amount] =&amp;gt; 0.01&lt;BR /&gt;[x_po_num] =&amp;gt;&lt;BR /&gt;[x_tax] =&amp;gt;&lt;BR /&gt;[x_card_code] =&amp;gt; 111&lt;BR /&gt;[x_invoice_num] =&amp;gt;&lt;BR /&gt;[x_description] =&amp;gt; The Calorie Myth - Monthly Membership - $0.01 every Month&lt;BR /&gt;[x_first_name] =&amp;gt; David&lt;BR /&gt;[x_last_name] =&amp;gt; Bacham&lt;BR /&gt;[x_address] =&amp;gt; sadds&lt;BR /&gt;[x_city] =&amp;gt; chicago&lt;BR /&gt;[x_zip] =&amp;gt; 15151&lt;BR /&gt;[x_country] =&amp;gt; US&lt;BR /&gt;[x_email] =&amp;gt; test@gmail.com&lt;BR /&gt;[x_cust_id] =&amp;gt; 0&lt;BR /&gt;[x_customer_ip] =&amp;gt; 37.55.241.139&lt;BR /&gt;[x_email_customer] =&amp;gt; FALSE&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;[results:Authnet:private] =&amp;gt; Array&lt;BR /&gt;(&lt;BR /&gt;[0] =&amp;gt; 1&lt;BR /&gt;[1] =&amp;gt; 1&lt;BR /&gt;[2] =&amp;gt; 1&lt;BR /&gt;[3] =&amp;gt; This transaction has been approved.&lt;BR /&gt;[4] =&amp;gt; SRFO9I&lt;BR /&gt;[5] =&amp;gt; Y&lt;BR /&gt;[6] =&amp;gt; 2204549942&lt;BR /&gt;[7] =&amp;gt;&lt;BR /&gt;[8] =&amp;gt; The Calorie Myth - Monthly Membership - $0.01 every Month&lt;BR /&gt;[9] =&amp;gt; 0.01&lt;BR /&gt;[10] =&amp;gt; CC&lt;BR /&gt;[11] =&amp;gt; auth_capture&lt;BR /&gt;[12] =&amp;gt; 0&lt;BR /&gt;[13] =&amp;gt; David&lt;BR /&gt;[14] =&amp;gt; Bacham&lt;BR /&gt;[15] =&amp;gt;&lt;BR /&gt;[16] =&amp;gt; sadds&lt;BR /&gt;[17] =&amp;gt; chicago&lt;BR /&gt;[18] =&amp;gt;&lt;BR /&gt;[19] =&amp;gt; 15151&lt;BR /&gt;[20] =&amp;gt; US&lt;BR /&gt;[21] =&amp;gt;&lt;BR /&gt;[22] =&amp;gt;&lt;BR /&gt;[23] =&amp;gt; test@gmail.com&lt;BR /&gt;[24] =&amp;gt;&lt;BR /&gt;[25] =&amp;gt;&lt;BR /&gt;[26] =&amp;gt;&lt;BR /&gt;[27] =&amp;gt;&lt;BR /&gt;[28] =&amp;gt;&lt;BR /&gt;[29] =&amp;gt;&lt;BR /&gt;[30] =&amp;gt;&lt;BR /&gt;[31] =&amp;gt;&lt;BR /&gt;[32] =&amp;gt;&lt;BR /&gt;[33] =&amp;gt;&lt;BR /&gt;[34] =&amp;gt;&lt;BR /&gt;[35] =&amp;gt;&lt;BR /&gt;[36] =&amp;gt;&lt;BR /&gt;[37] =&amp;gt; C58xxxxxxxx546B37A&lt;BR /&gt;[38] =&amp;gt; P&lt;BR /&gt;[39] =&amp;gt; 2&lt;BR /&gt;[40] =&amp;gt;&lt;BR /&gt;[41] =&amp;gt;&lt;BR /&gt;[42] =&amp;gt;&lt;BR /&gt;[43] =&amp;gt;&lt;BR /&gt;[44] =&amp;gt;&lt;BR /&gt;[45] =&amp;gt;&lt;BR /&gt;[46] =&amp;gt;&lt;BR /&gt;[47] =&amp;gt;&lt;BR /&gt;[48] =&amp;gt;&lt;BR /&gt;[49] =&amp;gt;&lt;BR /&gt;[50] =&amp;gt; XXXX1111&lt;BR /&gt;[51] =&amp;gt; Visa&lt;BR /&gt;[52] =&amp;gt;&lt;BR /&gt;[53] =&amp;gt;&lt;BR /&gt;[54] =&amp;gt;&lt;BR /&gt;[55] =&amp;gt;&lt;BR /&gt;[56] =&amp;gt;&lt;BR /&gt;[57] =&amp;gt;&lt;BR /&gt;[58] =&amp;gt;&lt;BR /&gt;[59] =&amp;gt;&lt;BR /&gt;[60] =&amp;gt;&lt;BR /&gt;[61] =&amp;gt;&lt;BR /&gt;[62] =&amp;gt;&lt;BR /&gt;[63] =&amp;gt;&lt;BR /&gt;[64] =&amp;gt;&lt;BR /&gt;[65] =&amp;gt;&lt;BR /&gt;[66] =&amp;gt;&lt;BR /&gt;[67] =&amp;gt;&lt;BR /&gt;[68] =&amp;gt; FALSE&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;[approved:Authnet:private] =&amp;gt; 1&lt;BR /&gt;[declined:Authnet:private] =&amp;gt;&lt;BR /&gt;[error:Authnet:private] =&amp;gt;&lt;BR /&gt;[test:Authnet:private] =&amp;gt; 1&lt;BR /&gt;[fields:Authnet:private] =&amp;gt; x_delim_data=TRUE&amp;amp;x_delim_char=%7C&amp;amp;x_relay_response=FALSE&amp;amp;x_url=FALSE&amp;amp;x_version=3.1&amp;amp;x_method=CC&amp;amp;x_type=AUTH_CAPTURE&amp;amp;x_login=8Cxxxx&amp;amp;x_tran_key=xxxxx49vP&amp;amp;x_card_num=4111111111111111&amp;amp;x_exp_date=10%2F2014&amp;amp;x_amount=0.01&amp;amp;x_po_num=&amp;amp;x_tax=&amp;amp;x_card_code=111&amp;amp;x_invoice_num=&amp;amp;x_description=The+Calorie+Myth+-+Monthly+Membership+-+%240.01+every+Month&amp;amp;x_first_name=David&amp;amp;x_last_name=Bacham&amp;amp;x_address=sadds&amp;amp;x_city=chicago&amp;amp;x_zip=15151&amp;amp;x_country=US&amp;amp;x_email=test%40gmail.com&amp;amp;x_cust_id=0&amp;amp;x_customer_ip=37.55.241.139&amp;amp;x_email_customer=FALSE&amp;amp;&lt;BR /&gt;[response:Authnet:private] =&amp;gt; 1|1|1|This transaction has been approved.|SRFO9I|Y|2204549942||The Calorie Myth - Monthly Membership - $0.01 every Month|0.01|CC|auth_capture|0|David|Bacham||sadds|chicago||15151|US|||test@gmail.com||||||||||||||C58104D65E4F190912F1D9CCD546B37A|P|2|||||||||||XXXX1111|Visa|||||||||||||||||FALSE&lt;BR /&gt;[url] =&amp;gt; &lt;A target="_blank" href="https://test.authorize.net/gateway/transact.dll"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here is the code from the module that is throwing the error, I left in the watchdog debug statement so you can see what line 2098 is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if ($response['approved'] == TRUE) {&lt;BR /&gt;// Insert the Payment to the database for the Free Trial&lt;BR /&gt;$payment = ms_core_new_payment($order-&amp;gt;oid, 'ms_authorizenet_cim', 'rec_signup');&lt;BR /&gt;$payment-&amp;gt;transaction = $response['data']['txn_id'];&lt;BR /&gt;$payment-&amp;gt;currency = 'USD';&lt;BR /&gt;$payment-&amp;gt;data = $payment_profile;&lt;BR /&gt;$payment-&amp;gt;recurring_schedule = $order-&amp;gt;recurring_schedule;&lt;/P&gt;&lt;P&gt;// Update the address&lt;BR /&gt;$payment-&amp;gt;billing_address = array(&lt;BR /&gt;'street' =&amp;gt; trim($v['billing_address1']) .'\n'. trim($v['billing_address2']),&lt;BR /&gt;'city' =&amp;gt; trim($v['billing_city']),&lt;BR /&gt;'state' =&amp;gt; trim($v['billing_state']),&lt;BR /&gt;'zip' =&amp;gt; trim($v['billing_zip']),&lt;BR /&gt;'country' =&amp;gt; trim($v['billing_country']),&lt;BR /&gt;'phone' =&amp;gt; trim($v['billing_phone']),&lt;BR /&gt;);&lt;BR /&gt;$payment-&amp;gt;shipping_address = $payment-&amp;gt;billing_address;&lt;/P&gt;&lt;P&gt;// Update the contact details&lt;BR /&gt;$payment-&amp;gt;first_name = trim($v['cc_first_name']);&lt;BR /&gt;$payment-&amp;gt;last_name = trim($v['cc_last_name']);&lt;BR /&gt;$payment-&amp;gt;recurring_id = $order-&amp;gt;oid;&lt;/P&gt;&lt;P&gt;// Add the Payment to the Order&lt;BR /&gt;ms_core_enter_payment($payment, FALSE);&lt;/P&gt;&lt;P&gt;// Save the CIM profiles&lt;BR /&gt;if (variable_get('ms_authorizenet_cim_profile', FALSE)) {&lt;BR /&gt;$order = ms_core_order_load($order-&amp;gt;oid);&lt;BR /&gt;// Create the profile without validating since the AIM is valid&lt;BR /&gt;$cim_result = ms_authorizenet_create_cim_profiles_from_order($order, $v, FALSE);&lt;BR /&gt;if ($cim_result['success']) {&lt;BR /&gt;// Add the payment to the order&lt;BR /&gt;$form_state['values']['ms_oid'] = $order-&amp;gt;oid;&lt;BR /&gt;$form_state['values']['ms_order_charged'] = TRUE;&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;form_set_error('ccnumber', t('Error') . ': ' . $cim_result['error']);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;form_set_error('ccnumber', t('Error: There was a configuration error in the settings.'));&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else { // The Credit Card was not approved, set an error on the form&lt;BR /&gt;form_set_error('ccnumber', t('Error') .': '. $response['message']);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;// Check if there is a trial&lt;BR /&gt;$amount = ($order-&amp;gt;recurring_schedule['trial_length']) ? $order-&amp;gt;recurring_schedule['trial_amount'] : $order-&amp;gt;recurring_schedule['main_amount'];&lt;BR /&gt;&lt;BR /&gt;//my debug message line 2098&lt;BR /&gt;watchdog('ms', '2-V&amp;lt;pre&amp;gt;' . print_r($v , 1) . '&amp;lt;/pre&amp;gt;', array(), WATCHDOG_WARNING);&lt;BR /&gt;$response = ms_authorizenet_charge($order, $amount, $v);&lt;BR /&gt;watchdog('ms', '2-ORDER&amp;lt;pre&amp;gt;' . print_r($response , 1) . '&amp;lt;/pre&amp;gt;', array(), WATCHDOG_WARNING);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;// Use AIM for the first charge&lt;BR /&gt;&lt;BR /&gt;if ($response['approved'] == TRUE) {&lt;BR /&gt;// Insert the Payment to the database for the Free Trial&lt;BR /&gt;$payment = ms_core_new_payment($order-&amp;gt;oid, 'ms_authorizenet_cim', 'rec_signup');&lt;BR /&gt;$payment-&amp;gt;transaction = $response['data']['txn_id'];&lt;BR /&gt;$payment-&amp;gt;currency = 'USD';&lt;BR /&gt;$payment-&amp;gt;data = $payment_profile;&lt;BR /&gt;$payment-&amp;gt;recurring_schedule = $order-&amp;gt;recurring_schedule;&lt;/P&gt;&lt;P&gt;// Update the address&lt;BR /&gt;$payment-&amp;gt;billing_address = array(&lt;BR /&gt;'street' =&amp;gt; trim($v['billing_address1']) .'\n'. trim($v['billing_address2']),&lt;BR /&gt;'city' =&amp;gt; trim($v['billing_city']),&lt;BR /&gt;'state' =&amp;gt; trim($v['billing_state']),&lt;BR /&gt;'zip' =&amp;gt; trim($v['billing_zip']),&lt;BR /&gt;'country' =&amp;gt; trim($v['billing_country']),&lt;BR /&gt;'phone' =&amp;gt; trim($v['billing_phone']),&lt;BR /&gt;);&lt;BR /&gt;$payment-&amp;gt;shipping_address = $payment-&amp;gt;billing_address;&lt;BR /&gt;$payment-&amp;gt;recurring_id = $order-&amp;gt;oid;&lt;/P&gt;&lt;P&gt;// Update the contact details&lt;BR /&gt;$payment-&amp;gt;first_name = trim($v['cc_first_name']);&lt;BR /&gt;$payment-&amp;gt;last_name = trim($v['cc_last_name']);&lt;/P&gt;&lt;P&gt;// Add the Payment to the Order&lt;BR /&gt;ms_core_enter_payment($payment, FALSE);&lt;/P&gt;&lt;P&gt;// Save the CIM profiles&lt;BR /&gt;if (variable_get('ms_authorizenet_cim_profile', FALSE)) {&lt;BR /&gt;$order = ms_core_order_load($order-&amp;gt;oid);&lt;BR /&gt;// Create the profile without validating since the AIM is valid&lt;BR /&gt;$cim_result = ms_authorizenet_create_cim_profiles_from_order($order, $v, FALSE);&lt;BR /&gt;if ($cim_result['success']) {&lt;BR /&gt;// Add the rec_payment payment to the order&lt;BR /&gt;$payment-&amp;gt;type = 'rec_payment';&lt;BR /&gt;$payment-&amp;gt;amount = $amount;&lt;BR /&gt;ms_core_enter_payment($payment, FALSE);&lt;/P&gt;&lt;P&gt;// Add the payment to the order&lt;BR /&gt;$form_state['values']['ms_oid'] = $order-&amp;gt;oid;&lt;BR /&gt;$form_state['values']['ms_order_charged'] = TRUE;&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;form_set_error('ccnumber', t('Error') . ': ' . $cim_result['error']);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;form_set_error('ccnumber', t('Error: There was a configuration error in the settings.'));&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else { // The Credit Card was not approved, set an error on the form&lt;/P&gt;&lt;P&gt;form_set_error('ccnumber', t('Error') .': '. $response['message']);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2014 17:10:06 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Drupal-recurring-payment-works-only-with-sandbox-not-live/m-p/38323#M20974</guid>
      <dc:creator>kreid86</dc:creator>
      <dc:date>2014-01-10T17:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Drupal recurring payment works only with sandbox not live</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Drupal-recurring-payment-works-only-with-sandbox-not-live/m-p/38327#M20976</link>
      <description>&lt;P&gt;1|1|1|This transaction has been approved.|SRFO9I|Y|2204549942||The Calorie Myth - Monthly Membership - $0.01 every Month|0.01|CC|auth_capture|0|David|Bacham||sadds|chicago||15151|US|||test@gmail.com||||||||||||||C58104D65E4F190912F1D9CCD546B37A|P|2|||||||||||XXXX1111|Visa|||||||||||||||||FALSE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;|1|||1|||1|||This transaction has been approved.|||228479|||Z|||5841731972||||||The Calorie Myth - Monthly Membership - $0.01 every Month|||0.01|||CC|||auth_capture|||0|||Davide|||ed&lt;/P&gt;&lt;P&gt;edd||||||teststreet|||New York||||||10538|||US|||||||||test@gmail.com||||||||||||||||||||||||||||||||||||||||||EA83CEE11EEFD957C634417DE9EEA716|||M||||||||||||||||||||||||||||||||||||XXXX6646|||MasterCard|||||||||||||||||||||||||||||||||||||||||||||||||||FALSE|&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look to me you have the &lt;SPAN style="color: #000000; font-size: 8.0pt; font-style: normal; font-variant: normal; font-weight: normal; text-transform: none; vertical-align: baseline;"&gt;x_encap_char&lt;/SPAN&gt; set on the production settings as "|"&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2014 17:41:14 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Drupal-recurring-payment-works-only-with-sandbox-not-live/m-p/38327#M20976</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-01-10T17:41:14Z</dc:date>
    </item>
  </channel>
</rss>

