No commit activity in last 3 years
No release in over 3 years
ActiveMerchant PayWay Plugin
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

 Project Readme

ECI VALUES

  • CCT Call Centre Transaction
  • IVR IVR Transaction
  • MTO MOTO Transaction
  • SSL Channel Encrypted Transaction (SSL or other)
  • 1 3D Secure transaction. This is the value returned from your MPI (Merchant Plugin Interface) software for 3D Secure transactions

Usage

gateway = ActiveMerchant::Billing::PayWayGateway.new(
  :username   => 'abcdefgh',
  :password   => '12345678',
  :pem        => '/location/of/certificate.pem',
  :eci        => 'SSL'
)

card = ActiveMerchant::Billing::CreditCard.new(
  :number     => 1234123412341234,
  :month      => 05,
  :year       => 2010,
  :first_name => 'Joe',
  :last_name  => 'Bloggs',
  :verification_value => 123,
  :type       => 'visa'
)

options = {
  :order_number => 'abc',
  :original_order_number => 'xyz' # used to call on past authentications
}

gateway.purchase(amount, card, options)

Note When Testing

Since the merchant has to enable Diners and Amex on the Payway side, To run the tests for these two cards simply run with the PAYWAY_TEST_DINERS and PAYWAY_TEST_AMEX environment variables.

You also need to fill out credentials.txt and payway.pem in the config directory with your api login and certificate generated at http://www.payway.com.au

Contributors

Developed by @dangalipo and @mlambie, sponsored by @frontiergroup

Released by @dirkkelly so all of you can use it.