PayPal and Spree integration
PayPal provides online payment solutions to its users worldwide.
Founded in 1998, it has quickly become a global leader in online payment solutions with more than 153 million accounts worldwide. Available in 190 markets and 24 currencies around the world, PayPal facilitates global e-commerce by making payments possible across different locations, currencies, and languages.
The integration of Paypal with your Spree Commerce store can be done quickly and easily following the guidelines mentioned below.
The benefits of using PayPal for your eCommerce business
Globally recognized brand & huge potential customer base
Every user on the internet becomes a potential customer. Every buyer is being targeted irrespective of whether he/she wants to use PayPal or the credit card.
Security & customer trust
A shopper can purchase goods without providing any of their financial information, with no financial information shared with the merchant. PayPal prides itself in its security and protects its customer’s financial information using industry leading fraud prevention systems. Users only need to type in your credit card and bank account information once, following this they no longer have to disclose any other information online.
Pricing policy
You pay only when you sell. There are no monthly fees for using PayPal for your business.
Ability to accept international payments and cards
PayPal gives you the option of paying and accepting payment in 23 currency types.
Keeping track of transactions
You can easily access every inbound and outbound transaction. The account has been neatly organized into payments received, payments made, history and recent activity tabs.
How to integrate PayPal with Spree
To integrate your PayPal account with Spree use the braintree_vzero extension, which supports:
- Braintree Hosted Fields – style the credit card form to match your UI with full PCI compliance
- PayPal Express Checkout – the fastest way for buyers to pay with PayPal – available on Spree for the first time
- Braintree Drop-in UI – start accepting payments ASAP
Installation
- Add this extension to your Gemfile with this line:
Spree >= 3.1
gem 'spree_braintree_vzero', github: 'spree-contrib/spree_braintree_vzero'
Spree 3.0 and Spree 2.x
gem 'spree_braintree_vzero', github: 'spree-contrib/spree_braintree_vzero', branch: 'X-X-stable'
The branch
option is important: it must match the version of Spree you’re using. For example, use 3-0-stable
if you’re using Spree 3-0-stable
or any 3.0.x
version.
- Install the gem using Bundler:
bundle install
- Copy & run migrations
bundle exec rails g spree_braintree_vzero:install
- Restart your server
If your server was running, restart it so that it can find the assets properly.
Example of PayPal and Spree integration
Huckberry is an eCommerce site dedicated to inspiring “more active, adventurous, and stylish lives” through exclusive sales, story-telling, and a unique customer experience. The company uses Spree for their fast growing online platform and PayPal for checkout.
Read more: Huckberry Success Story