Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 9.04 KB

File metadata and controls

22 lines (17 loc) · 9.04 KB

CheckoutSessionCreate

Example Usage

import { CheckoutSessionCreate } from "@gr4vy/sdk/models/components";

let value: CheckoutSessionCreate = {};

Fields

Field Type Required Description Example
cartItems components.CartItem[] An array of cart items that represents the line items of a transaction.
metadata Record<string, string> Any additional information about the transaction that you would like to store as key-value pairs. This data is passed to payment service providers that support it. {
"cohort": "cohort-a",
"order_id": "order-12345"
}
buyer components.GuestBuyer Provide buyer details for the transaction. No buyer resource will be created on Gr4vy when used.
airline components.Airline The airline addendum data which describes the airline booking associated with this transaction.
amount number The total amount for this transaction.
currency string The currency code for this transaction. Example 1: EUR
Example 2: GBP
Example 3: USD
paymentServiceId string The unique identifier of an existing payment service. When provided, the created transaction will be processed by the given payment service and any routing rules will be skipped.
expiresIn number The time in seconds when this checkout session expires.