This modification does not handle the donations as actual "donations" - they are billed as regular "payment".
Here's how you can change that:
Edit the xml (before installation) or go to
ACP>Plugins & Products>Plugin Manager>Product : VSa - PayPal Donate>VSa - PayPal Donate - Ext (if you already have it installed) and:
1. Locate:
Code:
$vsapp_ppurl = 'https://www.paypal.com/cgi-bin/webscr?cmd=_xclick';
2. Replace it with:
Code:
$vsapp_ppurl = 'https://www.paypal.com/cgi-bin/webscr?cmd=_donations';
PayPal doesn't allow creating subscription links for donations. There are two ways of dealing with that:
1. We can remove the "amount" from the donation link which will allow people to manually add said amount on the PayPal's donation page. If you open PayPal's donation page without a set amount, you will be able to select "Make This Recurring (Monthly)"*, which will run until the Donator clicks unsubscribe in his PayPal account.
*Seems only possible when viewing PayPal with US, GB or AU locale selected.
Unfortunately, I can't readjust the modification to make this option work perfectly, but here is the bare minimum:
1.1. Locate:
Code:
$vsapp_ppurl = 'https://www.paypal.com/cgi-bin/webscr?cmd=_xclick-subscriptions';
$vsapp_ppurl .= '&a3='.$vsapp_get_amount[0];
$vsapp_ppurl .= '&p3='.$vsapp_get_amount[1];
$vsapp_ppurl .= '&t3=M';
$vsapp_ppurl .= '&no_note=1';
$vsapp_ppurl .= '&sra=1';
$vsapp_ppurl .= '&src=1';
$vsapp_ppurl .= '&srt='.$vsapp_get_amount[1];
1.2. Replace it with:
Code:
$vsapp_ppurl = 'https://www.paypal.com/cgi-bin/webscr?cmd=_donations';
1.3. Locate:
Code:
$vsapp_ppurl .= '&tax=0';
$vsapp_ppurl .= '&shipping=0';
$vsapp_ppurl .= '&no_shipping=1';
1.4. Replace it with:
Code:
$vsapp_ppurl .= '&lc=US'; //Either US, GB or AU will work.
1.5. Find the vbphrase named
vsapaypal_for_x_months and edit it to say:
Code:
each month (check the box on PayPal)
Done.
2. Use the original payment system for subscriptions.
Lemme explain how the subscription variables work so that you know how to best edit them for yourself:
a3 - the amount
p3 - duration of the subscription
t3 - unit of the duration - D, W, M, Y (Days, Weeks, Months, Years)
src - whether the payment is supposed to be recurring (0 - no, 1 - yes)
str - how many times should the payment recur (1-52)
sra - if the recurring payment fails, should PayPal try two more times before cancelling the subscription (0 - no, 1 - yes)
no_note - whether to ask for a note for the recurring payment (1 - no <-- always choose that for subscriptions)
So, if you locate:
Code:
$vsapp_ppurl .= '&p3='.$vsapp_get_amount[1];
And change that to:
Code:
$vsapp_ppurl .= '&p3=1';
Then the subscription will be 1 month long, and will repeat (the payment) the number of times the used chose from the dropdown box.
~~
It's probably possible to edit the mod to use a custom length of the subscription too, but I don't have a business PayPal account so I can't test that. (Payment Subscriptions are only available for business accounts).