Project

gangway

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
eWay SOAP wrapper
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.2.0
 Project Readme

Gangway

ENV Variables

Gangway requires eWay credentials in the .env file

EWAY_USERNAME=username
EWAY_PASSWORD=password

Usage example

require 'gangway'

# add a user
Gangway::Subscriber.add({email: 'test@user.com',
                         subscriber_data: {first_name: 'Test', last_name: 'User'}, handler_id: 1})

# get subscriber data
Gangway::Subscriber.get({email: 'test@user.com'})

# get subscription status
Gangway::Subscriber.subscription_status({email: 'test@user.com'})

# change user's email
Gangway::Subscriber.change_email({old_email: 'old@user.com', new_email: 'new@user.com'})