One of delivery charge for paypal shopping cart - paypal

Is there a way of setting a one of delivery charge for multiple items using the paypal shopping cart. I have a website that sells postcards for the small local museum but I can only get the delivery charge added on for every different item, or not at all. Delivery is 65p, So if someone buys;
6 x "a" postcard
there is one delivery charge 65p.
The problem is that when someone orders;
1 x "a" postcard
1 x "b" postcard
1 x "c" postcard
1 x "d" postcard
1 x "e" postcard
1 x "f" postcard
The delivery charge is £3.90 which is way too much for 6 postcards.
Is there a way of setting the delivery charge to 65p for any number of variations?
Thanks anyone who can help.

Ok, Worked it out! I think I am just going to have to base the shipping on a total order value and not specify it at all in my coding... Heres what I did in case anyone else finds this with the same problem.
Login to Paypal account.
Click on the "Profile" tab near the top of the page and under "Selling Preferences" click on the "Shipping Calculations" link and follow the steps to set up for instance £0.01 - £9.99 delivery £1.15, £10.00-£14.99 delivery £1.95 etc etc etc.
Thanks for your help everyone!!

I think PayPal has a value called "shipping_1" and "shipping_2", depending on the platforn you just need to override these values, we used something like this for our PHP form
<input type="hidden" name="shipping_1" value="<?php echo $order->delivery - $order->discount_delivery ?>">

This link says you can do this by setting
Setting the Shipping Charge for the Entire Cart
Use the shipping variable without
additional shipping2 variables to
specify the shipping charge for the
entire transaction. The value of
shipping is used for the shipping
charges, regardless of the merchant’s
profile-based shipping rates and rate
basis.
Also see https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=brc/three_common_shipping_issues

Related

Are there any changes to IPN params with Enhanced Recurring Payments

I'm using Paypal Website Payments Standard to accept recurring payments, but thinking of upgrading to "Enhanced Recurring Payments" to accept recurring payments from people without paypal accounts. I want to know, what if any are the changes to the APIs? Specifically, do the IPN messages differ at all? I can't find any information on how Enhanced Recurring Payments changes it, if at all.
If anybody knows, or can post a sample IPN for an Enhanced Recurring Payment without a PayPal account, that would be great!
There is a difference of only one variable between the IPN for PayPal Payments and the Credit card Payments . For the credit IPN you will receive an extra variable "receipt_id" in addition to the other variables . I have posted the two sample IPN's below :
ERP IPN when somebody pays via credit card option
mc_gross=1.00 &protection_eligibility=Eligible &address_status=confirmed &payer_id=ZQSC4
4KE3MPNE &address_street=3710 Spring Haven Trail ada &payment_date=07:49:47 Sep 29, 2014 PDT
&payment_status=Completed &charset=UTF-8 &address_zip=07054 &first_name=Eshan &
option_selection1=Small &option_selection2=Red &option_selection3=Value for the text field &
amp;mc_fee=0.33 &address_country_code=US &address_name=Eshan agag &notify_version=3.8 &a
mp;subscr_id=I-KJR1N7DVTSFV &custom=THIS IS CUSTOM VARIABLE FOR SUBSCRIPTION &payer_status=u
nverified &business=XXXXXXXXX &address_country=United States &address_city=Pa
rsippany &verify_sign=Aw6X5vyHflgdAgaJGWvPoCJ8QoI9AGpk50cgjQn5vFFAb.keQURphbSq &payer_email=
jain#jainwain.com &option_name1=First Drop Down &option_name2=Second Drop Down &option_n
ame3=This is Text field &contact_phone=434-343-3434 &txn_id=9E162447RW023401J &payment_t
ype=instant &last_name=agag &address_state=NJ &receiver_email=XXXXXXXXXX &
payment_fee=0.33 &receiver_id=XXXXXXXXX &txn_type=subscr_payment &item_name=Passing
custom field in subs button to see if it comes in IPN and show up in Account &mc_currency=USD &a
mp;residence_country=US &test_ipn=1 & **receipt_id=3610-4109-0310-2116** &transaction_subject
=Passing custom field in subs button to see if it comes in IPN and show up in Account &payment_g
ross=1.00 &ipn_track_id=42d902b155b6d
IPN when someone pays via PayPal
mc_gross=1.00 &invoice= 12345678 &protection_eligibility=Eligible &address_status=confir
med &payer_id=XXXXXXXXXX &address_street=cxas asa &payment_date=09:40:46 Sep 29, 2014
PDT &payment_status=Completed &charset=UTF-8 &address_zip=95616 &first_name=Eshan P
ersonal Test &option_selection1=Small &option_selection2=Red &option_selection3=Using th
e text field as the hidden one and also passed invoice id &mc_fee=0.33 &address_country_code
=US &address_name=Eshan Personal Test Account &notify_version=3.8 &subscr_id=I-79KEGCFRB
8V6 &custom=THIS IS CUSTOM VARIABLE FOR SUBSCRIPTION &payer_status=verified &business=XXXXXXX
&address_country=United States &address_city=FL &verify_sign=ABoC7zeo
JKOS8-FgzxlPH0pKFIpkABi1td4dId5Vndd1boMDXpvdWXfX &payer_email=XXXXXXXXX &option_n
ame1=First Drop Down &option_name2=Second Drop Down &option_name3=This is Text field &co
ntact_phone=408-767-7151 &txn_id=5LX310552A647342M &payment_type=instant &last_name=Acco
unt &address_state=FL &receiver_email=XXXXXXX &payment_fee=0.33 &receiv
er_id=XXXXXXX &txn_type=subscr_payment &item_name=Passing custom field in subs button
to see if it comes in IPN and show up in Account &mc_currency=USD &residence_country=US &
;test_ipn=1 &transaction_subject=Passing custom field in subs button to see if it comes in IPN a
nd show up in Account &payment_gross=1.00 &ipn_track_id=80ffac6da5284
I have attached Screen Shot also :

