This document outlines the required API flow for a payment middleware service that integrates an external payment provider with BigCommerce using a custom payment form.
The flow is also referenced in the following screencast: Replacing payment section of default checkout and loading order confirmation page (Loom video 5mins)
This app also provides a demo of the flow in the "External Payment" section of the checkout explorer UI: https://bigcommerce-checkout-external-payment.replit.app/