I recently purchased PayPal Assistant and I am having trouble. I can't get it to recognize Item Names when it goes thru the check. I have received email from the Wildcard each time I have used it. I set the script up every way I can think to make it work and no luck, it just sends to the Wildcard only.
I am using the PHP Version. I am using a PayPal shopping cart.
An help would be appreciated. Just let me know what you need from me to help you help me.
Thanks,
jfkz
Well, my first question would be are you sure you named the item exactly (case sensitive) as the item name is in the paypal link?
Yes, I use linux often and I am used to the case sensitive issues involved.
Ok, in your wildcard history, find a sale that you believe you named the item correctly, click the "view raw" link next to it. Please post here what you named the item and what the raw file shows for:
item_name
item_number
I was not sure what all to edit out, If i edited something you need then let me know and I will add it back here. Thanks.
cmd = _notify-validate
mc_gross = 0.01
address_status = confirmed
item_number1 = Cool101
payer_id = XXXXXXXXXXXXX
tax = 0.00
address_street = 123 Main St
payment_date = 16:39:12 Nov 04, 2005 PST
payment_status = Completed
charset = windows-1252
address_zip = 72034
mc_shipping = 0.00
mc_handling = 0.00
first_name = R
mc_fee = 0.01
address_country_code = US
address_name = Mr X
notify_version = 1.9
custom =
payer_status = unverified
business = mrx@conwaycorp.net
address_country = United States
num_cart_items = 1
mc_handling1 = 0.00
address_city = conway
verify_sign = 'bunch of numbers and letters here'
payer_email = mrx@yahoo.com
mc_shipping1 = 0.00
tax1 = 0.00
txn_id = XXXXXXXXXXXXXXXXX
payment_type = instant
last_name = smith
address_state = AR
item_name1 = Cool101
receiver_email = mrx@conwaycorp.net
payment_fee = 0.01
quantity1 = 1
receiver_id = XXXXXXXXXXXXX
txn_type = cart
mc_gross_1 = 0.01
mc_currency = USD
payment_gross = 0.01
Item as listed on the 'index.php?List_Static_Items' page.
Item Name Item Number Price Currency Country Tax Rate Tax Applies To
Cool101 Cool101 0.01 USD US 0.00 ITEMS 0.00
I think the problem here is your paypal shopping cart software. It is not posting a required field "item_name". A quick fix for this would probably be this:
Open functions.php and go to the function called Paypal sale and find this line:
list($id,$name,$item_id,$price,$currency,$country, $tax,$taxto,$shipping,$shiptype) = Get_Static_Item_Num($_POST['item_name']);
CHANGE this line to these:
foreach ($_POST as $item) {
if (preg_matches('/item_name/', $item)) { $iname = $item; }
}
list($id,$name,$item_id,$price,$currency,$country, $tax,$taxto,$shipping,$shiptype) = Get_Static_Item_Num($name);
It did post item_name. It has a 1 after it. I am using Paypal's shopping cart. Here is the area in the code I posted with the name.
last_name = smith
address_state = AR
item_name1 = Cool101
receiver_email = mrx@conwaycorp.net
payment_fee = 0.01
quantity1 = 1
It posted item_name1, not item_name.
I understand it posted item_name1 instead of item_name. What I am telling you is that is the default paypal shopping cart that I am using. If your software won't work with it then how am I to use it?
What is your refund policy?
jfkz
If you are using the shopping cart, then apply the patch I posted above.
I applied the patch. It did not work.
Got this error in the activity log.
<?php exit; ?>
Cannot Connect
jfkz
Leave the patch in, this just means your server temporarily could not connect to Paypal.com.
modiphier
03-05-2006, 07:12 PM
Hi,
I just applied this patch but my question is what if I am using "add to cart" buttons as well as "subscribe buttons" that do not function as "add to cart" buttons. Will this patch choke on the subscribe feature when selected? I realize my clients can not purchase the subscribe items at the same time as the add to cart items but that is ok. I just want to make sure this patch doesn't break something else..
Thanks,