Set Payment Gateway within Draft Order API?

Is there any plan to allow adding gateway to a draft order? Currently it’s only possible for the gateway to be ‘manual’, but it would be extremely beneficial to allow adding of a gateway + gateway details like a regular order has after being placed on the storefront.

Hi @Iflam

The draft order is to be used similar to an invoice. If you would like a gateway, you would send the invoice to the customer to add in their payment details. As i’m sure you are aware, credit card payments for these orders can subsequently be entered in the Shopify admin or you can complete the draft order in three ways.

  1. Create a draft order that calculates taxes and totals but accept payment from the customer outside of Shopify. (Manual)
  2. Create a draft order and send an invoice to the customer.
  3. Use the DraftOrder and Checkout resources to create a checkout from a draft order (sales channel apps only)

There is no plan to update how this functions currently, but I will add this as a feature request.

Thank you for the reply.

We initially looked into #3 you mentioned in your comment, however we noticed there is no way to include gateway/token information, which is something we would like to be able to include, the same way gateway information are added to an order on checkout, for refund/cancel etc. functionality.

1 Like