Unfortunately, the username and password you have entered do not match!

Registration

Unfortunately, this username is already taken!

Unfortunately, this e-mail address is already used!

Please retype the verification code.

All fields are required

3 ways to create a small Joomla! shopping cart with RSForm!Pro and PayPal

30 Apr 2010

3 ways to create a small Joomla! shopping cart with RSForm!Pro and PayPal

Posted by. Mihaela This article was posted in RSForm!Pro Tagged with joomla extensions , forms , plugins , PayPal , shopping cart
HomePrintE-mail

First of all, I will share with you a gorgeous recipe, one that you can apply for a variety of Joomla! sites.

Let's see the ingredients: RSForm!Pro integration with PayPal

  • we take 1 Joomla! form created with RSForm!Pro
  • the RSForm!Pro PayPal Plugin
  • like other successfully recipes, one secret ingredient that will add that all important touch to the final result, custom script example that enhances the flexibility and allows you to use quantity, products and donations.

------------------------------------------------------------------------------

Result = the perfect symbiosis between the most popular Joomla! form and the most popular payment processor.

What we want to explain

Enough talking...briefly, this article will explain how can you turn your Joomla! site into a small shopping cart, when to use the RSForm!Pro PayPal Plugin and when to use the custom script so you can decide yourself which one suites best for your project.

This article is part 1 of a 3 part series:

  • in the first part, we will talk about the RSForm!Pro PayPal Plugin with the Single Products field
  • the second article will have information and screenshots about the RSForm!Pro PayPal Plugin with the Multiple Products field and the video tutorial How to add PayPal functionality to your Joomla! forms using the RSForm!Pro PayPal Plugin
  • the last article will explain the custom script available on the forum with some examples.


Before we start, let's first answer a basic question:

When to use the RSForm!Pro PayPal Plugin and when to use the custom script?


The RSForm!Pro PayPal plugin allows you to add to your forms PayPal fields for selling products trough the payment processor. It can be used successfully for selling one or multiple products with a fixed amount.

The custom script extends the form flexibility and can be adapted for different kinds of scenarios, e.g. when you want to specify the products quantity, for products that don't have a fixed amount (calculated value) or donations.

1. The RSForm!Pro PayPal Plugin:


Download:

The RSForm!Pro PayPal plugin allows you to add PayPal functionality to your Joomla! forms, it integrates with any form created with RSForm!Pro, doesn't require a special setup in the PayPal account and can be downloaded free (requires an active license of RSForm!Pro) from View my downloads -> RSForm!Pro files > Plugins .

Installation: The plugin installs like any other Joomla! plugin/module/component by uploading the file in the backend administrator panel. (Head to Extensions -> Install/Uninstall -> Upload Package File).

Configuration: After downloading and installing the plugin, you must configure it from Components-> RSForm!Pro -> Configuration so it can work with PayPal.

RSForm!Pro PayPal plugin Configuration

You will see a new tab called PayPal, near the Settings tab.
Here you can set the seller's PayPal account, the Live Mode (set it to "No" when you want to test the plugin with PayPal Sandbox and to "Yes" when you want to enable your PayPal transactions), the Currency which usually is EUR or USD, but you can find other PayPal currency codes on the developer's page, the Return Url - the page where the user is redirected after making a payment, the Thousands and the Decimal Separator.

How to add PayPal functionality

After Configuration, in the backend panel head to Components -> RSForm!Pro -> Manage Forms and select the form for which you want to add PayPal functionality.

In the bottom of the page you will see 3 new PayPal fields (besides the usual components like Textbox, Textarea, Dropdown or Checkbox): Single Product, Multiple Products and Total.

We will treat each field separately, so you can better understand how to use them.

alt

  • A Total field that calculates the total amount must be added at the end of the form, whether you will be using the Single Product or the Multiple Products field.
  • The Multiple Products can be used multiple times, but the Single Product and the Multiple Products fields can not be used simultaneously.

1.1 The RSForm!Pro PayPal Plugin with a Single Product field

The Single Product field is used for selling one product, fixed donations or attachments.

Let's see an example of using the plugin with a Single Product field and a Total field:

A non-profit organization site wants to collect donations trough their Joomla! form, with a pre-established amount of USD 10. To achieve this, we will add a Single Product PayPal field and a Total field to the form created with RSForm!Pro.

RSForm!Pro PayPal plugin - single product and total fields

Backend Preview:

This is how the form looks in the backend after adding the above PayPal fields:

the custom PayPal form for Joomla! created with RSForm!Pro - backend view

Frontend Preview:

And this is how the form looks in the frontend after adding the Single Product field. Notice that this field isn't displayed in the frontend because we have selected "not to show in frontend" option.

the custom PayPal form for Joomla! created with RSForm!Pro - frontend view

alt

A PayPal button won't be necessary anymore, because the Submit Button will handle its function. After clicking the Submit Button, the user will be redirected to the PayPal Page.

The transaction page:

The transaction page lists the product's information: its description, price, quantity and the total amount that will be withdrawn from the user's PayPal account.

The PayPal transaction page


Verify the payment status:

