<style>@font-face{font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}</style><font face="Calibri"><p dir="ltr">The answer seems to be in the error message. Your credentials for 'firstdataglobal' gateway are incorrect or missing.</p>
<p dir="ltr">Unauthorized Request. Bad or missing credentials.</p>
<br><br>On August 23, 2018, at 4:05 PM, WinPR Internet <agswinpr@gmail.com> wrote:<br><br><br></font><div dir="ltr">Now I'm having:<div><br></div><div><div>System error</div><div><br></div><div>error: <span style="white-space:pre">       </span>401 Unauthorized at /usr/share/perl5/Business/OnlinePayment/<a href="http://FirstDataGlobalGateway.pm">FirstDataGlobalGateway.pm</a> line 209.</div><div>context: <span style="white-space:pre"> </span></div><div>... <span style="white-space:pre">  </span></div><div>162: <span style="white-space:pre"> </span>local @CARP_NOT = $cgc ? $cgc->() : caller();</div><div>163: <span style="white-space:pre"> </span>shortmess_heavy(@_);</div><div>164: <span style="white-space:pre">     </span>}</div><div>165: <span style="white-space:pre">        </span></div><div>166: <span style="white-space:pre"> </span>sub croak { die shortmess @_ }</div><div>167: <span style="white-space:pre">   </span>sub confess { die longmess @_ }</div><div>168: <span style="white-space:pre">  </span>sub carp { warn shortmess @_ }</div><div>169: <span style="white-space:pre">   </span>sub cluck { warn longmess @_ }</div><div>170: <span style="white-space:pre">   </span></div><div>... <span style="white-space:pre">  </span></div><div>code stack: <span style="white-space:pre">  </span>/usr/share/perl/5.20/<a href="http://Carp.pm:166">Carp.pm:166</a></div><div>/usr/share/perl5/SOAP/<a href="http://Lite.pm:3613">Lite.pm:3613</a></div><div>/usr/share/perl5/SOAP/<a href="http://Lite.pm:3801">Lite.pm:3801</a></div><div>/usr/share/perl5/Business/OnlinePayment/<a href="http://FirstDataGlobalGateway.pm:209">FirstDataGlobalGateway.pm:209</a></div><div>/usr/share/perl5/Business/<a href="http://OnlinePayment.pm:116">OnlinePayment.pm:116</a></div><div>/usr/share/perl5/Business/<a href="http://OnlinePayment.pm:116">OnlinePayment.pm:116</a></div><div>/usr/share/perl5/Business/<a href="http://OnlinePayment.pm:116">OnlinePayment.pm:116</a></div><div>/usr/share/perl5/FS/cust_main/Billing_<a href="http://Realtime.pm:741">Realtime.pm:741</a></div><div>/var/www/html/freeside/misc/process/payment.cgi:253</div><div>/var/www/html/freeside/autohandler:1</div><div>raw error</div><div><br></div><div><br></div><div>401 Unauthorized at /usr/share/perl5/Business/OnlinePayment/<a href="http://FirstDataGlobalGateway.pm">FirstDataGlobalGateway.pm</a> line 209.</div><div><br></div><div><br></div><div>Trace begun at /usr/share/perl5/HTML/Mason/<a href="http://Exceptions.pm">Exceptions.pm</a> line 129</div><div>HTML::Mason::Exceptions::rethrow_exception('401 Unauthorized at /usr/share/perl5/Business/OnlinePayment/<a href="http://FirstDataGlobalGateway.pm">FirstDataGlobalGateway.pm</a> line 209.^J') called at /usr/share/perl/5.20/<a href="http://Carp.pm">Carp.pm</a> line 166</div><div>Carp::croak('401 Unauthorized') called at /usr/share/perl5/SOAP/<a href="http://Lite.pm">Lite.pm</a> line 3613</div><div>SOAP::Lite::__ANON__('Service=HASH(0x5640692176c0)', '^Jsyntax error at line 1, column 0, byte 0 at /usr/lib/x86_64-linux-gnu/perl5/5.20/XML/<a href="http://Parser.pm">Parser.pm</a> line 187.^J^JStack:^J  [/usr/share/perl/5.20/<a href="http://Carp.pm:166">Carp.pm:166</a>]^J  [/usr/lib/x86_64-linux-gnu/perl5/5.20/XML/Parser/<a href="http://Expat.pm:479">Expat.pm:479</a>]^J  [/usr/lib/x86_64-linux-gnu/perl5/5.20/XML/<a href="http://Parser.pm:187">Parser.pm:187</a>]^J  [/usr/share/perl5/SOAP/<a href="http://Lite.pm:1770">Lite.pm:1770</a>]^J  [/usr/share/perl5/SOAP/<a href="http://Lite.pm:2135">Lite.pm:2135</a>]^J  [/usr/share/perl5/SOAP/<a href="http://Lite.pm:2152">Lite.pm:2152</a>]^J  [/usr/share/perl5/SOAP/<a href="http://Lite.pm:3793">Lite.pm:3793</a>]^J  [/usr/share/perl5/Business/OnlinePayment/<a href="http://FirstDataGlobalGateway.pm:209">FirstDataGlobalGateway.pm:209</a>]^J  [/usr/share/perl5/Business/<a href="http://OnlinePayment.pm:116">OnlinePayment.pm:116</a>]^J  [/usr/share/perl5/Business/<a href="http://OnlinePayment.pm:116">OnlinePayment.pm:116</a>]^J  [/usr/share/perl5/Business/<a href="http://OnlinePayment.pm:116">OnlinePayment.pm:116</a>]^J  [/usr/share/perl5/FS/cust_main/Billing_<a href="http://Realtime.pm:741">Realtime.pm:741</a>]^J  [/var/www/html/freeside/misc/process/payment.cgi:253]^J  [/var/www/html/freeside/autohandler:1]^JUnauthorized Request. Bad or missing credentials.') called at /usr/share/perl5/SOAP/<a href="http://Lite.pm">Lite.pm</a> line 3801</div><div>SOAP::Lite::call('Service=HASH(0x5640692176c0)', 'SendAndCommit', 'SOAP::Data=HASH(0x5640691a75d0)') called at /usr/share/perl5/Business/OnlinePayment/<a href="http://FirstDataGlobalGateway.pm">FirstDataGlobalGateway.pm</a> line 209</div><div>eval {...} at /usr/share/perl5/Business/OnlinePayment/<a href="http://FirstDataGlobalGateway.pm">FirstDataGlobalGateway.pm</a> line 209</div><div>Business::OnlinePayment::FirstDataGlobalGateway::submit('Business::OnlinePayment::FirstDataGlobalGateway=HASH(0x564069151cf0)') called at /usr/share/perl5/Business/<a href="http://OnlinePayment.pm">OnlinePayment.pm</a> line 116</div><div>Business::OnlinePayment::__ANON__('Business::OnlinePayment::FirstDataGlobalGateway=HASH(0x564069151cf0)') called at /usr/share/perl5/Business/<a href="http://OnlinePayment.pm">OnlinePayment.pm</a> line 116</div><div>Business::OnlinePayment::__ANON__('Business::OnlinePayment::FirstDataGlobalGateway=HASH(0x564069151cf0)') called at /usr/share/perl5/Business/<a href="http://OnlinePayment.pm">OnlinePayment.pm</a> line 116</div><div>Business::OnlinePayment::__ANON__('Business::OnlinePayment::FirstDataGlobalGateway=HASH(0x564069151cf0)') called at /usr/share/perl5/FS/cust_main/Billing_<a href="http://Realtime.pm">Realtime.pm</a> line 741</div><div>FS::cust_main::Billing_Realtime::realtime_bop('FS::cust_main=HASH(0x564068e2d0c0)', 'CC', 55.84, 'cust_payby', 'FS::cust_payby=HASH(0x564068e2b858)', 'quiet', 1, 'manual', 1, 'balance', 55.84, 'payinfo', 4111111111111111, 'paymask', '', 'paydate', '2020-01-01', 'payname', 'Crucito Marrero', 'payunique', 'webui-payment-1535053504-604-2181755571.46596', 'paycvv', 123, 'paynum_ref', 'SCALAR(0x564068e3f6b0)', 'discount_term', '', 'no_auto_apply', '', 'no_invnum', 1, 'invnum', '', 'address1', '123 Calle 5', 'address2', '', 'city', 'San Juan', 'county', '', 'state', 'PR', 'zip', 00920, 'country', 'US') called at /var/www/html/freeside/misc/process/payment.cgi line 253</div><div>HTML::Mason::Commands::__ANON__('city_select', '', 'censusyear', '', 'censustract', '', 'month', 01, 'invoice', 'select', 'save', 1, 'address2', '', 'payby', 'CARD', 'payment_option', 'select', 'district', '', 'latitude', '', 'old_district', '', 'old_state', '', 'amount', 55.84, 'payunique', 'webui-payment-1535053504-604-2181755571.46596', 'old_address1', '123 Calle 5', 'old_locationname', '', 'longitude', '', 'custpaybynum', '', 'old_addr_clean', '', 'zip', 00920, 'apply', 'yes', 'address1', '123 Calle 5', 'old_country', 'PR', 'weight', 1, 'country', 'US', 'payname', 'Crucito Marrero', 'inv2', 55.84, 'old_latitude', 18.4296735, 'old_zip', 00920, 'old_longitude', -66.0517381, 'locationname', '', 'geocode', '', 'state', 'PR', 'old_city', 'San Juan', 'balance', 55.84, 'coord_auto', 'Y', 'custnum', 10, 'county', '', 'paycvv', 123, 'addr_clean', '', 'old_censustract', '', 'city', 'San Juan', 'payinfo', 4111111111111111, 'cachenum', '', 'year', 2020) called at /usr/share/perl5/HTML/Mason/<a href="http://Component.pm">Component.pm</a> line 138</div><div>HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x564068e2be38)', 'city_select', '', 'censusyear', '', 'censustract', '', 'month', 01, 'invoice', 'select', 'save', 1, 'address2', '', 'payby', 'CARD', 'payment_option', 'select', 'district', '', 'latitude', '', 'old_district', '', 'old_state', '', 'amount', 55.84, 'payunique', 'webui-payment-1535053504-604-2181755571.46596', 'old_address1', '123 Calle 5', 'old_locationname', '', 'longitude', '', 'custpaybynum', '', 'old_addr_clean', '', 'zip', 00920, 'apply', 'yes', 'address1', '123 Calle 5', 'old_country', 'PR', 'weight', 1, 'country', 'US', 'payname', 'Crucito Marrero', 'inv2', 55.84, 'old_latitude', 18.4296735, 'old_zip', 00920, 'old_longitude', -66.0517381, 'locationname', '', 'geocode', '', 'state', 'PR', 'old_city', 'San Juan', 'balance', 55.84, 'coord_auto', 'Y', 'custnum', 10, 'county', '', 'paycvv', 123, 'addr_clean', '', 'old_censustract', '', 'city', 'San Juan', 'payinfo', 4111111111111111, 'cachenum', '', 'year', 2020) called at /usr/share/perl5/HTML/Mason/<a href="http://Request.pm">Request.pm</a> line 1305</div><div>eval {...} at /usr/share/perl5/HTML/Mason/<a href="http://Request.pm">Request.pm</a> line 1295</div><div>HTML::Mason::Request::comp(undef, undef, undef, 'city_select', '', 'censusyear', '', 'censustract', '', 'month', 01, 'invoice', 'select', 'save', 1, 'address2', '', 'payby', 'CARD', 'payment_option', 'select', 'district', '', 'latitude', '', 'old_district', '', 'old_state', '', 'amount', 55.84, 'payunique', 'webui-payment-1535053504-604-2181755571.46596', 'old_address1', '123 Calle 5', 'old_locationname', '', 'longitude', '', 'custpaybynum', '', 'old_addr_clean', '', 'zip', 00920, 'apply', 'yes', 'address1', '123 Calle 5', 'old_country', 'PR', 'weight', 1, 'country', 'US', 'payname', 'Crucito Marrero', 'inv2', 55.84, 'old_latitude', 18.4296735, 'old_zip', 00920, 'old_longitude', -66.0517381, 'locationname', '', 'geocode', '', 'state', 'PR', 'old_city', 'San Juan', 'balance', 55.84, 'coord_auto', 'Y', 'custnum', 10, 'county', '', 'paycvv', 123, 'addr_clean', '', 'old_censustract', '', 'city', 'San Juan', 'payinfo', 4111111111111111, 'cachenum', '', 'year', 2020) called at /usr/share/perl5/HTML/Mason/<a href="http://Request.pm">Request.pm</a> line 958</div><div>HTML::Mason::Request::call_next('FS::Mason::Request=HASH(0x564068e3bb28)') called at /var/www/html/freeside/autohandler line 1</div><div>HTML::Mason::Commands::__ANON__('city_select', '', 'censusyear', '', 'censustract', '', 'month', 01, 'invoice', 'select', 'save', 1, 'address2', '', 'payby', 'CARD', 'payment_option', 'select', 'district', '', 'latitude', '', 'old_district', '', 'old_state', '', 'amount', 55.84, 'payunique', 'webui-payment-1535053504-604-2181755571.46596', 'old_address1', '123 Calle 5', 'old_locationname', '', 'longitude', '', 'custpaybynum', '', 'old_addr_clean', '', 'zip', 00920, 'apply', 'yes', 'address1', '123 Calle 5', 'old_country', 'PR', 'weight', 1, 'country', 'US', 'payname', 'Crucito Marrero', 'inv2', 55.84, 'old_latitude', 18.4296735, 'old_zip', 00920, 'old_longitude', -66.0517381, 'locationname', '', 'geocode', '', 'state', 'PR', 'old_city', 'San Juan', 'balance', 55.84, 'coord_auto', 'Y', 'custnum', 10, 'county', '', 'paycvv', 123, 'addr_clean', '', 'old_censustract', '', 'city', 'San Juan', 'payinfo', 4111111111111111, 'cachenum', '', 'year', 2020) called at /usr/share/perl5/HTML/Mason/<a href="http://Component.pm">Component.pm</a> line 138</div><div>HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x564068e184a8)', 'city_select', '', 'censusyear', '', 'censustract', '', 'month', 01, 'invoice', 'select', 'save', 1, 'address2', '', 'payby', 'CARD', 'payment_option', 'select', 'district', '', 'latitude', '', 'old_district', '', 'old_state', '', 'amount', 55.84, 'payunique', 'webui-payment-1535053504-604-2181755571.46596', 'old_address1', '123 Calle 5', 'old_locationname', '', 'longitude', '', 'custpaybynum', '', 'old_addr_clean', '', 'zip', 00920, 'apply', 'yes', 'address1', '123 Calle 5', 'old_country', 'PR', 'weight', 1, 'country', 'US', 'payname', 'Crucito Marrero', 'inv2', 55.84, 'old_latitude', 18.4296735, 'old_zip', 00920, 'old_longitude', -66.0517381, 'locationname', '', 'geocode', '', 'state', 'PR', 'old_city', 'San Juan', 'balance', 55.84, 'coord_auto', 'Y', 'custnum', 10, 'county', '', 'paycvv', 123, 'addr_clean', '', 'old_censustract', '', 'city', 'San Juan', 'payinfo', 4111111111111111, 'cachenum', '', 'year', 2020) called at /usr/share/perl5/HTML/Mason/<a href="http://Request.pm">Request.pm</a> line 1303</div><div>eval {...} at /usr/share/perl5/HTML/Mason/<a href="http://Request.pm">Request.pm</a> line 1295</div><div>HTML::Mason::Request::comp(undef, undef, undef, 'city_select', '', 'censusyear', '', 'censustract', '', 'month', 01, 'invoice', 'select', 'save', 1, 'address2', '', 'payby', 'CARD', 'payment_option', 'select', 'district', '', 'latitude', '', 'old_district', '', 'old_state', '', 'amount', 55.84, 'payunique', 'webui-payment-1535053504-604-2181755571.46596', 'old_address1', '123 Calle 5', 'old_locationname', '', 'longitude', '', 'custpaybynum', '', 'old_addr_clean', '', 'zip', 00920, 'apply', 'yes', 'address1', '123 Calle 5', 'old_country', 'PR', 'weight', 1, 'country', 'US', 'payname', 'Crucito Marrero', 'inv2', 55.84, 'old_latitude', 18.4296735, 'old_zip', 00920, 'old_longitude', -66.0517381, 'locationname', '', 'geocode', '', 'state', 'PR', 'old_city', 'San Juan', 'balance', 55.84, 'coord_auto', 'Y', 'custnum', 10, 'county', '', 'paycvv', 123, 'addr_clean', '', 'old_censustract', '', 'city', 'San Juan', 'payinfo', 4111111111111111, 'cachenum', '', 'year', 2020) called at /usr/share/perl5/HTML/Mason/<a href="http://Request.pm">Request.pm</a> line 484</div><div>eval {...} at /usr/share/perl5/HTML/Mason/<a href="http://Request.pm">Request.pm</a> line 484</div><div>eval {...} at /usr/share/perl5/HTML/Mason/<a href="http://Request.pm">Request.pm</a> line 436</div><div>HTML::Mason::Request::exec('FS::Mason::Request=HASH(0x564068e3bb28)') called at /usr/share/perl5/HTML/Mason/<a href="http://ApacheHandler.pm">ApacheHandler.pm</a> line 165</div><div>HTML::Mason::Request::ApacheHandler::exec('FS::Mason::Request=HASH(0x564068e3bb28)') called at /usr/share/perl5/HTML/Mason/<a href="http://ApacheHandler.pm">ApacheHandler.pm</a> line 831</div><div>HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x5640657d9d60)', 'Apache2::RequestRec=SCALAR(0x56406587d340)') called at /usr/local/etc/freeside/<a href="http://handler.pl">handler.pl</a> line 153</div><div>eval {...} at /usr/local/etc/freeside/<a href="http://handler.pl">handler.pl</a> line 153</div><div>HTML::Mason::handler('Apache2::RequestRec=SCALAR(0x56406587d340)') called at -e line 0</div><div>eval {...} at -e line 0</div><div><br></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Aug 23, 2018 at 3:00 PM <<a href="mailto:freeside-users-request@freeside.biz">freeside-users-request@freeside.biz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send freeside-users mailing list submissions to<br>
        <a href="mailto:freeside-users@freeside.biz" target="_blank">freeside-users@freeside.biz</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://mail.freeside.biz/cgi-bin/mailman/listinfo/freeside-users" rel="noreferrer" target="_blank">http://mail.freeside.biz/cgi-bin/mailman/listinfo/freeside-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:freeside-users-request@freeside.biz" target="_blank">freeside-users-request@freeside.biz</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:freeside-users-owner@freeside.biz" target="_blank">freeside-users-owner@freeside.biz</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of freeside-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Configuring Real-Time Processing (WinPR Internet)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 23 Aug 2018 09:40:29 -0400<br>
