The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Paypal display
Louffeman
post Sep 13 2014, 03:04 AM
Post #1


Member
***

Group: Members
Posts: 69
Joined: 21-June 14
Member No.: 21,123



Hi,
My paypal display has some problems,
I have serverals items, but this Paypal script can only show 1 item( which calculate the quantity, price and amount)
but not another items, it trait only the last item,
do anyone can tell me the cause ?

<form action="https://www.paypal.com/fr/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="mymail@yahoo.fr">
<input type="hidden" name="item_name" value="<?php print $produit['name'] ?>">
<input type="hidden" name="quantity" value="<?php print $produit['quantity'] ?> ">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="amount" value="<?php print $produit['price'] ?>">
<input type="image" src="http://www.paypal.com/fr_FR/i/btn/x-click-but01.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Sep 13 2014, 03:47 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



Do you mean the PHP script doesn't work, or that the resulting HTML form doesn't work when you post it to Paypal?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Louffeman
post Sep 13 2014, 04:34 AM
Post #3


Member
***

Group: Members
Posts: 69
Joined: 21-June 14
Member No.: 21,123



QUOTE(Christian J @ Sep 13 2014, 03:47 AM) *

Do you mean the PHP script doesn't work, or that the resulting HTML form doesn't work when you post it to Paypal?


my script works, but only the last product,
not another products,
for ex. I have 3 products to buy, my script shows the 3 products, price, quantity in my computer,
when I pass it to Paypal,
Paypal calculates only the last one,
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Sep 13 2014, 09:10 AM
Post #4


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



Can Paypal even handle more than one purchase at the time? If not, you must calculate the total price on your own site before submitting it to Paypal.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Louffeman
post Sep 13 2014, 09:52 AM
Post #5


Member
***

Group: Members
Posts: 69
Joined: 21-June 14
Member No.: 21,123



QUOTE(Christian J @ Sep 13 2014, 09:10 AM) *

Can Paypal even handle more than one purchase at the time? If not, you must calculate the total price on your own site before submitting it to Paypal.

yes, I think I calculate the total price on your own site before submitting it to Paypal. thank !
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 24th April 2024 - 10:38 PM