To verify the payment status in the backend Joomla! panel, head to Components -> RSForm!Pro -> Manage Submissions. The status will be automatically changed to Accepted after PayPal sends a notification to your script. If the payment is refused, the status changes after 12 hours into Denied.

Verify the payment status directly from the RSForm!Pro backend panel

Next article will explain how to use the Multiple Products field within the RSForm!Pro PayPal Plugin. We have prepared a video tutorial and an example of using the Multiple Products field with a checkbox and a dropdown view.

So, see you next time. If you have questions, please leave them in the comments.

Related articles:



Gravatar
T. A. S. Hamid (02.05.2010 (07:48:00))
Very nice Yes No Many Thanks.. This is must needed. I really need to use this methods and the multiple one.;)Quote
na
Gravatar
Nathan Covington (09.05.2010 (18:48:04))
How to do custom amount field instead? Yes No Hi, Is it possible to use this PayPal / RSForm plugin to let people specify a custom amount (instead of hard-coding prices into the form)?Quote
Gravatar
Alexandru Plapana (11.05.2010 (03:11:29))
@ T.A.S Hamid Yes No Yes, this is possible, but currently not via the RSForm!Pro PayPal plugin. The third part of the tutorial will address this exact issue. Basically, to offer you a preview at will come, it will use a script, similar to the one posted on the forum by one of my colleagues: http://www.rsjoomla.com/customer-support/forum/37-rsform-pro/4877-rsform-pro-paypal-integration.htmlQuote
rsjoomla.com
Gravatar
Rob Farrell (28.06.2010 (10:17:44))
paypal install Yes No I have installed the rsformpro mod and i am now tring to indstall the paypal plugin download from your site to intergrate with it but I keep getting the error of:



* JInstaller::ins tall: SQL Error. DB function failed with error number 1146
Table 'web172-a-joo-160.jos_rsform_comp onent_type_fiel ds' doesn't exist SQL=DELETE FROM `jos_rsform_com p onent_type_fiel ds` WHERE `ComponentTypeI d` = 21 ;
SQL =

DELETE FROM `jos_rsform_com p onent_type_fiel ds` WHERE `ComponentTypeI d` = 21 ;

* Component Install: SQL error or missing or unreadable SQL file. DB function failed with error number 1146
Table 'web172-a-joo-160.jos_rsform_comp onent_type_fiel ds' doesn't exist SQL=DELETE FROM `jos_rsform_com p onent_type_fiel ds` WHERE `ComponentTypeI d` = 21 ;
SQL =

DELETE FROM `jos_rsform_com p onent_type_fiel ds` WHERE `ComponentTypeI d` = 21 ;

not sure what to do?
Quote
http://www.farrellphotographic.co.uk
Gravatar
Jeroen Kolk (01.07.2010 (10:55:05))
Paypal or pay at the day it self Yes No Hello,

We are organising an event where people can also pay on the day itself but still need to register.

So I needs something where the user can choose if he want to pay directly with paypal or otherwise pay 10 euro more at the day itself.

In the last case the paypal website shouldn't appear

I hope somebody can help me?
Quote
www.humanfactor.d-cis.nl
Gravatar
Alexandru Plapana (21.07.2010 (04:28:23))
@Rob Yes No Please make sure that you are using the latest versions of RSForm!Pro (revision 29) and PayPal plugin. If you update RSform!Pro please also download the PayPal plugin and install it over your current installation.Quote
rsjoomla.com
Gravatar
Alexandru Plapana (21.07.2010 (04:34:44))
@Jeroen Yes No This can be done... but not with the standard RSform!Pro PayPal plugin.

You will actually have to use the custom scripting examples, like the one posted on part 3:

http://www.rsjoomla.com/blog/158-3-ways-to-create-a-small-joomla-shopping-cart-with-rsformpro-and-paypal-part-3.html

You will have to introduce and extra condition, something like:

if($_POST['form']['radio_field'] == 'Pay in that day')
{
//paypal code nadling here
}

Hope that this helps!
Quote
rsjoomla.com
Gravatar
Motaz Khader (17.10.2010 (06:00:47))
Default English on paypal.de payment page for Paypal Standard Yes No Can you please let me know how make the default language as English on paypal.de payment page for Paypal Standard Quote
Gravatar
Alexandru Plapana (25.10.2010 (04:10:39))
@Motaz Yes No This can be done... but it will require a small source code adjustment. Basically you will have to edit the plugins/system/rsfppaypal.php file, around line 418. Replace:

www.paypal.com with www.paypal.com/de

Quote
rsjoomla.com
Gravatar
chris b (11.12.2010 (15:53:21))
Wrong Encoding in Paypal landing page Yes No Hi there, i face this problem: i have a wrong encoding in Paypal's landing home page. There are some strange characters maybe because my website is in Greek. How can i change this encoding? Thank a lot!Quote

Page 1 of 2

:confused::cool::cry::laugh::lol::normal::blush::rolleyes::sad::shocked::sick::sleeping::smile::surprised::tongue::unsure::whistle::wink:

1000 Characters left

Antispam Refresh image Case sensitive

Feedback