Last updated 4 years ago
How to create a new Stripe card
The new card will be set as the default payment method automatically by Stripe
POST https://mburger.cloud/api/cards
curl https://mburger.cloud/api/cards -X POST -H "Accept: application/json" -H "X-MBurger-Token: <token>" -H "X-MBurger-Version: 3" -H "Authorization: Bearer <JWT>"
When successful, a HTTP 200 and JSON like this is returned:
{ "status_code": 0 }
Name
Type
Required
Description
token
string
Yes
Token provided by the Stripe SDK.