Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1 KB

CheckoutOrderTemplate.md

File metadata and controls

24 lines (18 loc) · 1 KB

Conekta::CheckoutOrderTemplate

Properties

Name Type Description Notes
currency String It is the currency in which the order will be created. It must be a valid ISO 4217 currency code.
customer_info CheckoutOrderTemplateCustomerInfo [optional]
line_items Array<Product> They are the products to buy. Each contains the &quot;unit price&quot; and &quot;quantity&quot; parameters that are used to calculate the total amount of the order.
metadata Hash<String, Object> It is a set of key-value pairs that you can attach to the order. It can be used to store additional information about the order in a structured format. [optional]

Example

require 'conekta'

instance = Conekta::CheckoutOrderTemplate.new(
  currency: MXN,
  customer_info: null,
  line_items: null,
  metadata: {&quot;key&quot;:&quot;value&quot;}
)