• 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: Multiple submit buttons - Paypal and other

Multiple submit buttons - Paypal and other 13 years 10 months ago #13848

Hi,
I'm creating a form where I wish the user to have the option to pay by Paypal or by another (offline) method. Using the Paypal plugin the submit button works as the Paypal button, but if I use this there is then no other payment option - can anyone suggest a way to acheive this?
Regards,
Roger
The administrator has disabled public write access.

Re:Multiple submit buttons - Paypal and other 13 years 10 months ago #13959

In case anyone else has a similar requirement, this is how I overcame the problem (using the custom script example for inspiration).

I created a radio group called "PaymentMethod" with 2 items - "Paypal" & "Other".

I then added the following script after the form has been processed -
if($_POST == 'Paypal')
{
$business = ' This e-mail address is being protected from spambots. You need JavaScript enabled to view it ';
$item_name = 'Fee for services';
$currency_code = 'GBP';
$amount = '25.00';
$return = 'mydomain.com';
header('Location: www.paypal.com/cgi-bin/webscr?cmd=_xclic...usiness.'&item_name='.

$item_name.'¤cy_code='.$currency_code.'&amount='.$amount.'&return='.$return); exit();
}
The administrator has disabled public write access.

Re:Multiple submit buttons - Paypal and other 13 years 8 months ago #14365

Wow, nice, was looking for same thing... but where do you paste it?
in the rsfppaypal.php and on what line?
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!