Work in progress, some changes to the API still to come
- SilverStripe 3.0.x
- Payment module 1.0.x
This module provides PayPal Express Payment support for the SilverStripe Payment module.
- Place this directory in the root of your SilverStripe installation and call it 'payment-paypal'.
- Visit yoursite.com/dev/build?flush=1 to rebuild the database.
Enable in your application YAML config (e.g: mysite/_config/payment.yaml):
PaymentGateway:
environment:
'dev'
PaymentProcessor:
supported_methods:
dev:
- 'PayPalExpress'
live:
- 'PayPalExpress'
Configure using your PayPal API details in the same file:
PayPalGateway_Express:
live:
authentication:
username: ''
password: ''
signature: ''
dev:
authentication:
username: ''
password: ''
signature: ''
Notes:
To get PayPal Sandbox test accounts, follow the PayPal documentation.
If you have "Bad request" problems with PayPal, try to empty the browser cache and cookies.
If you get error 3005 try testing on a different machine/IP address or with different PayPal test accounts which do not have the same credit card details stored.