Repository for Silverstripe PayPal Payment
PHP
Switch branches/tags
Nothing to show
#9 Compare This branch is 13 commits ahead of ryandao:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
_config
code
old
tests
README.md

README.md

SilverStripe Payment PayPal Module

Work in progress, some changes to the API still to come

Maintainer Contacts

Requirements

  • SilverStripe 3.0.x
  • Payment module 1.0.x

Documentation

This module provides PayPal Express Payment support for the SilverStripe Payment module.

Installation guide

  1. Place this directory in the root of your SilverStripe installation and call it 'payment-paypal'.
  2. Visit yoursite.com/dev/build?flush=1 to rebuild the database.

Usage Overview

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.