Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 1.67 KB

File metadata and controls

38 lines (32 loc) · 1.67 KB

Komoju::PaymentMethod

Properties

Name Type Description Notes
type String Machine-readable type slug for this payment method (e.g. "credit_card", "konbini").
hashed_gateway String Hashed identifier of the payment gateway processing this method. [optional]
amount Integer Amount greater than or equal to 0, in the lowest denomination of the currency (e.g. cents for USD). [optional]
currency Currency [optional]
exchange_rate Float Exchange rate applied when this payment method's currency differs from the session currency. [optional]
offsite Boolean Whether this payment method redirects the customer to an external site to complete payment. [optional]
additional_fields Array<String> Names of additional input fields required to complete payment with this method. [optional]
brands PaymentMethodBrands [optional]
seven_eleven_merchant_number String Only for Konbini [optional]
installments Array<PaymentMethodInstallmentsInner> Only for Komoju Pay [optional]
api_endpoint String Only for Komoju Pay [optional]

Example

require 'komoju-sdk'

instance = Komoju::PaymentMethod.new(
  type: null,
  hashed_gateway: null,
  amount: null,
  currency: null,
  exchange_rate: null,
  offsite: null,
  additional_fields: null,
  brands: null,
  seven_eleven_merchant_number: null,
  installments: null,
  api_endpoint: null
)