Sha256: a55ab7be32bd8984ca94231eeff56ffdeb24b80a192513fdb61b6dbe854fd494
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
module Wayforpay module Payments # required attrs: orderReference, amount, currency, orderDate, # productName[], productPrice[], productCount[], # (card + expMonth + expYear + cardCvv + cardHolder) or recToken def self.hold(attrs = {}) request_params = Constants.hold_params.merge(attrs) Wayforpay::Request.(Constants::HOLD_ENCRYPT_FIELDS, request_params) end # required attrs: orderReference, amount, currency, comment def self.refund(attrs = {}) request_params = Constants.refund_params.merge(attrs) Wayforpay::Request.(Constants::REFUND_ENCRYPT_FIELDS, request_params) end # required attrs: orderReference, amount, currency def self.settle(attrs = {}) request_params = Constants.settle_params.merge(attrs) Wayforpay::Request.(Constants::SETTLE_ENCRYPT_FIELDS, request_params) end # required attrs: orderReference, amount, currency, card, expMonth, expYear, cardCvv, cardHolder def self.verify(attrs = {}) request_params = Constants.verify_params.merge(attrs) Wayforpay::Request.(Constants::VERIFY_ENCRYPT_FIELDS, request_params) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wayforpay-0.1.4 | lib/wayforpay/payments.rb |