Create a new payment
POST
https://api.llamapay.io/charges
Headers
Name | Value |
---|---|
Authorization |
|
Body parameters
Key | Value | Example |
---|---|---|
pricing_type | Can be either:
- | "fixed_price" |
local_price | Amount to charge user.
If | { "amount": "10.00", "currency": "USD" } |
metadata | [Optional] Arbitrary JSON object, it will be returned on webhooks for the payment. Object must be smaller than 20kB | { "userId": "0xngmi" } |
redirect_url | [Optional] URL to redirect user to after successful payment. | "https://mypage.com/success" |
cancel_url | [Optional] URL to redirect user to if they cancel the payment | "https://mypage.com/failure" |
Example body
Charge the user a one-time payment of 10$:
Response
Last updated