x402 abstracts away gas!
You can try here from a human use standpoint: https://www.x402.org/protected
And you can see how to accept stablecoins or spend in the the examples
https://github.com/coinbase/x402/tree/main/examples/typescri...
https://github.com/coinbase/x402/blob/main/examples/typescri...