Forums / Built-in Shipping and Payment Modules / Setting up some products to capture immediately instead of authorize only?

Setting up some products to capture immediately instead of authorize only?

Locked

Views: 818

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
17 Sep 2010, 1:37 PM
#1
vooboo13 avatar

vooboo13

New Zenner

Join Date:
Dec 2009
Posts:
55
Plugin Contributions:
0

Setting up some products to capture immediately instead of authorize only?

Zen cart version: 1.3.9f

Hi all,

Is there a way to have certain products capture immediately? We are going to start selling accounts that "activate" access to one of our sister sites. We have done the part that upon capture will send out data to a database to allow access to a different site before with a different product, but in this case we want the purchase/access sequence to be automatic. Right now it is set to "Authorize Only", and we are using the FirstDATA/YourPAY/Linkpoint payment module as well as Paypal Express Checkout.

This is because if they purchase in the middle of the night, we don't want them to have to wait.

Which file should I be editing to allow this? Thanks for the direction in advance..

Vu Nguyen | Multimedia Developer & Webmaster
Robotics Academy/Robomatter
Robomatter Robotics Education Store

17 Sep 2010, 4:46 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Setting up some products to capture immediately instead of authorize only?

This is a setting that is one way or the other and be default can not be both

Zen-Venom Get Bitten

17 Sep 2010, 4:50 PM
#3
vooboo13 avatar

vooboo13

New Zenner

Join Date:
Dec 2009
Posts:
55
Plugin Contributions:
0

Re: Setting up some products to capture immediately instead of authorize only?

You mean there isn't a variable somewhere in the payment modules or ordering scripts that check what the current setting is? There has to be a way. I was able to use the ordering php file to allow certain products to talk to our database upon capturing. There's gotta be a flag somewhere, I just don't know where it is.

Vu Nguyen | Multimedia Developer & Webmaster
Robotics Academy/Robomatter
Robomatter Robotics Education Store

17 Sep 2010, 4:54 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Setting up some products to capture immediately instead of authorize only?

You mean there isn't a variable somewhere in the payment modules
Start by looking in the payment module file you are using

Zen-Venom Get Bitten

17 Sep 2010, 4:55 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Setting up some products to capture immediately instead of authorize only?

There's no "flag".

You'll have to add your own conditional logic to replace this:

$myorder["ordertype"] = (MODULE_PAYMENT_LINKPOINT_API_AUTHORIZATION_MODE == 'Authorize Only' ? 'PREAUTH': 'SALE');

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 Sep 2010, 4:59 PM
#6
vooboo13 avatar

vooboo13

New Zenner

Join Date:
Dec 2009
Posts:
55
Plugin Contributions:
0

Re: Setting up some products to capture immediately instead of authorize only?

Yes! Thanks DrBte.

Can you point me to this same idea for Paypal Express Checkout?

Vu Nguyen | Multimedia Developer & Webmaster
Robotics Academy/Robomatter
Robomatter Robotics Education Store

17 Sep 2010, 5:07 PM
#7
vooboo13 avatar

vooboo13

New Zenner

Join Date:
Dec 2009
Posts:
55
Plugin Contributions:
0

Re: Setting up some products to capture immediately instead of authorize only?

I think I found it. Is it line 1423 in paypalwpp.php?

$options['PAYMENTACTION'] = (MODULE_PAYMENT_PAYPALWPP_TRANSACTION_MODE == 'Auth Only') ? 'Authorization' : 'Sale';

Vu Nguyen | Multimedia Developer & Webmaster
Robotics Academy/Robomatter
Robomatter Robotics Education Store

17 Sep 2010, 5:25 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Setting up some products to capture immediately instead of authorize only?

Yes .

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.