Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

pdf icons

Connecting VirtueMart to PayPal (Sandbox)

For testing VirtueMart with PayPal Sandbox, you have to create a PayPal Sandbox Account. For this please refer to Lesson Creating a Sandbox Account In PayPal

To connect VirtueMart to PayPal, login to Joomla as administrator, by simply entering the url_of_your_website/administrator in your Browser. Enter the appropriate username and password {which was provided while installing Joomla} and then click on Login as shown in Diagram 1.

diagram1.png
Diagram 1

After logging in as Joomla Admin, a Control Panel page opens as shown in Diagram 2. The Control Panel provides access to different Joomla functions and features.

diagram2.png
Diagram 2

In the top menu, locate the link Components. Click on Components, from the drop down menu that appears click on VirtueMart as shown in Diagram 3.

diagram3.png
Diagram 3

The VirtueMart Control Panel window is displayed. Click on List Payment Methods under the Store tab located in the left hand side of the Administration panel as shown in Diagram 4.

diagram4.png
Diagram 4

This link displays the various Payment Methods available / installed with your version of VirtueMart. Click on PayPal from the list of Payment Methods, as shown in Diagram 5.

NOTE: If you want to deal with any other Payment gateway, simply click on its link to edit its configuration.

diagram5.png
Diagram 5

On click of the PayPal link, the Payment Method Form opens. Click on the Configuration tab to configure the PayPal module in VirtueMart as shown in Diagram 6.

diagram6.png
Diagram 6

Enter the Email address you registered with at PayPal in the PayPal payment email textbox as shown in Diagram 7.

Scroll down till the PayPal Extra info section is reached.

diagram7.png
Diagram 7

Change the value of $URL to hold the address that points to the PayPal Sandbox (since testing is being in the PayPal Sandbox area) as shown in Diagram 8. Do the following:

Replace the Live PayPal URL-
https://www.paypal.com/cgi-bin/webscr

With the PayPal Sandbox URL -
https://www.sandbox.paypal.com/cgi-bin/webscr.

diagram8.png
Diagram 8

When any visitor wishes to purchase a product or service at the site, the visitor should be registered. If not, the visitor will be asked to fill in the site Registration Form while processing payment.

Click on the Shopping Cart link in the Main Menu as shown in Diagram 9.

diagram9.png
Diagram 9

Various products, segregated by category, are displayed along with images where available, a brief description and price. Click on any product link under head Categories as shown in Diagram 10.

diagram10.png
Diagram 10

The product(s) related to that category will be displayed with details. Click on any Product details link as shown in Diagram 11.

diagram11.png
Diagram 11

The next window will display that particular product in a lot more detail, such as its description, specifications, shipping details and reviews.

Select the Size, Material and Quantity according to requirement from the option provided in the small box.
Add the product into your cart by clicking on Add to Cart button as shown in Diagram 12.

diagram12.png
Diagram 12

As soon as you click on Add to Cart, a pop up box appears showing that the product has been added to your cart. In order to continue your shopping, click on Continue button in the pop box.

Else click on Cart button to proceed to checkout as shown in Diagram 13.

diagram13.png
Diagram 13

The following window displays shopping details (Cart).

Click on Checkout for final payment of your shopping cart as shown in Diagram 14, alternatively you can continue shopping by clicking the Continue Shopping link adjacent.

diagram14.png
Diagram 14

Virtue Mart requires the billing information of the user prior Checkout.

If the visitor has not provided billing details (i.e. is a new visitor), then VirtueMart provides an option to permit the visitor to provide billing details. If you are a registered user, simply login using the appropriate username and password and proceed further to complete checkout formalities as shown in Diagram 15.

diagram15.png
Diagram 15

Without login, no one will be able to complete the checkout process.

Assuming a new user as mentioned earlier and since billing details are not available, click the radio button New? Please provide Your Billing Information. VirtueMart will then display a form to capture the necessary information for billing from the visitor, as shown in Diagram 16. When complete, simply click the Send Registration button and proceed to checkout.

diagram16.png
Diagram 16

The first Checkout process is Shipping Address, click on Next as shown in Diagram 17. Under the Please select a Shipping Address ensure that the radio button – Default (Same as billing) is selected.

If the Shipping Address is different from the Billing address click on the Add a new Shipping Address link to add a new shipping address for the delivery of the products / services being purchased. Refer to diagram 17.

diagram17.png
Diagram 17

To access the next checkout process Ship Methods, click on Next button as shown in Diagram 18.

diagram18.png
Diagram 18

After selecting the shipping method, it’s time to move to the Payment Method as shown in Diagram 19.

In this window select the type of payment method from what is available. Select PayPal from the Other Payment Methods. Click on the button Next as shown in Diagram 19.

diagram19.png
Diagram 19

Click the button Next to complete the order as shown in Diagram 20. Click the Confirm Order button for final confirmation of shopping.

diagram20.png
Diagram 20

On confirming the order, VirtueMart connects to the PayPal Sandbox where it asks the user for their Login details i.e. a valid Email ID and Password as shown in Diagram 21.

Fill these in and click the Log In button.

diagram21.png
Diagram 21

After logging into the PayPal Sandbox, the visitor will be taken to the review their payment page. To complete the purchase transaction, click on the Pay Now button at the bottom of page as shown in Diagram 22.

diagram22.png
Diagram 22

The next window shows the successful transaction of your payment as shown in Diagram 23.

diagram23.png
Diagram 23

Now, you can verify your Email in buyer (Personal) and seller (business) account of your PayPal Sandbox.

Log into your PayPal Sandbox account and click on Test Accounts as shown in Diagram 24.

diagram24.png
Diagram 24

Select the radio button of Personal account and click on Enter Sandbox Test Site as shown in Diagram 25. Ensure that the Payment review is set to Enabled.

diagram25.png
Diagram 25

Enter your login details of your personal account and log in to PayPal Sandbox of Buyer’s account as shown in Diagram 26.

diagram26.png
Diagram 26

The details of transaction can be viewed in My recent activity section as shown in Diagram 27.

diagram27.png
Diagram 27

Click on Details link to view the transaction in detail as shown in Diagram 28.

diagram28.png
Diagram 28

In the same way you can login to the seller’s (business) account and view the transaction with buyer as shown in Diagram 29.

diagram29.png
Diagram 29

Click on Details link to view the transaction in detail as shown in Diagram 30.

diagram30.png
Diagram 30

OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download
LinkShare_180x150
Artisteer - DNN Skin Generator
Tapestry Theme - A Tumblog-Style Theme for Wordpress