post https://withpaper.com/api/2022-08-12/checkout-sdk-intent
This API generates a sdkClientSecret to use with 🧩 Checkout Elements.
Most fields are optional so you can get started quickly and customize as your needs change!
Next steps: Embed the payment component on your app
Pass the sdkClientSecret to the CheckoutWithCard or CheckoutWithEth components:
import { CheckoutWithCard, PaperSDKProvider } from "@paperxyz/react-client-sdk"; <PaperSDKProvider appName='My Web3 App' chainName="Polygon"> <CheckoutWithCard sdkClientSecret='eyJh...' ... /> </PaperSDKProvider>