Can PayPal's CUSTOM variable be used on eBay?

I program with PHP and I'm familiar with getting data from PayPal's IPN. I need to send custom data to ebay and get it back when payment is made. For example, if sold 1 Widget on ebay and that widget has a stock number of 12345A, I receive data back from PayPal. I get things like customer's name, address, item name, etc. But, unless I include that stock number in my title, I don't see any way to get that data back from PayPal. I don't want to use ebay's limited title space for including my stock numbers. I realize I could do it if I had another database to store ebay's item numbers and cross reference them with my stock numbers, but I don't want to do that.
I have noticed that when data comes back from PayPal after an ebay sale, it includes the custom variable and that variable has a large number in assigned to it. I have no idea what that is. I've also tried using ebay's custom label feature that's found in Turbo Lister and Selling Manager Pro. I was hoping that would be sent back in PayPal's custom variable, but no luck. Any ideas?
As you've discovered, it looks like it's some internal id number uniquely identifying each eBay order. You can probably forget about specifying a value for this field as it isn't documented anywhere.
The best solution to your problem is to use the eBay API. GetSingleItem will return information about an item given the item id.
The ItemSpecifics list will contain any item specific data that the seller has entered about the product. In my case, I added a custom field called SKU to the eBay item. Just add itemspecifics to your include selector. The call can be executed with a GET request:
http://open.api.ebay.com/shopping?callname=GetSingleItem&IncludeSelector=ItemSpecifics&appid=YOURAPPID=515&ItemID=ITEMIDOFINTEREST
What you get back will contain those custom fields you added to your item:
..
<ItemSpecifics>
<NameValueList>
<Name>MPN</Name>
<Value>MyPartModelA</Value>
</NameValueList>
<NameValueList>
<Name>SKU</Name>
<Value>123-456</Value>
</NameValueList>
</ItemSpecifics>
..

Returning from PayPal to the page that called it

