rotassator/silvershop-payway

Westpac PayWay payment integration for SilverShop

Installs: 926

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Open Issues: 1

Type:silverstripe-module

1.1.3 2018-02-21 22:39 UTC

This package is auto-updated.

Last update: 2024-03-25 09:27:10 UTC


README

Westpac PayWay payment integration for SilverShop.

PayWay uses client-side JavaScript to generate tokens for using with their REST API instead of interacting with credit card details directly on your site.

To integrate the Omnipay PaywayRest adapter with SilverShop, this module overrides the default checkout component.

Status

To date, the following features have been implemented:

  • create single-use token via PayWay JS credit card form
  • create customer
  • save customer number against Member for reuse
  • make payment transaction

Kudos

Many thanks to the work done by Mark Guinn on the Braintree and Stripe modules.

Installation

Install the module using composer.

composer require rotassator/silvershop-payway

Create a config file (eg. mysite/_config/payment.yml) similar to the following:

---
Name: payment
---
Payment:
  allowed_gateways:
    - 'PaywayRest'

---
Except:
  environment: 'live'
---
GatewayInfo:
  PaywayRest:
    parameters:
      apiKeyPublic: PUBLISHABLE-KEY-FOR-TEST-ACCOUNT
      apiKeySecret: SECRET-KEY-FOR-YOUR-TEST-ACCOUNT
      merchantId: TEST
      testMode: true

---
Only:
  environment: 'live'
---
GatewayInfo:
  PaywayRest:
    parameters:
      apiKeyPublic: PUBLISHABLE-KEY-FOR-LIVE-ACCOUNT
      apiKeySecret: SECRET-KEY-FOR-YOUR-LIVE-ACCOUNT
      merchantId: MERCHANT-ID