How to use shopify payment gateway in React app

We are developing a headless e-commerce, using React as a front-end and Shopify 2.0 in back-end.
we have successfully implemented all front-end pages and activities.
Since we want to process payments using our headless system,(instead of redirecting users to the Shopify checkout page.)
And To do this, as per documentation, we need Shopify API that enables us to capture payments using the Shopify payment gateway integration in Headless and process for order fulfilment.

Just want to confirm, how we can integrate Shopify Payment API, Can you share any documentation on the same.

we are referring this doc
https://shopify.dev/docs/api/admin-rest/2023-04/resources/payment#resource-object