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

133 lines
3.7 KiB
JSON
Raw Normal View History

[
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/tokens",
"status": 200,
"response": {
"id": "tok_17GCVJKaReE7xLUdzpXOGZ9v",
"card": {
"id": "card_17GCVJKaReE7xLUdKOWpllRX"
},
"type": "card"
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers",
"status": 200,
"response": {
"id": "cus_7VCvE20H99SoVJ",
"alipay_accounts": {
"has_more": false
},
"email": "normal@jo.com",
"metadata": {
"id": "00000000000000000000006a"
},
"sources": {
"data": [
{
"id": "card_17GCVJKaReE7xLUdKOWpllRX",
"customer": "cus_7VCvE20H99SoVJ"
}
],
"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_7VCvE20H99SoVJ",
"status": 200,
"response": {
"id": "cus_7VCvE20H99SoVJ",
"alipay_accounts": {
"has_more": false
},
"email": "normal@jo.com",
"metadata": {
"id": "00000000000000000000006a"
},
"sources": {
"data": [
{
"id": "card_17GCVJKaReE7xLUdKOWpllRX",
"customer": "cus_7VCvE20H99SoVJ"
}
],
"has_more": false
},
"subscriptions": {
"has_more": false
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/charges",
"status": 200,
"response": {
"id": "ch_17GCVLKaReE7xLUdb9DcZ4om",
"amount": 499,
"customer": "cus_7VCvE20H99SoVJ",
"metadata": {
"productID": "gems_5",
"gems": "5000",
"timestamp": "1449685049575"
},
"paid": true,
"refunds": {
"has_more": false
},
"source": {
"id": "card_17GCVJKaReE7xLUdKOWpllRX",
"customer": "cus_7VCvE20H99SoVJ"
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/charges",
"status": 200,
"response": {
"data": [
{
"id": "ch_17GCVLKaReE7xLUdb9DcZ4om",
"amount": 499,
"customer": "cus_7VCvE20H99SoVJ",
"metadata": {
"productID": "gems_5",
"gems": "5000",
"timestamp": "1449685049575"
},
"paid": true,
"refunds": {
"has_more": false
},
"source": {
"id": "card_17GCVJKaReE7xLUdKOWpllRX",
"customer": "cus_7VCvE20H99SoVJ"
}
}
],
"has_more": false
}
}
]