• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Paypal custom donations

Paypal custom donations 10 years 10 months ago #27987

Hi

I'm building a donation form that the donators should chose contributions value.

The RSForm! Paypal plugin has no such option. Someone has done that with html variables for paypal?
The administrator has disabled public write access.

Paypal custom donations 10 years 10 months ago #27991

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
The paypal plugin comes by default with a donations feature that allows the user to type the desired value in an input box. If you want to create a dropdown field with predefined amounts, you can use the multiple product field. More information about the plugin can be found at the following location:http://www.rsjoomla.com/support/documentation/view-article/361-rsformpro-paypal-plugin.html
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.

Paypal custom donations 10 years 10 months ago #28003

With multiple products donations would happen just once. In my case, the donator should set a recurring payment from a drop down. I'm trying with this script, but I have not reached some way to get p3 and t3 from from fields.

if($_POST[0] != '0')
{
$business = ' This e-mail address is being protected from spambots. You need JavaScript enabled to view it ';
$item_name = str_replace($replace, $with, '{subscription:text}');
$currency_code = 'USD';
$a3 = $_POST[0];
$p3 = '01';
$t3 = 'M';
$src = '1';
$no_note = '1';
$notify_url = JURI::root().'index.php?option=com_rsform&formId='.$formId.'&submission='.$SubmissionId;
$url= 'www.paypal.com/cgi-bin/webscr?cmd=_xclic...siness).'&item_name='
.urlencode($item_name).'¤cy_code='.urlencode($currency_code).'&a3='.urlencode($a3).'&p3='.urlencode($p3).'&t3='
.urlencode($t3).'&src='.urlencode($src).'&no_note='.urlencode($no_note).'¬ify_url='.urlencode($notify_url);
$app = JFactory::getApplication();
$app->redirect($url);
exit();
}
Last Edit: 10 years 10 months ago by fabioventurini.
The administrator has disabled public write access.

Paypal custom donations 10 years 10 months ago #28018

It is kind of solved.

In drop down field I set:

01 | Month
03 | Quarter
06 | Semester
12 | Year

And p3 have got the correct value by post method. It is a little strange for donator not to see a value "each year" but "each 12 months". but it works fine.

Now, when i call a3 (value) in post method from a text field or even from donation field from payment plugin, paypal system do not receive the correct number. e.g., if I type 3, 30, 300 or even 30000000, paypal shows a donation of USD$ 3.00.

Any clue why?
The administrator has disabled public write access.

Paypal custom donations 10 years 4 months ago #29915

  • phaedrap
  • phaedrap's Avatar
  • OFFLINE
  • Fresh Boarder
  • Firmitas, Utilitas et Venustas
  • Posts: 3
Hi I had the same problem with PayPal only showing the first number of the total and I figured it out.

Remove the [0] from the amount $a3
$a3 = $_POST[0];

change to
$a3 = $_POST['form']['Total'];

'Total' is the name of my FieldName that has the Total amount calculated

B)
Code for Life
Last Edit: 10 years 4 months ago by phaedrap.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!