A plugin for ActiveMerchant adding support for the PayWay Gateway
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
test
.gitignore
README.md
Rakefile
VERSION
activemerchant-payway.gemspec
init.rb

README.md

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.