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

66 lines
1.7 KiB
JSON
Raw Normal View History

[
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/tokens",
"status": 200,
"response": {
"id": "tok_17IOPDKaReE7xLUdOTkDGNQH",
"card": {
"id": "card_17IOPDKaReE7xLUdOPYVzwbP"
},
"type": "card"
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/customers/cus_7XTL5uSTRsbBAg",
"status": 402,
"response": {
"error": {
"type": "card_error"
}
}
},
{
"scope": "https://api.stripe.com:443",
"method": "GET",
"path": "/v1/charges",
"status": 200,
"response": {
"data": [
{
"id": "ch_17IOPCKaReE7xLUdjfj5TqZH",
"amount": 100,
"customer": "cus_7XTL5uSTRsbBAg",
"metadata": {
"productID": "gems_5",
"gems": "5000",
"timestamp": "1450207452790"
},
"paid": false,
"refunds": {
"has_more": false
},
"source": {
"id": "card_17IOPAKaReE7xLUdbLiixDCY",
"customer": "cus_7XTL5uSTRsbBAg"
}
}
],
"has_more": false
}
},
{
"scope": "https://api.stripe.com:443",
"method": "POST",
"path": "/v1/charges",
"status": 402,
"response": {
"error": {
"type": "card_error"
}
}
}
]