Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cjavilla-stripe/029b13463b0e839205bcdab95bb3dcd4 to your computer and use it in GitHub Desktop.
Save cjavilla-stripe/029b13463b0e839205bcdab95bb3dcd4 to your computer and use it in GitHub Desktop.
{
"_meta": {
"template_version": 0
},
"fixtures": [
{
"name": "customer",
"path": "/v1/customers",
"method": "post",
"params": {
"description": "(created by Stripe CLI)",
"payment_method": "pm_card_authenticationRequired",
"invoice_settings": {
"default_payment_method": "pm_card_authenticationRequired"
}
}
},
{
"name": "invoiceitem",
"path": "/v1/invoiceitems",
"method": "post",
"params": {
"amount": 2000,
"currency": "usd",
"customer": "${customer:id}",
"description": "(created by Stripe CLI)"
}
},
{
"name": "invoice",
"path": "/v1/invoices",
"method": "post",
"params": {
"customer": "${customer:id}",
"description": "(created by Stripe CLI)"
}
},
{
"name": "invoice_pay",
"path": "/v1/invoices/${invoice:id}/pay",
"method": "post"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment