Authorize.net API with Card on File transactions support thread...
this is the support thread for the authorize.net API with card on file transactions that can be downloaded here:
https://www.zen-cart.com/downloads.php?do=file&id=2272
it has been tested to run with v156. please post any questions along with your ZC version number and php version.
Re: Authorize.net API with Card on File transactions support thread...
Just attempted to unzip the download. Windows is grumpy.
Error 0x80010135: Path too long
TransactionRsponseType.SplitTenderPaymentsAType.SplitTenderPaymentAType.yml
Ditto for
SplitTenderPaymentAType PHP File
Re: Authorize.net API with Card on File transactions support thread...
Quote:
Originally Posted by
RixStix
Just attempted to unzip the download. Windows is grumpy.
Error 0x80010135: Path too long
TransactionRsponseType.SplitTenderPaymentsAType.SplitTenderPaymentAType.yml
Ditto for
SplitTenderPaymentAType PHP File
i hate windows...
this error is frequently caused by using windows explorer or winzip to extract a zip file.
i would try using this utility to unzip:
https://www.7-zip.org/
Re: Authorize.net API with Card on File transactions support thread...
Looking right now for differences between computers.
Laptop 1 : Extract without errors
Laptop 2 : Errors extracting
Always just right-click: ExtractAll
For now, I'll just use a different laptop.... the old one.
Later, today, I'll try 7-zip
Re: Authorize.net API with Card on File transactions support thread...
Shouldn't this support be in the "Addon Payment Modules" section?
CIM is an available option within Auth.net accounts
CIM requires additional setup within the Auth.net account
AIM and/or SIM APIloginID and transaction keys do not work without completing CIM setup within the Auth.net account.
1st checkout attempt: CIM is not enabled.
Go to auth.net and enable CIM but did not do anything with the Auth.net Account Updater within CIM. Trying to figure out what is needed there.
2nd checkout attempt: Transaction failed. A valid amount is required. Error code 5
I also have the OPC debug if that is needed.
CIMdebug
Code:
Mon, 27 Apr 2020 11:21:33 -0700:
ERROR : Invalid response
Response : E00044 Customer Information Manager is not enabled.
Mon, 27 Apr 2020 11:30:12 -0700:
Succesfully created customer profile : 2007863187
Mon, 27 Apr 2020 11:30:13 -0700:
Create Customer Payment Profile SUCCESS: 2026789121
Mon, 27 Apr 2020 11:30:13 -0700:
Transaction Failed
Error code : 5
Error message : A valid amount is required.
MyDEBUG
Code:
[27-Apr-2020 11:30:12 America/Los_Angeles] Request URI: /index.php?main_page=checkout_process, IP address: 98.146.164.107
#1 trigger_error() called at [/home/WEBSERVERACCOUNT/public_html/includes/modules/payment/authorizenet_cim.php:447]
#2 authorizenet_cim->logError() called at [/home/WEBSERVERACCOUNT/public_html/includes/modules/payment/authorizenet_cim.php:841]
#3 authorizenet_cim->createCustomerProfileRequest() called at [/home/WEBSERVERACCOUNT/public_html/includes/modules/payment/authorizenet_cim.php:313]
#4 authorizenet_cim->before_process() called at [/home/WEBSERVERACCOUNT/public_html/includes/classes/payment.php:246]
#5 payment->before_process() called at [/home/WEBSERVERACCOUNT/public_html/includes/modules/checkout_process.php:92]
#6 require(/home/WEBSERVERACCOUNT/public_html/includes/modules/checkout_process.php) called at [/home/WEBSERVERACCOUNT/public_html/includes/modules/pages/checkout_process/header_php.php:14]
#7 require(/home/WEBSERVERACCOUNT/public_html/includes/modules/pages/checkout_process/header_php.php) called at [/home/WEBSERVERACCOUNT/public_html/index.php:36]
--> PHP Notice: Succesfully created customer profile : 2007863187
in /home/WEBSERVERACCOUNT/public_html/includes/modules/payment/authorizenet_cim.php on line 447.
[27-Apr-2020 11:30:13 America/Los_Angeles] Request URI: /index.php?main_page=checkout_process, IP address: 98.146.164.107
#1 trigger_error() called at [/home/WEBSERVERACCOUNT/public_html/includes/modules/payment/authorizenet_cim.php:447]
#2 authorizenet_cim->logError() called at [/home/WEBSERVERACCOUNT/public_html/includes/modules/payment/authorizenet_cim.php:940]
#3 authorizenet_cim->createCustomerPaymentProfileRequest() called at [/home/WEBSERVERACCOUNT/public_html/includes/modules/payment/authorizenet_cim.php:320]
#4 authorizenet_cim->before_process() called at [/home/WEBSERVERACCOUNT/public_html/includes/classes/payment.php:246]
#5 payment->before_process() called at [/home/WEBSERVERACCOUNT/public_html/includes/modules/checkout_process.php:92]
#6 require(/home/WEBSERVERACCOUNT/public_html/includes/modules/checkout_process.php) called at [/home/WEBSERVERACCOUNT/public_html/includes/modules/pages/checkout_process/header_php.php:14]
#7 require(/home/WEBSERVERACCOUNT/public_html/includes/modules/pages/checkout_process/header_php.php) called at [/home/WEBSERVERACCOUNT/public_html/index.php:36]
--> PHP Notice: Create Customer Payment Profile SUCCESS: 2026789121
in /home/WEBSERVERACCOUNT/public_html/includes/modules/payment/authorizenet_cim.php on line 447.
[27-Apr-2020 11:30:13 America/Los_Angeles] Request URI: /index.php?main_page=checkout_process, IP address: 98.146.164.107
#1 trigger_error() called at [/home/WEBSERVERACCOUNT/public_html/includes/modules/payment/authorizenet_cim.php:447]
#2 authorizenet_cim->logError() called at [/home/WEBSERVERACCOUNT/public_html/includes/modules/payment/authorizenet_cim.php:1022]
#3 authorizenet_cim->chargeCustomerProfile() called at [/home/WEBSERVERACCOUNT/public_html/includes/modules/payment/authorizenet_cim.php:325]
#4 authorizenet_cim->before_process() called at [/home/WEBSERVERACCOUNT/public_html/includes/classes/payment.php:246]
#5 payment->before_process() called at [/home/WEBSERVERACCOUNT/public_html/includes/modules/checkout_process.php:92]
#6 require(/home/WEBSERVERACCOUNT/public_html/includes/modules/checkout_process.php) called at [/home/WEBSERVERACCOUNT/public_html/includes/modules/pages/checkout_process/header_php.php:14]
#7 require(/home/WEBSERVERACCOUNT/public_html/includes/modules/pages/checkout_process/header_php.php) called at [/home/WEBSERVERACCOUNT/public_html/index.php:36]
--> PHP Notice: Transaction Failed
Error code : 5
Error message : A valid amount is required.
in /home/WEBSERVERACCOUNT/public_html/includes/modules/payment/authorizenet_cim.php on line 447.
Re: Authorize.net API with Card on File transactions support thread...
ok. so you enabled CIM and that part now looks good.
but now you are getting an invalid amount. and you are using OPC?
what is the order total?
Re: Authorize.net API with Card on File transactions support thread...
rick,
on your server info page, what is this var set to:
serialize_precision
Re: Authorize.net API with Card on File transactions support thread...
$56.63 Subtotal
$4.44 shipping USPS 1st class
$3.40 Sales tax
$64.47 Order Total
OPC has those numbers out to a kazillion decimal places
Re: Authorize.net API with Card on File transactions support thread...
Quote:
Originally Posted by
carlwhat
rick,
on your server info page, what is this var set to:
serialize_precision
serialize_precision |
100 |
100 |
Re: Authorize.net API with Card on File transactions support thread...
ok, great. that looks to be where the problem is for sure. that should be set at -1.
however, i am unsure how that would affect OPC, so i want to do a little more research on it. i want to see if i can replicate that error, and solve it without the var change. in addition, i will reach out to OPC to see if the -1 setting would affect her.
best.