Module: Ipay::Rest

Defined in:
lib/ipay/rest.rb,
lib/ipay/rest/error.rb,
lib/ipay/rest/client.rb,
lib/ipay/rest/object.rb,
lib/ipay/rest/version.rb,
lib/ipay/rest/resource.rb,
lib/ipay/rest/constants.rb,
lib/ipay/rest/errors/used_code.rb,
lib/ipay/rest/objects/initiator.rb,
lib/ipay/rest/objects/ussd_push.rb,
lib/ipay/rest/errors/over_payment.rb,
lib/ipay/rest/objects/transaction.rb,
lib/ipay/rest/resources/transaction.rb,
lib/ipay/rest/errors/payment_deficit.rb,
lib/ipay/rest/errors/failed_transaction.rb,
lib/ipay/rest/errors/pending_transaction.rb,
lib/ipay/rest/objects/transaction_status.rb

Defined Under Namespace

Classes: Client, FailedTransactionError, Initiator, IpayError, Object, OverPaymentError, PaymentDeficitError, PendingTransactionError, Resource, Transaction, TransactionResource, TransactionStatus, UsedCodeError, UssdPush

Constant Summary collapse

VERSION =
"0.1.3"
LIVE =
ENV.fetch("LIVE") { 0 }
VID =
ENV.fetch("VID") { "demo" }
SECRET_KEY =
ENV.fetch("IPAY_SECRET_KEY") { "demoCHANGED" }
BASE_URL =
ENV.fetch("IPAY_BASE_URL") { "https://apis.ipayafrica.com/payments/v2/" }
DEFAULT_CURRENCY =
ENV.fetch("IPAY_CURRENCY") { "KES" }