Set up order placement via Rye
Keep track of the shopping cart
createCart
and addCartItems
mutations for this purpose. Note that you will want to call updateCartBuyerIdentity
with the recipient’s information, as the buyer identity is used for the shipping address.Charge the gifter
Place the order using the Rye API
submitCart
mutation to place the order. This mutation expects a token
input, which should be a payment token for a card owned by your business.Handle the post-checkout flow
source
field on your product objects can work well for this.submitCart
mutation.