How to process payment for Draft Order API

Hi all
I’m working on a custom checkout for our headless Shopify site and I’m using Shopify Draft Order API to complete the checkout process. The Draft Order API processes shipping addresses and shipping methods in checkout. After this, I need to complete the order by processing payment through Stripe. I’m thinking of completing the Draft Order with a mark paymentPending as false as I’ll do this after the payment through Stripe is successful. Is that a safe way to complete the order or not?

I’m referring to this API
https://shopify.dev/docs/api/admin-graphql/2023-01/mutations/draftOrderComplete#examples-Complete_a_draft_order_with_payment_pending

If there is any other secure way to do that, please recommend it.

Note: I’m not using checkout API because we are using discounted pricing and checkout API is not accepting manual pricing.

Hey @usaamatahir . I hope you’re doing great. We want to use Stripe as a payment Gateway for draft order API. Could you walk me thorugh how this could be achived? I can’t find documentation related to this. Thank you in advance.