Sha256: fdf2eac8de06e0a24f671bc6cba016b2d3e0dd44e285a5bdd9274be1d4bb11ad
Contents?: true
Size: 1.18 KB
Versions: 3
Compression:
Stored size: 1.18 KB
Contents
module Wayforpay module Constants URL = URI.parse('https://api.wayforpay.com/api').freeze HOLD_ENCRYPT_FIELDS = %i[merchantAccount merchantDomainName orderReference orderDate amount currency productName productCount productPrice].freeze REFUND_ENCRYPT_FIELDS = %i[merchantAccount orderReference amount currency].freeze SETTLE_ENCRYPT_FIELDS = %i[merchantAccount orderReference amount currency].freeze HOLD_ATTRS = { transactionType: 'CHARGE', authorizationType: 'SimpleSignature', merchantTransactionType: 'AUTH', merchantTransactionSecureType: 'NON3DS', apiVersion: 1 }.freeze REFUND_ATTRS = { transactionType: 'REFUND', apiVersion: 1 }.freeze SETTLE_ATTRS = { transactionType: 'SETTLE', apiVersion: 1 }.freeze def self.hold_params HOLD_ATTRS.merge( merchantAccount: Wayforpay.merchant_account, merchantDomainName: Wayforpay.merchant_domain_name, ) end def self.refund_params REFUND_ATTRS.merge(merchantAccount: Wayforpay.merchant_account) end def self.settle_params SETTLE_ATTRS.merge(merchantAccount: Wayforpay.merchant_account) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wayforpay-0.1.2 | lib/wayforpay/constants.rb |
wayforpay-0.1.1 | lib/wayforpay/constants.rb |
wayforpay-0.1.0 | lib/wayforpay/constants.rb |