Getting started
The Mogami x402 Spring Boot Starter adds a micropayment guard to any Spring Boot endpoint. Just annotate a controller method with @X402PaymentRequirements
, set your payment information, done!
Here is how to use it:
To use it in your Maven project :
and in your Gradle project:
And don't forget to add this parameter : x402.facilitator.base-url=https://x402.org/facilitator
to your application.properties
file.
Last updated