codecombat/spec/fixtures/db-payment-stripe-test-01.json

104 lines
2.8 KiB
JSON
Raw Normal View History

[
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/tokens",
"status": 200,
"response": {
"id": "tok_17GCUvKaReE7xLUdo7q79Zbp",
"card": {
"id": "card_17GCUvKaReE7xLUdBp1HF9sT"
},
"type": "card"
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers",
"status": 200,
"response": {
"id": "cus_7VCubHuvGFt4nH",
"alipay_accounts": {
"has_more": false
},
"email": "normal@jo.com",
"metadata": {
"id": "000000000000000000000067"
},
"sources": {
"data": [
{
"id": "card_17GCUvKaReE7xLUdBp1HF9sT",
"customer": "cus_7VCubHuvGFt4nH"
}
],
"has_more": false
},
"subscriptions": {
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/charges",
"status": 200,
"response": {
"has_more": false
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7VCubHuvGFt4nH",
"status": 200,
"response": {
"id": "cus_7VCubHuvGFt4nH",
"alipay_accounts": {
"has_more": false
},
"email": "normal@jo.com",
"metadata": {
"id": "000000000000000000000067"
},
"sources": {
"data": [
{
"id": "card_17GCUvKaReE7xLUdBp1HF9sT",
"customer": "cus_7VCubHuvGFt4nH"
}
],
"has_more": false
},
"subscriptions": {
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/charges",
"status": 200,
"response": {
"id": "ch_17GCUxKaReE7xLUddy1fN9Nl",
"amount": 499,
"customer": "cus_7VCubHuvGFt4nH",
"metadata": {
"productID": "gems_5",
"gems": "5000",
"timestamp": "1447443579286"
},
"paid": true,
"refunds": {
"has_more": false
},
"source": {
"id": "card_17GCUvKaReE7xLUdBp1HF9sT",
"customer": "cus_7VCubHuvGFt4nH"
}
}
}
]