Forums / Addon Payment Modules / Authorize.net API with Card on File transactions support thread...

Authorize.net API with Card on File transactions support thread...

Views: 56,723

Results 41 to 60 of 199
9 Jun 2020, 9:20 PM
#41
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Authorize.net API with Card on File transactions support thread...

I thought I probably misunderstood. I also now realize the file I mentioned is a storefront file so completely irrelevant. :-)

https://prnt.sc/swtsgm
3.3.1

Jim
Wheaton Website Services

9 Jun 2020, 11:17 PM
#42
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,973
Plugin Contributions:
8

Re: Authorize.net API with Card on File transactions support thread...

ok i think i found the problem. lets look at this file:

YOUR_ADMIN/includes/footer.php

the notifier was added AFTER v156a. modify that file so the the end of the file is as follows:

  </div>
</footer>
<?php
$zco_notifier->notify('NOTIFY_ADMIN_FOOTER_END');

if your version of that file already has the last line with the $zco_notifier, let me know, and we will continue the trouble shooting.

reload the admin page, and let me know what happens.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

9 Jun 2020, 11:31 PM
#43
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Authorize.net API with Card on File transactions support thread...

carlwhat:

ok i think i found the problem. lets look at this file:

YOUR_ADMIN/includes/footer.php

the notifier was added AFTER v156a. modify that file so the the end of the file is as follows:

</div> </footer> <?php $zco_notifier->notify('NOTIFY_ADMIN_FOOTER_END'); ``` > > if your version of that file already has the last line with the $zco_notifier, let me know, and we will continue the trouble shooting. > > reload the admin page, and let me know what happens.

Ding, ding ding. That was it!!

https://prnt.sc/swviqd

Jim
Wheaton Website Services

9 Jun 2020, 11:43 PM
#44
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,973
Plugin Contributions:
8

Re: Authorize.net API with Card on File transactions support thread...

jeking:

Ding, ding ding. That was it!!

https://prnt.sc/swviqd

:thumbsup:

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

15 Jun 2020, 6:40 PM
#45
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Authorize.net API with Card on File transactions support thread...

Back with a new issue. This same client is reporting that the invoice number is not being recorded at authorize.net. I don't have access so cannot see. Should the invoice number get recorded?

Jim
Wheaton Website Services

15 Jun 2020, 6:54 PM
#46
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,973
Plugin Contributions:
8

Re: Authorize.net API with Card on File transactions support thread...

jeking:

Back with a new issue. This same client is reporting that the invoice number is not being recorded at authorize.net. I don't have access so cannot see. Should the invoice number get recorded?

the client is always right!

let me take a look.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

15 Jun 2020, 7:47 PM
#47
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,973
Plugin Contributions:
8

Re: Authorize.net API with Card on File transactions support thread...

jeking:

Back with a new issue. This same client is reporting that the invoice number is not being recorded at authorize.net. I don't have access so cannot see. Should the invoice number get recorded?

jim,
i was sending the order number in the reference field. it is NOT showing up on my authorize account. it does look like authorize has a different place to add it. i will get a new version out shortly.

in the interim, if you want to modify the code, on this file: includes/modules/payment/authorizenet_cim.php you can add this on line 980

            
	        $authorize_order = new AnetAPI\OrderType();
	        $authorize_order->setInvoiceNumber($this->nextOrderNumber($order->info));
	        $transactionRequestType->setOrder($authorize_order);

// next line should be:

	        $request = new AnetAPI\CreateTransactionRequest();

let me know how that goes.

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

15 Jun 2020, 8:15 PM
#48
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Authorize.net API with Card on File transactions support thread...

carlwhat:

jim,
i was sending the order number in the reference field. it is NOT showing up on my authorize account. it does look like authorize has a different place to add it. i will get a new version out shortly.

in the interim, if you want to modify the code, on this file: includes/modules/payment/authorizenet_cim.php you can add this on line 980

        $authorize_order = new AnetAPI\OrderType();
        $authorize_order->setInvoiceNumber($this->nextOrderNumber($order->info));
        $transactionRequestType->setOrder($authorize_order);

// next line should be:

        $request = new AnetAPI\CreateTransactionRequest();
> 
> let me know how that goes.
> 
> best.

Bingo again!!

She also commented that the description is blank. It used to display the product name. Something you may want to include while you're making updates.  ;-)

Jim
Wheaton Website Services

15 Jun 2020, 9:25 PM
#49
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,973
Plugin Contributions:
8

Re: Authorize.net API with Card on File transactions support thread...

jeking:

Bingo again!!

She also commented that the description is blank. It used to display the product name. Something you may want to include while you're making updates. ;-)

jim,
there is where she and i go adrift. yes the description is blank, but the description field is for the whole invoice, but just a single line item. with what would you propose i populate that field? i suppose it could say, "Goods from: store_name" and pull the store name from the configuration table. i am open to any ideas.

as you can see from the attached screenshot, a detailed list of itemized goods is already sent to a.net. perhaps i could do the product description if there is only 1 item on the invoice; but now we are getting into whether that makes sense for others who may make use of the module.

thoughts?

Attachment 19049

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

28 Jun 2020, 8:48 PM
#50
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,973
Plugin Contributions:
8

Re: Authorize.net API with Card on File transactions support thread...

v2.1.1 submitted for review.

adds invoice number and invoice description to authorize.net receipt and dashboard.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

30 Jun 2020, 2:35 PM
#51
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Authorize.net API with Card on File transactions support thread...

I don't know if this is really a bug or not. When checking out as a guest (using One-Page Checkout), there is a saved card. It's the card of the store owner so I assume adding while she was testing things out.

In the admin, I see I can remove the card: https://prnt.sc/t97dz8

But my concern is will all cards be saved if a customer checks out as a guest for future guest orders to see?

Jim
Wheaton Website Services

30 Jun 2020, 5:47 PM
#52
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Authorize.net API with Card on File transactions support thread...

Send question, when my client authorizes the charges the regular a.net plugin would post the results as a status update with details: https://prnt.sc/t9b1th

With the new plugin, there is no order status update. Without this, she does not have a record on the order of when the funds where captured.

https://prnt.sc/t9b1th

Jim
Wheaton Website Services

1 Jul 2020, 2:25 AM
#53
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,973
Plugin Contributions:
8

Re: Authorize.net API with Card on File transactions support thread...

jeking:

Send question, when my client authorizes the charges the regular a.net plugin would post the results as a status update with details: https://prnt.sc/t9b1th

With the new plugin, there is no order status update. Without this, she does not have a record on the order of when the funds where captured.

https://prnt.sc/t9b1th

sorry for the delayed response. very busy right now...

all of this information is stored in table. i do NOT store it in the comments table.

perhaps there is a notifier missing in her 156a implementation. does she not see something that looks the attachment here:

https://www.zen-cart.com/attachment.php?attachmentid=19065&d=1593569625&stc=1

i do see the necessary notifier NOTIFY_ADMIN_ORDERS_PAYMENTDATA_COLUMN2 is part of v156a.... as far as i can tell....

i will be looking at the other issue when i have a bit more time.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

1 Jul 2020, 11:55 AM
#54
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Authorize.net API with Card on File transactions support thread...

carlwhat:

sorry for the delayed response. very busy right now...

all of this information is stored in table. i do NOT store it in the comments table.

perhaps there is a notifier missing in her 156a implementation. does she not see something that looks the attachment here:

https://www.zen-cart.com/attachment.php?attachmentid=19065&d=1593569625&stc=1

i do see the necessary notifier NOTIFY_ADMIN_ORDERS_PAYMENTDATA_COLUMN2 is part of v156a.... as far as i can tell....

i will be looking at the other issue when i have a bit more time.

Thanks for the reply. Checking the order, the table you show is completely empty: https://prnt.sc/t9ri90

I also see the notifier in the ADMIN/orders.php

Jim
Wheaton Website Services

1 Jul 2020, 2:14 PM
#55
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,973
Plugin Contributions:
8

Re: Authorize.net API with Card on File transactions support thread...

jeking:

Thanks for the reply. Checking the order, the table you show is completely empty: https://prnt.sc/t9ri90

I also see the notifier in the ADMIN/orders.php

you look to have multiple conflicting payment modules going on as far as i can tell from your screenshot.

there is no expiration date above the table for the credit card. my module does not work that way... (as far as I can tell)

you also look to have hitting this code in the orders.php script (line 580 in v156):

if (is_object($module) && method_exists($module, 'admin_notification')) {

my module does NOT have an admin_notification method.

if you look at your mysql database are there any records in the authorize_cim_payments table? and if so, what are the values for the orders_id?

in looking at this thread, she was previously able to capture transactions. i believe there had to be records in this table. so what has happened to this table now?

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

1 Jul 2020, 2:50 PM
#56
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Authorize.net API with Card on File transactions support thread...

I'm so sorry. The previous screen shot was the wrong order. It was the 'before' order. The after order does have the data in the table:
https://prnt.sc/t9v6sn

Having said that, the data in the table is the authorization. It does not show the capture data. The Capture button is missing so an indication it was captured. My client is looking to know the date of the capture.

Checking the authorize_cim_payments table, I see the same single entry.

Jim
Wheaton Website Services

1 Jul 2020, 11:33 PM
#57
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,973
Plugin Contributions:
8

Re: Authorize.net API with Card on File transactions support thread...

jeking:

I'm so sorry. The previous screen shot was the wrong order. It was the 'before' order. The after order does have the data in the table:
https://prnt.sc/t9v6sn

Having said that, the data in the table is the authorization. It does not show the capture data. The Capture button is missing so an indication it was captured. My client is looking to know the date of the capture.

Checking the authorize_cim_payments table, I see the same single entry.

that data is available.

if there is additional demand for knowing when the capture happened; i will add that to the table. but right now, clients making additional requests are fine; but they are not, to me, a bug. i currently only provide the date of authorization. i will think about adding the capture date in a future release of the module.

jeking:

I don't know if this is really a bug or not. When checking out as a guest (using One-Page Checkout), there is a saved card. It's the card of the store owner so I assume adding while she was testing things out.

In the admin, I see I can remove the card: https://prnt.sc/t97dz8

But my concern is will all cards be saved if a customer checks out as a guest for future guest orders to see?

with regards to this situation, i have not had an opportunity to look at it closely. from what i remember, if one checks out as a guest, i thought i did not save the credit card data. i specifically remember looking at that and having input from the author of OPC on that.

again, i will take a look when i can.

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

1 Jul 2020, 11:41 PM
#58
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Authorize.net API with Card on File transactions support thread...

carlwhat:

that data is available.

if there is additional demand for knowing when the capture happened; i will add that to the table. but right now, clients making additional requests are fine; but they are not, to me, a bug. i currently only provide the date of authorization. i will think about adding the capture date in a future release of the module.
I would agree it's not a bug so good with a feature request for a future release. Thanks.

carlwhat:

with regards to this situation, i have not had an opportunity to look at it closely. from what i remember, if one checks out as a guest, i thought i did not save the credit card data. i specifically remember looking at that and having input from the author of OPC on that.

again, i will take a look when i can.

I'll see if I can do some testing to confirm what we see here. For now, I'll delete the saved card from the Guest account.

Jim
Wheaton Website Services

15 Jul 2020, 3:57 PM
#59
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Authorize.net API with Card on File transactions support thread...

jeking:

I don't know if this is really a bug or not. When checking out as a guest (using One-Page Checkout), there is a saved card. It's the card of the store owner so I assume adding while she was testing things out.

In the admin, I see I can remove the card: https://prnt.sc/t97dz8

But my concern is will all cards be saved if a customer checks out as a guest for future guest orders to see?

carlwhat:

with regards to this situation, i have not had an opportunity to look at it closely. from what i remember, if one checks out as a guest, i thought i did not save the credit card data. i specifically remember looking at that and having input from the author of OPC on that.

again, i will take a look when i can.

best.

This is continuing to happen. And today got the error "ERROR invalid response Customer: 22186 E00042 You cannot add more than 10 payment profiles"

I saw saved credit cards again on the Guest account, which is ID 22186. I deleted them so should buy some time.

Jim
Wheaton Website Services

15 Jul 2020, 4:45 PM
#60
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,973
Plugin Contributions:
8

Re: Authorize.net API with Card on File transactions support thread...

jeking:

This is continuing to happen. And today got the error "ERROR invalid response Customer: 22186 E00042 You cannot add more than 10 payment profiles"

I saw saved credit cards again on the Guest account, which is ID 22186. I deleted them so should buy some time.

i am working on a new release of this most excellent, IMO (inherently biased), payment module. it should address all bugs documented by you and verified by me. including the verified bugs associated with guest checkout.

thanks for pointing them out.

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.