codecombat/spec/fixtures/db-payment-custom-stripe-test-02.json

95 lines
2.7 KiB
JSON
Raw Normal View History

[
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/tokens",
"status": 200,
"response": {
"id": "tok_17IOPVKaReE7xLUdJAvZ79Fe",
"card": {
"id": "card_17IOPVKaReE7xLUdhslZrW4t"
},
"type": "card"
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTMBOnMy9jbYM",
"status": 200,
"response": {
"id": "cus_7XTMBOnMy9jbYM",
"alipay_accounts": {
"has_more": false
},
"email": "normal@jo.com",
"metadata": {
"id": "00000000000000000000006b"
},
"sources": {
"data": [
{
"id": "card_17IOPVKaReE7xLUdhslZrW4t",
"customer": "cus_7XTMBOnMy9jbYM"
}
],
"has_more": false
},
"subscriptions": {
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/charges",
"status": 200,
"response": {
"data": [
{
"id": "ch_17IOPUKaReE7xLUd1gLXrdte",
"amount": 5000,
"customer": "cus_7XTMBOnMy9jbYM",
"metadata": {
"productID": "custom",
"timestamp": "1447445242091",
"description": "A sweet Coco t-shirt"
},
"paid": true,
"refunds": {
"has_more": false
},
"source": {
"id": "card_17IOPSKaReE7xLUdOOKz1MOG",
"customer": "cus_7XTMBOnMy9jbYM"
}
}
],
"has_more": false
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/charges",
"status": 200,
"response": {
"id": "ch_17IOPXKaReE7xLUdEinedgz6",
"amount": 73000,
"customer": "cus_7XTMBOnMy9jbYM",
"metadata": {
"productID": "custom",
"timestamp": "1447445242092"
},
"paid": true,
"refunds": {
"has_more": false
},
"source": {
"id": "card_17IOPVKaReE7xLUdhslZrW4t",
"customer": "cus_7XTMBOnMy9jbYM"
}
}
}
]