class Afterpay::API::Payment::Auth
Attributes
payment[R]
Public Class Methods
new(params = {})
click to toggle source
# File lib/afterpay/api/payment/auth.rb, line 7 def initialize(params = {}) @payment = params[:payment] end
Private Instance Methods
endpoint()
click to toggle source
# File lib/afterpay/api/payment/auth.rb, line 23 def endpoint "#{URL}/auth" end
payload()
click to toggle source
# File lib/afterpay/api/payment/auth.rb, line 15 def payload { action: :post, body: payment.as_json, endpoint: endpoint } end