I am hoping someone can help me with the following. I have a Buy Now button on a child dialog. Buy Now button displays PayPal page correctly. Now I am trying to do I cannot find info on it. I would like PayPal to return to the child dialog with a variable that will indicate success (payment made) or failure (payment cancelled by buyer). Is this possible?
The flow works like this:
Member logs in to my site
Member makes purchase via paypal
Member is added to a raffle prize.
The child window (dialog) remains open as PayPal is opened in another page. Regardless of whether the payment is successful or cancelled/ failed I would like to return to the child window with a value indicating the result of the payment. If the result is a success then some code is performed. If not then nothing is done and the child window remains open.
Bruno
You need to add a return url input <INPUT TYPE="hidden" NAME="return" value="URLspecificToThisTransaction">, look here https://cms.paypal.com/uk/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_formbasics under Setting The Return URL on Individual Transaction heading
You also need Instant Payment Notification – notify_url
Instant Payment Notification comprises three parts:
Someone pays you.
PayPal POSTs FORM variables to a URL you specify that runs a program to process the variables.
You validate the notification.
look here https://www.paypalobjects.com/webstatic/en_US/developer/docs/pdf/ipnguide.pdf

Line items on the paypal express checkout using Paypal Payments Advanced (and the NVP API)

I'm using Paypal Payments Advanced with the hosted checkout page (iframe). This gives customers an option to click the "pay with paypal"(button) which is paypal's Express Checkout or pay using a credit card. Everything seems to be working great, except I am unsuccessful at making individual line items show when passing parameters using the NVP API. Instead I only see a total amount (See picture below).
And I also believe this means the line items are not being sent at all (even when I pay using a credit card) since I don't see any line items when I log into paypal to view the details of the transactions.
Here are the NVP parameters I'm currently using:
"PARTNER" => "PayPal",
"VENDOR" => "company_here",
"USER" => "user_here",
"PWD" => "password_here",
"TRXTYPE" => "S",
"AMT" => "2.16",
"ITEMAMT" => "2.00",
"TAXAMT" => "0.16",
"L_NAME0" => "Test Product 1",
"L_DESC0" => "Test Product Description",
"L_AMT0" => "1.00",
"L_TAXAMT0"=> "0.08",
"L_QTY0" => "1",
"L_NAME1" => "Test Product 2",
"L_DESC1" => "Test Product 2 description",
"L_AMT1" => "1.00",
"L_TAXAMT1"=> "0.08",
"L_QTY1" => "1",
"CUSTOM" => "Custom Text Here",
"INVNUM" => "Invoice12345",
"CURRENCY" => "USD",
"CREATESECURETOKEN" => "Y",
"SECURETOKENID" => "token_here",
Any ideas what I'm doing wrong?
According to this small section in the Express Checkout for Payflow Pro document (page 19):
To enable line-item support in reference transactions, which includes the parameters below,
you must contact Merchant Technical Support at http://www.paypal.com/mts:
L_NAMEn
L_DESCn
L_COSTn
L_TAXAMTn
L_QTYn
So I called PayPal tech support and they turned on line item support in my paypal manager account. However line-items still weren't being sent in the transaction. So I called them again, and they informed me that, for payflow, the line-items won't show in the express checkout and you can't view them in the transaction details in your paypal account either. They are pretty much ignored. They are actually used for certain processors, but since my processor is PayPal, they weren't being used for anything.
The idea is that (say you have a shopping cart) you show a breakdown of line-items at the payment screen, just before a user pays (perhaps same screen where you have the payments advanced iframe, a.k.a. hosted checkout page). Then if you ever want to look up what line items were purchased for a specific invoice, you need to make sure you saved this on your web server, not paypal. Then you can look up the invoice number on paypal and compare with the order details stored in your own database.
I stumbled across your post after running into a similar situation. I also use paypal advanced on two of my websites. One website has been processing orders through the iFrame and has successfully managed to achieve line item support while the other one was having difficulties. I got the same run around with paypal support about how line item for certain PP advanced transactions wasn't supported...But this is false. After talking with all different levels of merchant technical support, both sites now support line item details for all the transaction types available through PP advanced.
We use shiprush, so pulling orders directly from PP is much easier than trying to link shiprush and the shopping cart..

How to get item price of the return URL Sandbox PayPal

I get the following return URL of SandBox PaylPal:
http://mysite.com/success.aspx?tx=9A255742LJ154054X&st=Pending&amt=74.00&cc=USD&cm=&item_number=Product%201
So it sends the total value amt=74.00 and not the item price which is $59.00.
So my question is how to get the item price?
Thank you!
You need to make sure you're including itemized details in the button code you're using. PayPal provides this list of standard variables you can use in your buttons, and you may want to refer directly to the shopping cart section.