Please post all pre-sales questions of all products on this forum

Upgrade to 2.3.1 Cant edit the os_authnet

More
9 years 3 months ago #75069 by Oscar
Before the upgrade I using authnet to go through my payment processing emulator. I just edited the AIM urls in os_authnet.php to

secure.equitycommercegateway.com/cart/ausi.php

when I did the upgrade there are no urls to change the whole script is different. Need to know where I can change the urls to redirect to my credit card processor Authorize.net emulator.

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #75080 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Upgrade to 2.3.1 Cant edit the os_authnet
Hi Oscar

Do you still keep an old copy of the modified file? If you still keep it, I would suggest you to restore that file, it would be easier than editing code of the new payment plugin.

Basically, in version 2.3.x, we use a new payment processing API called omnipay. If you want to change URL, you will have to edit code of that library. Look at the file libraries\omnipay\vendor\omnipay\authorizenet\src\AIMGateway.php, you will see the code for URL in line 24 and line 25 of the file

Change it to your emulator URL and it should work well.

Tuan

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #75092 by Oscar
Replied by Oscar on topic Upgrade to 2.3.1 Cant edit the os_authnet
Thank you I made the changes as you guided however I am now getting an error..
The zipcode field is required REFID:3174905232"

How can I add the zip code field to the payment information?

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #75094 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Upgrade to 2.3.1 Cant edit the os_authnet
Hi Oscar

Authorize.net payment gateway doesn't have zipcode field. It only has x_zip field and x_ship_to_zip fields. Maybe you can try to look at this file libraries\omnipay\vendor\omnipay\authorizenet\src\Message\AbstractRequest.php, change x_zip and x_ship_to_zip to zipcode to see whether it works ?

Tuan

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #75096 by Oscar
Replied by Oscar on topic Upgrade to 2.3.1 Cant edit the os_authnet
Thank you for your quick response.
I see the line ....
$data = $card->getBillingPostcode();

but I am not sure how to turn on the field so the customer can enter it when checking out?

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #75097 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Upgrade to 2.3.1 Cant edit the os_authnet
That's the zip field in Events Booking. Go to Events Booking -> Custom Fields, publish the zip custom field and it should work OK

Tuan

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago - 9 years 3 months ago #75098 by Oscar
Replied by Oscar on topic Upgrade to 2.3.1 Cant edit the os_authnet
Perfect. That worked perfectly. Thank you
Last edit: 9 years 3 months ago by Oscar.

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #75204 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Upgrade to 2.3.1 Cant edit the os_authnet
Great. Happy to hear that :)

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham NgocGiang Dinh TruongMr. Dam