Configuring payment models (Intermediate)

Exclusive offer: get 50% off this eBook here
Instant E-commerce with OpenCart: Build a Shop [Instant]

Instant E-commerce with OpenCart: Build a Shop [Instant] — Save 50%

A fast-paced, practical guide to setting up your own shop with OpenCart with this book and ebook

$14.99    $7.50
by Murat Yilmaz | September 2013 | e-Commerce Open Source

In this article, by Murat Yilmaz, author of Instant E-commerce with OpenCart:Build a Shop, we will learn that OpenCart supports a wide range of payment methods and services. We will learn how to integrate one of the most popular online payment services, that is, PayPal into our store. PayPal offers several solutions. Two popular ones are PayPal Website Payments Standard and PayPal Website Payments Pro.

(For more resources related to this topic, see here.)

How to do it...

Let's learn how to integrate PayPal Website Payments Standard into our store in test mode.

Integrating PayPal Website Payments Standard into our store (test mode)

  1. We will start by activating PayPal Payments Standard using the Payments section under the Extensions menu, and then we will edit the settings for it.

  2. The next step is to fill in the needed information for testing the PayPal system. For test purposes, we will choose the option for Sandbox Mode as Yes.

  3. We will now open a developer account to create test accounts on PayPal. Let's browse to http://developer.paypal.com and sign up for a developer account. Following is a screenshot of the screen that is displayed after we sign up and log in to the account. Click on the Create a preconfigured account link.

  4. The next screen will propose an account name with which your account will be created. Now we only need to add funds to the Account Balance field to create the account. Remember that it is a test account, so we can give any virtual amount of funds we want.

  5. Now we have a test PayPal account that can be used for our test purchases:

  6. Let's go to our shop's user interface, add a product to the shopping cart, and proceed to the Checkout page:

  7. Let's log in with the test account we have just created:

  8. The following screenshot shows a successful test order:

Integrating PayPal Website Payments Pro into our store (live mode)

  1. We need to get the API information first. Let's log in to our PayPal account. Click on the User Profile link, and then click on the Update link next to API access in the My selling tools section. The next step is to click on the Request API Credentials link. Choose the option that says Request API signature. This will help us get the API information.

  2. The next step is to activate Payment Pro on the OpenCart administration interface using the Payments section under the Extensions menu. We need to edit the details and enter the API information. Let's not forget to select No for Test Mode, which means that this will be a live system. Choose Enabled for the Status field.

How it works...

Now let's learn how the PayPal Standard and Pro models work and how they differ from each other.

PayPal Website Payments Standard

PayPal Standard is the easiest payment model to integrate into our store. All we need is a PayPal account, and a bank account to withdraw the money from. PayPal Standard has no monthly costs or setup fee. However, the company charges a small percentage from each transaction.

Please go to https://www.paypal.com/webapps/mpp/merchant for merchant service details.

The activation of the Standard method is very straightforward. We only need to provide our e-mail address and then set Transaction Method to Sale, Sandbox Mode to No, and Status to Enabled on the administration panel.

There is a difference in the test payments that we have made. Customers can also pay with their credit cards instantly, even without a PayPal account. This makes PayPal a very powerful and popular solution.

If you are afraid of charging your real PayPal account, there is a good way to test your real payment environment. Create a dummy product with the price of $0.01 and complete the purchase with this tiny amount.

PayPal Website Payments Pro

This service can be used to charge credit cards using PayPal services in the background. The customers will not need to leave the store at all; the transaction will be completed at the shop itself. Many big e-commerce websites operate this way.

Currently, Pro service is only available for merchant accounts located in the US, UK, and Canada.

Summary

This article explains about implementing different PayPal integrations. The article discusses about how to integrate the PayPal Website Payments Standard and Pro methods into a simple store.

Resources for Article:


Further resources on this subject:


Instant E-commerce with OpenCart: Build a Shop [Instant] A fast-paced, practical guide to setting up your own shop with OpenCart with this book and ebook
Published: April 2013
eBook Price: $14.99
See more
Select your format and quantity:

About the Author :


Murat Yilmaz

Murat Yilmaz is a software developer and an online entrepreneur who lives in Antalya, Turkey. He has over 10 years of experience in different IT fields, including development of web-driven solutions, large databases, and OLAP systems. He has worked in several multinational companies in Istanbul and Moscow as a consultant. He currently runs his own blog and an e-commerce and online advertising network. He holds a bachelor's degree in Computer Science from Marmara University at Istanbul. He spends his free time playing progressive rock songs, online chess, and reading scientific books.

He has also authored two other books, OpenCart 1.4: Beginner's Guide and OpenX Ad Server: Beginner's Guide.

Books From Packt


Mastering Magento
Mastering Magento

 Instant E-Commerce with Magento: Build a Shop [Instant]
Instant E-Commerce with Magento: Build a Shop [Instant]

 Building E-commerce Sites with Drupal Commerce Cookbook
Building E-commerce Sites with Drupal Commerce Cookbook

 OpenCart 1.4 Template Design Cookbook
OpenCart 1.4 Template Design Cookbook

OpenCart 1.4: Beginner's Guide
OpenCart 1.4: Beginner's Guide

Magento: Beginner's Guide
Magento: Beginner's Guide

Magento 1.4 Theming Cookbook
Magento 1.4 Theming Cookbook

Magento Mobile How-to [Instant]
Magento Mobile How-to [Instant]


No votes yet

Post new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Q
M
L
a
y
x
Enter the code without spaces and pay attention to upper/lower case.
Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software