Download the PHP package silvercommerce/payments-paypal without Composer
On this page you can find all versions of the php package silvercommerce/payments-paypal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download silvercommerce/payments-paypal
More information about silvercommerce/payments-paypal
Files in silvercommerce/payments-paypal
Package payments-paypal
Short Description Package that adds PayPal payments (via omnipay) along with some customisations
License BSD-3-Clause
Homepage https://github.com/silvercommerce/payments-paypal
Informations about the package payments-paypal
SilverCommerce Paypal Payments
Package that adds PayPal payments (via omnipay) along with some customisations
Mostly this just installs the required PayPal omnipay package, but it also fixes the redirect issue where PayPal payments can be identified as "paid" even when they are rejected.
Hopefully this package will also be upgraded at some point to allow adding an "Express Checkout" button to the begining of the checkout process.
Installation
Install via composer:
composer require silvercommerce/payments-paypal
Configuration
Configure how you would any SilverStripe omnipay modules:
payments.yml
---
Name: paymentconfig
---
SilverStripe\Omnipay\Model\Payment:
allowed_gateways:
- 'PayPal_Express'
SilverStripe\Omnipay\GatewayInfo:
PayPal_Express:
parameters:
username: 'paypal_api_username'
password: 'paypal_api_password'
signature: 'paypal_api_signiature'
# Config for test environments
---
Except:
environment: 'live'
---
SilverStripe\Omnipay\GatewayInfo:
PayPal_Express:
parameters:
username: 'test_paypal_api_username'
password: 'test_paypal_api_password'
signature: 'test_paypal_api_signiature'
testMode: true
Alternativley, load the PayPal API credentials via environmental variables:
.env
PAYPAL_API_USERNAME="test_paypal_api_username"
PAYPAL_API_PASSWORD="test_paypal_api_password"
PAYPAL_API_SIGNATURE="test_paypal_api_signiature"
payments.yml
---
Name: paymentconfig
---
SilverStripe\Omnipay\Model\Payment:
allowed_gateways:
- 'PayPal_Express'
SilverStripe\Omnipay\GatewayInfo:
PayPal_Express:
parameters:
username: '`PAYPAL_API_USERNAME`'
password: '`PAYPAL_API_PASSWORD`'
signature: '`PAYPAL_API_SIGNATURE`'
All versions of payments-paypal with dependencies
silvercommerce/checkout Version ^1.1
silvercommerce/settings Version ^1.0
silvercommerce/orders-admin Version ^1.3
omnipay/paypal Version ^3.0