forked from stripe/stripe-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckout.session.completed.json
56 lines (56 loc) · 1.23 KB
/
checkout.session.completed.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"_meta": {
"template_version": 0
},
"fixtures": [
{
"name": "checkout_session",
"path": "/v1/checkout/sessions",
"method": "post",
"params": {
"success_url": "https://httpbin.org/post",
"cancel_url": "https://httpbin.org/post",
"payment_method_types": ["card"],
"line_items": [
{
"name": "t-shirt",
"description": "comfortable cotton t-shirt",
"amount": "1500",
"currency": "usd",
"quantity": 2
}
]
}
},
{
"name": "payment_page",
"path": "/v1/payment_pages",
"method": "get",
"params": {
"session_id": "${checkout_session:id}"
}
},
{
"name": "payment_method",
"path": "/v1/payment_methods",
"method": "post",
"params": {
"type": "card",
"card": {
"token": "tok_visa"
},
"billing_details": {
"email": "[email protected]"
}
}
},
{
"name": "payment_page_confirm",
"path": "/v1/payment_pages/${payment_page:id}/confirm",
"method": "post",
"params": {
"payment_method": "${payment_method:id}"
}
}
]
}