Skip to content

rotassator/silvershop-payway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SilverShop PayWay Support Module

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

About

Westpac PayWay payment integration for SilverShop

Resources

License

Stars

Watchers

Forks

Packages

No packages published