This fork is no longer maintained, please use: https://github.com/localist/spree_pxpay_paymentmethod
This is a gem for Spree 2.1.7 which adds PXPay (paymentexpress.com - a NZ and Australian Payment Processor) as a Payment Method.
This is does not use Active Merchant - this is not the version of the gateway with a POST API (see ActiveMerchant PXPost docs), PXPay is the service hosted on the Payment Express servers and credit card information is never touched by your Spree implementation (sort of like PayPal's Website Payments system).
This extension will completely replace the payment page of the cart, and will return the customer to the completed order page when their payment has been processed.
As such, you can not use multiple payment methods (on the front end) alongside this. You can manually create payments on the back-end as per usual.
- Add the gem to your Gemfile
bundle install
- Add
Spree::Gateway::PxPay
to the spree.payment_methods Array in your Spree initializer (config/initializers/spree.rb
) - Add a new Payment Method in the admin section using the
Spree::Gateway::PxPay
- Set the relevant configuration details
Specs, obviously ;)
Inspired by the spree-hosted-gateway gem and the work done by @bradleypriest who wrote the PXPay gem.
@jstirk @Michael1969 @lukes