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.
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
Many thanks to the work done by Mark Guinn on the Braintree and Stripe modules.
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