module Afterpay
Constants
- DEFAULT_SERVER
- VERSION
Attributes
merchant_id[RW]
@!attribute merchant_id
@return [String] Afterpay
merchant ID that is used for authorization
secret_key[RW]
@!attribute secret_key
@return [String] Afterpay
secret key that is used for authorization
server[W]
@!attribute server
user_agent[RW]
@!attribute user_agent
@return [String] A User-Agent header must be supplied with all Merchant API
requests prior to placing any live transactions. Create your User-Agent string here⦠developers.afterpay.com/afterpay-online/docs/user-agent-header-1
Public Class Methods
configuration()
click to toggle source
@return [Hash] current Afterpay
configuration
# File lib/afterpay.rb, line 53 def configuration { merchant_id: @merchant_id, secret_key: @secret_key } end
configure() { |self| ... }
click to toggle source
@yield [self] to accept configuration settings
# File lib/afterpay.rb, line 48 def configure yield self end
server()
click to toggle source
@return [String] Afterpay
server to which requests sended
# File lib/afterpay.rb, line 61 def server @server || DEFAULT_SERVER end