New Zenner
- Join Date:
- Jan 2013
- Posts:
- 2
- Plugin Contributions:
- 0
Significantly changing information sent to Paypal using Express Checkout
running version: v1.5.1, No upgrades
I've looked extensively in FAQ and forums with no luck on this question.
I am a new Zencart user. I'm running a small delivery company. On Zen cart, I supply the delivery cost of each item, but I don't know the actual cost of the item until I purchase it. I purchase, but the customer usually has a better idea of the item cost than I do. I therefore want the customer to "authorize" funds using Paypal, when I deliver goods, I will explain the total cost in person (goods plus the delivery) and "capture" funds when the customer receives products.
I had the Paypal Standard "button" installed with a "authorization" with a set amount as part of the button, but this forces the customer to need to accomplish two steps. 1. Go to a page with the "button" and go through the Paypal process. 2 Check out. It would be much less confusing to the customer to use the Paypal Express Checkout so that Paypal was part of the check out process.
I have successfully installed Paypal express checkout, but I'm unable to make it pass the information I want.
In short, during checkout I want to pass specific information to Paypal different than supplied by Zen. It would be the same every time (all purchases). For example:
- That this is an "authorization" rather than "sale". (I found and updated this in admin during the paypal Express Checkout install, it is operating correctly)
- The product name sent to Paypal should always be "authorization of funds for requested purchase"
- The price sent to Paypal should always be $250.
I understand the basics of PHP, and I've changed a couple little things to my page. I assumed to accomplish 2 and 3 I would just track down the thing that passed the "total" and "products" to Paypal and supply an amount and description in their place. I assumed it would be in /includes/modules/payment/paypalwpp.php Not so easy to figure out. I have been unable to unravel what variable or where it is being passed.
Where (file and location in file) would I change so that I could change these two things (amount and product) as they are sent to Paypal?
Is this is simple as I think it should be? It's my last step before I take my first Zencart "live". :smile: Thanks.