Sha256: 20587040fefc9fd614fd6b802b44f7887bf7a774919cb454143aec6031beafb1
Contents?: true
Size: 877 Bytes
Versions: 4
Compression:
Stored size: 877 Bytes
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 end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
wayforpay-0.1.3 | lib/wayforpay/payments.rb |
wayforpay-0.1.2 | lib/wayforpay/payments.rb |
wayforpay-0.1.1 | lib/wayforpay/payments.rb |
wayforpay-0.1.0 | lib/wayforpay/payments.rb |