Method: PaypalServerSdk::PaymentTokenRequest#initialize

Defined in:
lib/paypal_server_sdk/models/payment_token_request.rb

#initialize(payment_source:, customer: SKIP) ⇒ PaymentTokenRequest

Returns a new instance of PaymentTokenRequest.



42
43
44
45
# File 'lib/paypal_server_sdk/models/payment_token_request.rb', line 42

def initialize(payment_source:, customer: SKIP)
  @customer = customer unless customer == SKIP
  @payment_source = payment_source
end