BUY NOW button: The code is passing all variables but paypal is rejecting them

976497
Contributor
Contributor

Paypal is NOT showing:

  • TOTALamount
  • itemNUMBER
  • TAXamount
  • INVOICEnumber

Paypal IS showing only the itemNAME variable in this code below (separate file - paypal help forum automatic intervention):

 

FULL CODE HERE

 

I have my own separate test file and all variables are visible there after clicking BUY NOW button.

I've checked different values, but they are not visible on paypal (except the itemNAME variable).

 

What could be wrong there?

Login to Me Too
3 REPLIES 3

snowshoe
Frequent Advisor
Frequent Advisor

Yep, your code is a bit messed up.

 

You're mixing some variables that are not intened to work together.

 

<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="business" value="whatever @ whatever.what">
<input type="hidden" name="hosted_button_id" value="XXXIDXXX">

You have the command value for a Buy Now item button but, your also using the "upload" variable.  You cannot mix these variables together.  Then you have the "hosted_button_id" mixed in with the "business" variable.  The "hosted_button_id" is used with code that is created thru the online button creator and is saved to the PayPal Servers.  The "business" variable is used with non-hosted non-encrypted item button code.

 

The question is, do want to simply use the Buy Now or use the "upload" method? 

 

Here's a few tips on the "upload" method and why it has a different function:

The "Upload Method" allows Developers to create third-party shopping carts that are compatible with PayPal and Payments Standard. 

• This method functions differently from the standard PayPal Shopping Cart as you cannot change the item quantities on the PayPal Screens. 

• It's intended design is to pass more than one line item to the PayPal Screens through the use of a single submit button. 

• The standard View Cart Button will not work when using the "Upload Method". 

• There are specific variables intended for this purpose. 


 The "required" button code variables are: 

 "cmd" with a value="_cart"
 "upload" with a value="1"
 item_name_x
 amount_x
 quantity_x


 Where "x" is the number of the item added to the cart starting from 1. 

 

 

 

 

Login to Me Too

976497
Contributor
Contributor

Thank you for reply.

 

DETAILED DESCRIPTION:

I have my own order form.

I want to sell multiple different items.

Each item has different:

- EAN barcode;

- name;

- price;

- quantity;

- VAT amount (in GBP).

Accordint to all details above I need variables for all of them, or I can callect all details in one "INVOICE FEE" variable where I'll need variables like:

- Invoice ID;

- Invoice number;

- Date of order;

Customers have to leave:

- Their address (with private name and surname or just a business name instead);

- Shipping address (with private name and surname or just a business name instead).

 

My questiona are:

What kind of button should I use (or how to fix my code)?

Do I have to use SSL connection to send all required details (or just the button redirecting to paypal is enough)?

Login to Me Too

snowshoe
Frequent Advisor
Frequent Advisor

The easy question to answer first is, no need for SSL.

 

As for the rest, there's multiple approaches you can take.  Suggest checking out this website for some coding ideas:

http://ccaples.com/index.php/basic-scripts

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.