HTML Variables: order shipping, item notes, business ID

JocularGargoyle
Contributor
Contributor

My site is using a custom shopping cart, so I'm using the HTML variables explained on this documentation page. It's mostly going well, but I have a few questions:

  1. Is it possible to use the business ID rather than an email associated with the business? (Not a huge deal, I just don't like having email addresses out there for scrapers and such.)
  2. Is it possible to pass notes for an item? For example, someone orders item_name "T-shirt" and has specified in the shopping cart (saved as a string) that they want it in size small, the color red. Is there a way to pass that? I don't want them to have to make a choice at PayPal which is what the on_/os_ variables appear to be, or am I misunderstanding them?
  3. Let's say shipping for all orders is $5 no matter what. Can you set shipping for an entire order? It appears you can override tax, but I don't see an option for shipping. The way I have it set now is to set shipping_1 = 5.00 and no shipping for any subsequent items, but that feels kind of inaccurate.

Thank you!

Login to Me Too
7 REPLIES 7

angelleye
Advisor
Advisor

1.  Yes, you can use the business/merchant account ID in place of the email address in the business parameter.

 

2.  If you set the name/value pair it should carry over like you're wanting.  Just include the one value that was actually selected on your end and see if that does it for you.

 

3.  mc_shipping should be the parameter for order shipping if I remember correctly.  Give that a try.

 

 

Angell EYE - www.angelleye.com
PayPal Partner and Certified Developer - Kudos are Greatly Appreciated!
Login to Me Too

JocularGargoyle
Contributor
Contributor

Thank you, AngelEye! Your answer to #2 worked perfectly.

When I put the merchant ID in place of the email I get the following error after clicking the checkout button: "Things don't appear to be working at the moment. Please try again later." The code I'm using is as follows (with the actual ID, obviously):

<input type="hidden" name="business" value="MERCHANTID123">

The variable mc_shipping doesn't appear to do anything on the payment side. I searched Google for it and found document reference here but it looks like it's something that's returned, not something that's sent. I also found some references to it as a form variable but all the posts are much older. Could that have been deprecated?

Thanks!

Login to Me Too

angelleye
Advisor
Advisor

Are you sure you're using the correct value for merchant ID?  As shown in the Standard Variable Reference:

 

business = Your PayPal ID or an email address associated with your PayPal account.  

 

Angell EYE - www.angelleye.com
PayPal Partner and Certified Developer - Kudos are Greatly Appreciated!
Login to Me Too

angelleye
Advisor
Advisor

For shipping just use shipping instead of shipping_1 and pass the entire shipping amount for the cart.  I think that'll give you what you're after.

 

 

Angell EYE - www.angelleye.com
PayPal Partner and Certified Developer - Kudos are Greatly Appreciated!
Login to Me Too

JocularGargoyle
Contributor
Contributor

I tried passing the "shipping" value and it's not coming through either.

 

I'm passing the following:

<input type="hiddenname="shippingvalue="4.95">

 

PayPal is showing this:

6077.jpg

Login to Me Too

JocularGargoyle
Contributor
Contributor

Neither mc_shipping nor shipping appear to be coming though. This is what I get when I use mc_shipping:

 Untitled-2.jpg

Any other suggestions?

 

Login to Me Too

JocularGargoyle
Contributor
Contributor

I'm using this number from the profile page, which looks to be the one referenced... or am I misreading?

 

merchant.jpg

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.