Created
March 7, 2022 20:17
-
-
Save cjavilla-stripe/fe2a6b9296a66e2e7a935b49ff8db930 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_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