I used the following fields:
- Name
- Invoice number (This is not required)
- Amount
- Submit
Here is the script which is called on form process:
if (isset($_POST['form']['Amount']))
{
$business = 'your@emailhere.com';
$item_name = 'Payment on Invoice Number'.$_POST['form']['InvoiceNumber'];
$currency_code = 'USD';
$amount = $_POST['form']['Amount'];
header('Location: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business='.$business.'&item_name='.$item_name.'¤cy_code='.$currency_code.'&amount='.$amount);
exit();
}
EDIT: I realized that the email notifications were not sending using this method. If you also want the email notifications to go out, move this PHP code to the "call AFTER form process" box in RSForm.
BONUS READING: Connecting RSForm and Paypal using recurring payments