hello,
i am going to add paypal to my site so that users can pay one another for products. i do not sell anything on my site; however, i allow users to post and sell products. so, i've talked with paypal's tech staff a few times to get as much info as i could get, but they were fairly limited in their advice.
since i am not the one selling products or receiving payment, does anyone know how i can code paypal to work properly for my purpose? the paypal staff said it is possible to create a dynamic environment where the seller's email is sent as the main variable to paypal when they post the product, description, and price...
any suggestions and help to get me going in right direction would be very helpful.
thank you!
adding paypal
Moderator: General Moderators
-
MasterBeta
- Forum Commoner
- Posts: 38
- Joined: Thu Apr 02, 2009 4:35 am
- Location: Lincoln, NE
Re: adding paypal
Just plug each sellers PayPal email address into the html form.
Code: Select all
<?php
$sellerEmail = "test@address.com"; // Sellers email address
?>
<form method="post" action="https://www.paypal.com/cgi-bin/webscr">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="<?php echo "$sellerEmail"; ?>">
<input type="hidden" name="item_name" value="Baseball Hat">
<input type="hidden" name="item_number" value="123">
<input type="hidden" name="amount" value="5.95">
<input type="hidden" name="shipping" value="1.00">
<input type="hidden" name="shipping2" value="0.50">
<input type="hidden" name="handling" value="2.00">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="return" value="">
<input type="hidden" name="undefined_quantity" value="1">
<input type="image" src="http://images.paypal.com/en_US/i/btn/x-click-but23.gif" border="0" name="submit" width="68" height="23" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
-
ninethousandfeet
- Forum Contributor
- Posts: 130
- Joined: Tue Mar 10, 2009 4:56 pm
Re: adding paypal
that makes sense... what do you think about how i should get to the 'buy now' section? i've been trying to come up with a way that makes sense, maybe i'm over thinking here. since i am not selling anything, i do not have 'items' on my site. so the seller posts more of a broad post like i can sell anything from Store ABC. well the buyer talks with them and decides they want a TV xyz from Store ABC. do i have the seller enter a form on my site that goes to a new table showing the exact item TV xyz, price, shipping? should i have the seller enter this info in a form that goes to paypal? can i even do that?
my understanding is that the form you provided to me is assuming the item is already determined and posted on paypal, right? i can't have the buyer enter the item info, price, product because they could enter completely false(i.e. they could enter TV xyz for $1)...
any ideas?
my understanding is that the form you provided to me is assuming the item is already determined and posted on paypal, right? i can't have the buyer enter the item info, price, product because they could enter completely false(i.e. they could enter TV xyz for $1)...
any ideas?