SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 14 day free trial to unlock unlimited reading.
3.
What happened
• Rebranded as “SilverShop”
• 2.0 was released in July 2016
• Current version is 2.1
• Mark Guinn retired as a Maintainer
4.
Core-features
• Shopping-Cart
• Categories, Products, Variations
• Checkout, either Single- or Multi-Step
• Guest-Checkout
• User-Accounts and Address-Book
• Supports a wide range of payment service providers via Omnipay
5.
Features added via modules
• Stock-Management
• Discounts and Coupons
• Various Shipping-Methods
• Product-Search
• Colored-Variations
• AJAX functionality
10.
The Omnipay Library
• Framework agnostic payment library
• Provides a single API for many different payment service providers
• authorize, capture, purchase, refund, void
• 100% unit-tested
11.
The Omnipay Architecture
• Payment API via Gateways
• Request/Response ≠ HTTP-Request/Response
• Omnipay is stateless
12.
A simple example 1/3
composer require omnipay/paypal
13.
A simple example 1/3
composer require omnipay/paypal
# purchase.php
require_once 'vendor/autoload.php';
use OmnipayOmnipay;
…
14.
A simple example 1/3
composer require omnipay/paypal
# purchase.php
require_once 'vendor/autoload.php';
use OmnipayOmnipay;
$gateway = Omnipay::create('PayPal_Express');
…
20.
Features
• Provides a SilverStripe specific wrapper for omnipay
• Adds a persistence-layer (Payment DataObject)
• Provides URL endpoints for off-site payments
• Can be configured using the config API.
21.
The architecture
• You create instances of Payment and use PaymentServices
that operate on these Payments.
• Services are commonly created through a ServiceFactory
• Payment Services map to the Omnipay API:
authorize, capture, purchase, refund, void
22.
A simple example 1/3
composer require silverstripe/silverstripe-omnipay
composer require omnipay/paypal