Payment
Last updated
Was this helpful?
Last updated
Was this helpful?
Calling this API will immediately charge the user for the amount of the product.
For the billing lifecycle please refer to
POST https://mburger.cloud/api/payments
Name
Type
Required
Description
name
string
Yes
Payment identifier chosen on Stripe dashboard.
amount
int
Yes
Amount to charge for single product.
quantity
int
Yes
Quantity of products.
token
string
No
Source token provided by the Stripe SDK, it is not required if the user is already a customer and wants to use the default card.
meta
JSON
No
Additional data to save for the payment.