Thursday, 07 October 2010 12:40

Recurring Payments and PayPal using RSForm Pro

Written by 

This is a follow-up to a previous post which demonstrates how to connect RSForm Pro to PayPal using a custom amount field.  This takes it one step further, and connects the custom amount field to a recurring payment plan (e.g. monthly subscription).


if (isset($_POST['form']['Amount']))
{
$business = ' This e-mail address is being protected from spambots. You need JavaScript enabled to view it ';
$item_name = 'Recurring Payment from '.$_POST['form']['FullName'];
$amount = $_POST['form']['Amount'];
header('Location: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick-subscriptions&business='.$business.'&item_name=Recurring%20Payment&a3='.$amount.'&p3=1&t3=M&currency_code=USD');
exit();
}


In the header () line above, make note of the "p3" and "t3" settings in the URL:
p3=periods (e.g. 1)
t3=time (e.g. month)

Read 4481 times Last modified on Thursday, 07 October 2010 12:45

Leave a comment

Make sure you enter the (*) required information where indicated.
Basic HTML code is allowed.

Copyright © 2005-2018 Covington Creations, LLC | Legal