Avoid manual payment-pending transaction when completing a B2B Draft Order (with net-terms)

We have an app with a POS extension that allows merchants to create B2B orders. We are running into the following issue: merchants sometimes create an order that needs to be paid in full by the customer at a later time, based on the net terms. The flow we currently use is:

  1. We create a draft order.

  2. We complete the draft order.

  3. We redirect the merchant to the screen for the order that was created.

When Shopify completes a draft order, it creates a manual payment-pending transaction. This allows the merchant to collect the payment there using their integrated payment solutions, such as cash, card, or whatever payment method they use at the point of sale.

However, if the merchant wants to defer the payment and does not want to collect it right then and there, and instead wants the customer to pay it later based on their net terms, the customer is supposed to go to their customer account and click the “Pay Now” button. The problem is that the “Pay Now” button does not appear there.

Since there is a manual payment-pending transaction associated with the order, Shopify does not show the “Pay Now” button to the customer. There is also no way to void this transaction. Because of this, I was wondering if there is a way to somehow cancel this transaction, or if we can tell the API not to create the transaction when completing the draft order and converting it into an order.

Thanks in advance.