From: WinPR Internet <<a href="mailto:agswinpr@gmail.com" target="_blank">agswinpr@gmail.com</a>><br>
To: <a href="mailto:freeside-users@freeside.biz" target="_blank">freeside-users@freeside.biz</a><br>
Subject: [freeside-users] Configuring Real-Time Processing<br>
Message-ID:<br>
        <CAJVsxZyCc64qfT+OCA1vs+4=<a href="mailto:La3Ci3p81uiwVESdM0FWxxYEbg@mail.gmail.com" target="_blank">La3Ci3p81uiwVESdM0FWxxYEbg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi All,<br>
I'm trying to setup real-time CC processing. I did configure as in<br>
<a href="http://www.freeside.biz/mediawiki/index.php/Freeside:3:Documentation:Administration:Real-time_Processing" rel="noreferrer" target="_blank">http://www.freeside.biz/mediawiki/index.php/Freeside:3:Documentation:Administration:Real-time_Processing</a><br>
I'm using FirstData as processor, my first test I'm having this error:<br>
<br>
System error<br>
<br>
error: Can't call method "paydate" on an undefined value at<br>
/var/www/html/freeside/misc/process/payment.cgi line 215.<br>
context:<br>
...<br>
211:<br>
212: my $error = '';<br>
213: my $paynum = '';<br>
214: my $paydate;<br>
215: if ($cust_payby->paydate) { $paydate = "$year-$month-01"; }<br>
216: else { $paydate = "2037-12-01"; }<br>
217:<br>
218: if ( $cgi->param('batch') ) {<br>
219:<br>
...<br>
code stack: /var/www/html/freeside/misc/process/payment.cgi:215<br>
/var/www/html/freeside/autohandler:1<br>
raw error<br>
<br>
How can I fix it?<br>
Thanks in advance,<br>
<br>
Tony<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mail.freeside.biz/pipermail/freeside-users/attachments/20180823/408cdc72/attachment-0001.html" rel="noreferrer" target="_blank">http://mail.freeside.biz/pipermail/freeside-users/attachments/20180823/408cdc72/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
freeside-users mailing list<br>
<a href="mailto:freeside-users@freeside.biz" target="_blank">freeside-users@freeside.biz</a><br>
<a href="http://mail.freeside.biz/cgi-bin/mailman/listinfo/freeside-users" rel="noreferrer" target="_blank">http://mail.freeside.biz/cgi-bin/mailman/listinfo/freeside-users</a><br>
<br>
<br>
------------------------------<br>
<br>
End of freeside-users Digest, Vol 152, Issue 3<br>
**********************************************<br>
</blockquote></div></div></div>