I'm trying to get IPN tax working correctly....I have read thru the thread and didn't see anything about this.
I find this in the photo_shop_checkout.php
if ($CONFIG['photo_shop_tax'] != '') {
photoshop_add_field($form_fields, 'tax_cart', $CONFIG['photo_shop_tax']*$picture_total);
}
There is however no config option by that name...there is one by photo_shop_vat.
if ($CONFIG['photo_shop_vat'] != '') {
photoshop_add_field($form_fields, 'tax_cart', $CONFIG['photo_shop_vat']*$picture_total);
}
If I change the code to use it instead I get a IPN failure:
Someone attempted a sale using a manipulated URL\n\n
The following data was received from PayPal:
from newbuyer@mysandbox.com on
Details:
mc_gross: 20.00
invoice: 7483
protection_eligibility: Eligible
address_status: confirmed
item_number1:
payer_id: 2EHZEDE37AZ28
tax: 14.00
address_street: 1st Street
payment_date: 14:39:40 Feb 16, 2010 PST
payment_status: Completed
charset: windows-1252
address_zip: 29072
mc_shipping: 0.00
mc_handling: 4.00
first_name: Gene
mc_fee: 0.88
address_country_code: US
address_name: Gene Young
notify_version: 2.9
custom:
payer_status: verified
business: seller@mysandbox.com
address_country: United States
num_cart_items: 1
mc_handling1: 0.00
address_city: Lexington
verify_sign: AFcWxV21C7fd0v3bYYYRCpSSRl31ARmidR0BfwYRD-cuGzSAXhNkYAt9
payer_email: newbuyer@mysandbox.com
mc_shipping1: 0.00
txn_id: 17L80790T91270610
payment_type: instant
last_name: Young
address_state: SC
item_name1: : Title: Flower - ID: 31
receiver_email: seller@mysandbox.com
payment_fee: 0.88
quantity1: 1
receiver_id: FWCFEHPCDF4F8
txn_type: cart
mc_gross_1: 2.00
mc_currency: USD
residence_country: US
test_ipn: 1
transaction_subject: Shopping Cart
payment_gross: 20.00
Note the value is set to 7....note the code generates 100x ...so I changed it this way and still I get a failed IPN.
if ($CONFIG['photo_shop_vat'] != '') {
photoshop_add_field($form_fields, 'tax_cart', $CONFIG['photo_shop_vat']*$picture_total/100);
}
If I change the config vat to 0 I get a successful IPN.
I have been digging into why but wonder if someone else already fixed it....?
Gene
BTW I have Paypal Express Checkout and Google Checkout working without requiring user registration.
I hope to contribute it in the future.