dash.checkout
Checkout and order creation methods.
Updated
On this page
dash.checkout
start(data)
const result = await dash.checkout.start({
cartId: dash.cart.cartId,
email: "customer@example.com",
acceptsMarketing: true,
})
complete(data)
const { order, customer } = await dash.checkout.complete({
cartId: dash.cart.cartId,
email: "customer@example.com",
code: "482901",
shipping: { first_name: "Jane", last_name: "Doe", address_line1: "123 Main", city: "Austin", state: "TX", zip_code: "78701", country: "US" },
payment_token: { token: "tok_abc", descriptor: "..." },
})
getShippingLocations()
const { countries } = await dash.checkout.getShippingLocations()
See Checkout for full details.