-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from gmile/fix-for-issue-63
Use POST in cards/update API method
- Loading branch information
Showing
3 changed files
with
118 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
[ | ||
{ | ||
"request": { | ||
"body": "source[object]=card&source[number]=4111111111111111&source[cvc]=123&source[exp_month]=12&source[exp_year]=2020", | ||
"headers": { | ||
"Authorization": "Bearer non_empty_secret_key_string", | ||
"Content-Type": "application/x-www-form-urlencoded", | ||
"User-Agent": "Stripe/v1 stripity-stripe/1.4.0" | ||
}, | ||
"method": "post", | ||
"options": [], | ||
"request_body": "", | ||
"url": "https://api.stripe.com/v1/customers/cus_8r2j7zRowtrski/sources" | ||
}, | ||
"response": { | ||
"body": "{\n \"id\": \"card_8wdRRGS43PIzGs\",\n \"object\": \"card\",\n \"address_city\": null,\n \"address_country\": null,\n \"address_line1\": null,\n \"address_line1_check\": null,\n \"address_line2\": null,\n \"address_state\": null,\n \"address_zip\": null,\n \"address_zip_check\": null,\n \"brand\": \"Visa\",\n \"country\": \"US\",\n \"customer\": \"cus_8wdRiJUcG4EOci\",\n \"cvc_check\": \"pass\",\n \"dynamic_last4\": null,\n \"exp_month\": 12,\n \"exp_year\": 2020,\n \"fingerprint\": \"Ze2h9CyiqlKZzGuV\",\n \"funding\": \"unknown\",\n \"last4\": \"1111\",\n \"metadata\": {},\n \"name\": null,\n \"tokenization_method\": null\n}\n", | ||
"headers": { | ||
"Server": "nginx", | ||
"Date": "Thu, 04 Aug 2016 11:38:04 GMT", | ||
"Content-Type": "application/json", | ||
"Content-Length": "569", | ||
"Connection": "keep-alive", | ||
"Access-Control-Allow-Credentials": "true", | ||
"Access-Control-Allow-Methods": "GET, POST, HEAD, OPTIONS, DELETE", | ||
"Access-Control-Allow-Origin": "*", | ||
"Access-Control-Max-Age": "300", | ||
"Cache-Control": "no-cache, no-store", | ||
"Request-Id": "req_8wdRp5na0zbVAg", | ||
"Stripe-Version": "2016-07-06", | ||
"Strict-Transport-Security": "max-age=31556926; includeSubDomains" | ||
}, | ||
"status_code": 200, | ||
"type": "ok" | ||
} | ||
}, | ||
{ | ||
"request": { | ||
"body": "exp_month=11", | ||
"headers": { | ||
"Authorization": "Bearer non_empty_secret_key_string", | ||
"Content-Type": "application/x-www-form-urlencoded", | ||
"User-Agent": "Stripe/v1 stripity-stripe/1.4.0" | ||
}, | ||
"method": "post", | ||
"options": [], | ||
"request_body": "", | ||
"url": "https://api.stripe.com/v1/customers/cus_8r2j7zRowtrski/sources/card_8wdRRGS43PIzGs" | ||
}, | ||
"response": { | ||
"body": "{\n \"id\": \"card_8wdRRGS43PIzGs\",\n \"object\": \"card\",\n \"address_city\": null,\n \"address_country\": null,\n \"address_line1\": null,\n \"address_line1_check\": null,\n \"address_line2\": null,\n \"address_state\": null,\n \"address_zip\": null,\n \"address_zip_check\": null,\n \"brand\": \"Visa\",\n \"country\": \"US\",\n \"customer\": \"cus_8wdRiJUcG4EOci\",\n \"cvc_check\": \"pass\",\n \"dynamic_last4\": null,\n \"exp_month\": 11,\n \"exp_year\": 2020,\n \"fingerprint\": \"Ze2h9CyiqlKZzGuV\",\n \"funding\": \"unknown\",\n \"last4\": \"1111\",\n \"metadata\": {},\n \"name\": null,\n \"tokenization_method\": null\n}\n", | ||
"headers": { | ||
"Server": "nginx", | ||
"Date": "Thu, 04 Aug 2016 11:38:04 GMT", | ||
"Content-Type": "application/json", | ||
"Content-Length": "569", | ||
"Connection": "keep-alive", | ||
"Access-Control-Allow-Credentials": "true", | ||
"Access-Control-Allow-Methods": "GET, POST, HEAD, OPTIONS, DELETE", | ||
"Access-Control-Allow-Origin": "*", | ||
"Access-Control-Max-Age": "300", | ||
"Cache-Control": "no-cache, no-store", | ||
"Request-Id": "req_8wdRLhCminnDBF", | ||
"Stripe-Version": "2016-07-06", | ||
"Strict-Transport-Security": "max-age=31556926; includeSubDomains" | ||
}, | ||
"status_code": 200, | ||
"type": "ok" | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters