Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cjavilla-stripe/fe2a6b9296a66e2e7a935b49ff8db930 to your computer and use it in GitHub Desktop.
Save cjavilla-stripe/fe2a6b9296a66e2e7a935b49ff8db930 to your computer and use it in GitHub Desktop.
{
"_meta": {
"template_version": 0
},
"fixtures": [
{
"name": "location",
"path": "/v1/terminal/locations",
"method": "post",
"params": {
"display_name": "Test Terminal Location (created by Stripe CLI)",
"address": {
"line1": "510 Townsend St",
"city": "San Francisco",
"state": "CA",
"postal_code": "94110",
"country": "US"
}
}
},
{
"name": "reader",
"path": "/v1/terminal/readers",
"method": "post",
"params": {
"registration_code": "simulated-wpe",
"location": "${location:id}"
}
},
{
"name": "payment_intent",
"path": "/v1/payment_intents",
"method": "post",
"params": {
"amount": 2000,
"currency": "usd",
"capture_method": "manual",
"payment_method_types": ["card_present"]
}
},
{
"name": "process_payment_intent",
"path": "/v1/terminal/readers/${reader:id}/process_payment_intent",
"method": "post",
"params": {
"payment_intent": "${payment_intent:id}"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment