Payment gate API for custom webpage

Hello, i would like to create custom e-shop with laravel and VUE and first question is

  1. i need to enable od disable purchase based on current state of supply. What API should i use.

  2. i want to make everything custom but when click checkout and continuing a want the shopify to handle it what API should i use to make the payment?