Zen Cart Logo
Forums / PayPal Express Checkout support / MODULE_PAYMENT_PAYPALWPP_TRANSACTION_MODE = "order"

MODULE_PAYMENT_PAYPALWPP_TRANSACTION_MODE = "order"

Views: 662

Results 1 to 5 of 5
9 May 2011, 2:48 PM
#1
geeker avatar

geeker

New Zenner

Join Date:
Mar 2011
Posts:
52
Plugin Contributions:
0

MODULE_PAYMENT_PAYPALWPP_TRANSACTION_MODE = "order"

I am trying to set up a zen cart site using $options['PAYMENTACTION'] = "order" I did not see any setting in the admin to set this so I went into the payment module to see if I could hard code it.

I noticed that there is a place in the code that does set this value to "order" but I am not sure where in the admin I would set the transaction mode. I have express checkout installed. The code I found was in paypalwpp.php on line 1437:

if (MODULE_PAYMENT_PAYPALWPP_TRANSACTION_MODE == 'Order') $options['PAYMENTACTION'] = 'Order';

I know I can hard code this but ideally I would like to do this the right way. Any help would be greatly appreciated.

-Ken

9 May 2011, 7:19 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: MODULE_PAYMENT_PAYPALWPP_TRANSACTION_MODE = "order"

May I ask "why"?

.
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.

9 May 2011, 7:35 PM
#3
geeker avatar

geeker

New Zenner

Join Date:
Mar 2011
Posts:
52
Plugin Contributions:
0

Re: MODULE_PAYMENT_PAYPALWPP_TRANSACTION_MODE = "order"

I'm using zen cart to replace an older site. The current site uses "order" for paypal transactions.

The reason for this is they only get a paypal authorization when an order is placed later they bill through the warehouse fulfillment system when an order ships using the authorization ID from the initial paypal transaction...in the case it is a partial order only part of the order is billed. From reading the paypal site it seems this is the purpose of using "order".

9 May 2011, 8:28 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: MODULE_PAYMENT_PAYPALWPP_TRANSACTION_MODE = "order"

In your admin if you simply switch to "Auth Only" instead of "Final Sale", it will send "authorization" as the action, which allows for subsequent capture activities after-the-fact. Both "Authorization" and "Order" allow for capture later.

.
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.

10 May 2011, 4:11 PM
#5
geeker avatar

geeker

New Zenner

Join Date:
Mar 2011
Posts:
52
Plugin Contributions:
0

Re: MODULE_PAYMENT_PAYPALWPP_TRANSACTION_MODE = "order"

Thanks! I'll give that a try.