How to add multiple paypal accounts
Posted: Tue Jan 26, 2010 7:21 am
Hi,
I am a novice to php and MySQL, I know html and css and learning php and mysql and it's making me scratch my head a little bit too hard <will need to invest in a hard hat>.
I have a php script that is attached to mysql, it is a restaurant script. But is only has facility to add PayPal as a payment option on one restaurant, so when they check out and pay via paypal it uses one paypal account email. So, if I want to add a second restaurant - that second one will also be using the first one's paypal email address/account.
Below is the paypal code i found in the settings.php.
define('PAYPAL_EMAIL', 'info@youremailaddress.com');
define('PAYPAL_BUTTON', '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="'.PAYPAL_EMAIL.'">
<input type="hidden" name="item_name" value="#{order_id} Food Order">
<input type="hidden" name="amount" value="{total_price}">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="return" value="'.$GLOBALS['mainurl'].'paypal.php">
<input type="hidden" name="cancel_return" value="'.$GLOBALS['mainurl'].'">
</form>');
Now, if I add another restaurant, what do I need to do in order each restaurant can use it's own individual paypal email address?
Kind regards,
Bigfoot_3000
I am a novice to php and MySQL, I know html and css and learning php and mysql and it's making me scratch my head a little bit too hard <will need to invest in a hard hat>.
I have a php script that is attached to mysql, it is a restaurant script. But is only has facility to add PayPal as a payment option on one restaurant, so when they check out and pay via paypal it uses one paypal account email. So, if I want to add a second restaurant - that second one will also be using the first one's paypal email address/account.
Below is the paypal code i found in the settings.php.
define('PAYPAL_EMAIL', 'info@youremailaddress.com');
define('PAYPAL_BUTTON', '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="'.PAYPAL_EMAIL.'">
<input type="hidden" name="item_name" value="#{order_id} Food Order">
<input type="hidden" name="amount" value="{total_price}">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="return" value="'.$GLOBALS['mainurl'].'paypal.php">
<input type="hidden" name="cancel_return" value="'.$GLOBALS['mainurl'].'">
</form>');
Now, if I add another restaurant, what do I need to do in order each restaurant can use it's own individual paypal email address?
Kind regards,
Bigfoot_3000