new Checkout(shopify)
Creates a Checkout instance.
Parameters:
Name | Type | Description |
---|---|---|
shopify |
Shopify | Reference to the Shopify instance |
Methods
complete(token) → {Promise}
Completes a free checkout.
Parameters:
Name | Type | Description |
---|---|---|
token |
String | Checkout token |
Returns:
Promise that resolves with the result
- Type
- Promise
shippingRates(token) → {Promise}
Gets a list of available shipping rates for the specified checkout.
Parameters:
Name | Type | Description |
---|---|---|
token |
String | Checkout token |
Returns:
Promise that resolves with the result
- Type
- Promise