From d9153769b8133c5ea2abf19da680e623b209c6ae Mon Sep 17 00:00:00 2001 From: r888888888 Date: Mon, 24 Nov 2014 19:13:21 -0800 Subject: [PATCH] remove stripe references --- .../user_upgrades/_stripe_payment.html.erb | 8 - .../_unavailable_payment.html.erb | 4 - app/views/user_upgrades/new.html.erb | 6 - config/danbooru_default_config.rb | 8 - config/initializers/stripe.rb | 1 - .../vcr_cassettes/stripe-basic-to-gold.yml | 169 ------------------ .../vcr_cassettes/stripe-basic-to-plat.yml | 140 --------------- .../vcr_cassettes/stripe-gold-to-plat-bad.yml | 66 ------- .../vcr_cassettes/stripe-gold-to-plat.yml | 140 --------------- 9 files changed, 542 deletions(-) delete mode 100644 app/views/user_upgrades/_stripe_payment.html.erb delete mode 100644 app/views/user_upgrades/_unavailable_payment.html.erb delete mode 100644 config/initializers/stripe.rb delete mode 100644 test/fixtures/vcr_cassettes/stripe-basic-to-gold.yml delete mode 100644 test/fixtures/vcr_cassettes/stripe-basic-to-plat.yml delete mode 100644 test/fixtures/vcr_cassettes/stripe-gold-to-plat-bad.yml delete mode 100644 test/fixtures/vcr_cassettes/stripe-gold-to-plat.yml diff --git a/app/views/user_upgrades/_stripe_payment.html.erb b/app/views/user_upgrades/_stripe_payment.html.erb deleted file mode 100644 index a26c8ae68..000000000 --- a/app/views/user_upgrades/_stripe_payment.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -

Upgrading from Gold to Platinum will only cost $20. If you have any further questions or concerns, feel free to contact me at <%= mail_to Danbooru.config.contact_email, nil, :encode => :javascript %>.

- -<% if CurrentUser.user.level < User::Levels::GOLD %> - <%= stripe_button("Upgrade to Gold", 2000) %> - <%= stripe_button("Upgrade to Platinum", 4000) %> -<% elsif CurrentUser.user.level < User::Levels::PLATINUM %> - <%= stripe_button("Upgrade Gold to Platinum", 2000) %> -<% end %> diff --git a/app/views/user_upgrades/_unavailable_payment.html.erb b/app/views/user_upgrades/_unavailable_payment.html.erb deleted file mode 100644 index 404cc5672..000000000 --- a/app/views/user_upgrades/_unavailable_payment.html.erb +++ /dev/null @@ -1,4 +0,0 @@ - -

Account upgrades are presently not available.

\ No newline at end of file diff --git a/app/views/user_upgrades/new.html.erb b/app/views/user_upgrades/new.html.erb index bc07910bf..75ed82a88 100644 --- a/app/views/user_upgrades/new.html.erb +++ b/app/views/user_upgrades/new.html.erb @@ -82,12 +82,6 @@ - - <% if CurrentUser.safe_mode? %> - <%= render "stripe_payment" %> - <% else %> - <%= render "unavailable_payment" %> - <% end %> diff --git a/config/danbooru_default_config.rb b/config/danbooru_default_config.rb index 6146d35bb..5ad3d8f51 100644 --- a/config/danbooru_default_config.rb +++ b/config/danbooru_default_config.rb @@ -326,13 +326,5 @@ module Danbooru def shared_dir_path "/var/www/danbooru2/shared" end - - def stripe_secret_key - "sk_test_kHviyCxbt9kBxeu46TeefJQH" - end - - def stripe_publishable_key - "pk_test_5lKN65jYpUw8EActq8RMkQxH" - end end end diff --git a/config/initializers/stripe.rb b/config/initializers/stripe.rb deleted file mode 100644 index 43495044b..000000000 --- a/config/initializers/stripe.rb +++ /dev/null @@ -1 +0,0 @@ -Stripe.api_key = Danbooru.config.stripe_secret_key diff --git a/test/fixtures/vcr_cassettes/stripe-basic-to-gold.yml b/test/fixtures/vcr_cassettes/stripe-basic-to-gold.yml deleted file mode 100644 index 1fa1c7d7f..000000000 --- a/test/fixtures/vcr_cassettes/stripe-basic-to-gold.yml +++ /dev/null @@ -1,169 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.stripe.com/v1/tokens - body: - encoding: US-ASCII - string: card[number]=4242424242424242&card[exp_month]=1&card[exp_year]=2015&card[cvc]=123 - headers: - Accept: - - ! '*/*; q=0.5, application/xml' - Accept-Encoding: - - gzip, deflate - User-Agent: - - Stripe/v1 RubyBindings/1.16.0 - Authorization: - - Bearer sk_test_kHviyCxbt9kBxeu46TeefJQH - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-User-Agent: - - ! '{"bindings_version":"1.16.0","lang":"ruby","lang_version":"1.9.3 p327 (2012-11-10)","platform":"x86_64-darwin13.1.0","publisher":"stripe","uname":"Darwin - ayi-ltm1.internal.salesforce.com 13.4.0 Darwin Kernel Version 13.4.0: Sun - Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64"}' - Content-Length: - - '81' - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Fri, 07 Nov 2014 01:42:31 GMT - Content-Type: - - application/json;charset=utf-8 - Content-Length: - - '623' - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET, POST, HEAD, OPTIONS, DELETE - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Request-Id: - - ea64b1f2-9b94-4b6f-bb1c-c6e3784007b3 - Stripe-Version: - - '2014-10-07' - Strict-Transport-Security: - - max-age=31556926; includeSubDomains - body: - encoding: US-ASCII - string: ! "{\n \"id\": \"tok_14w1lj2Od3yiQVdJdZtBSbXI\",\n \"livemode\": false,\n - \ \"created\": 1415324551,\n \"used\": false,\n \"object\": \"token\",\n - \ \"type\": \"card\",\n \"card\": {\n \"id\": \"card_14w1lj2Od3yiQVdJ1fiG5eGJ\",\n - \ \"object\": \"card\",\n \"last4\": \"4242\",\n \"brand\": \"Visa\",\n - \ \"funding\": \"credit\",\n \"exp_month\": 1,\n \"exp_year\": 2015,\n - \ \"fingerprint\": \"xrSmurPsZCJllxXR\",\n \"country\": \"US\",\n \"name\": - null,\n \"address_line1\": null,\n \"address_line2\": null,\n \"address_city\": - null,\n \"address_state\": null,\n \"address_zip\": null,\n \"address_country\": - null,\n \"dynamic_last4\": null,\n \"customer\": null\n }\n}\n" - http_version: - recorded_at: Fri, 07 Nov 2014 01:42:31 GMT -- request: - method: post - uri: https://api.stripe.com/v1/charges - body: - encoding: US-ASCII - string: amount=2000¤cy=usd&card=tok_14w1lj2Od3yiQVdJdZtBSbXI&description=Upgrade%20to%20Gold - headers: - Accept: - - ! '*/*; q=0.5, application/xml' - Accept-Encoding: - - gzip, deflate - User-Agent: - - Stripe/v1 RubyBindings/1.16.0 - Authorization: - - Bearer sk_test_kHviyCxbt9kBxeu46TeefJQH - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-User-Agent: - - ! '{"bindings_version":"1.16.0","lang":"ruby","lang_version":"1.9.3 p327 (2012-11-10)","platform":"x86_64-darwin13.1.0","publisher":"stripe","uname":"Darwin - ayi-ltm1.internal.salesforce.com 13.4.0 Darwin Kernel Version 13.4.0: Sun - Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64"}' - Content-Length: - - '90' - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Fri, 07 Nov 2014 01:42:32 GMT - Content-Type: - - application/json;charset=utf-8 - Content-Length: - - '1362' - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET, POST, HEAD, OPTIONS, DELETE - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Request-Id: - - dad96b4a-bcc7-4537-9ddb-dd3b6093a0d2 - Stripe-Version: - - '2014-10-07' - Strict-Transport-Security: - - max-age=31556926; includeSubDomains - body: - encoding: US-ASCII - string: ! "{\n \"id\": \"ch_14w1lk2Od3yiQVdJuaBrKoSb\",\n \"object\": \"charge\",\n - \ \"created\": 1415324552,\n \"livemode\": false,\n \"paid\": true,\n \"amount\": - 2000,\n \"currency\": \"usd\",\n \"refunded\": false,\n \"card\": {\n \"id\": - \"card_14w1lj2Od3yiQVdJ1fiG5eGJ\",\n \"object\": \"card\",\n \"last4\": - \"4242\",\n \"brand\": \"Visa\",\n \"funding\": \"credit\",\n \"exp_month\": - 1,\n \"exp_year\": 2015,\n \"fingerprint\": \"xrSmurPsZCJllxXR\",\n - \ \"country\": \"US\",\n \"name\": null,\n \"address_line1\": null,\n - \ \"address_line2\": null,\n \"address_city\": null,\n \"address_state\": - null,\n \"address_zip\": null,\n \"address_country\": null,\n \"cvc_check\": - \"pass\",\n \"address_line1_check\": null,\n \"address_zip_check\": - null,\n \"dynamic_last4\": null,\n \"customer\": null\n },\n \"captured\": - true,\n \"refunds\": {\n \"object\": \"list\",\n \"total_count\": 0,\n - \ \"has_more\": false,\n \"url\": \"/v1/charges/ch_14w1lk2Od3yiQVdJuaBrKoSb/refunds\",\n - \ \"data\": []\n },\n \"balance_transaction\": \"txn_14w1lk2Od3yiQVdJ4tGMRyec\",\n - \ \"failure_message\": null,\n \"failure_code\": null,\n \"amount_refunded\": - 0,\n \"customer\": null,\n \"invoice\": null,\n \"description\": \"Upgrade - to Gold\",\n \"dispute\": null,\n \"metadata\": {},\n \"statement_description\": - null,\n \"fraud_details\": {\n \"stripe_report\": null,\n \"user_report\": - null\n },\n \"receipt_email\": null,\n \"receipt_number\": null,\n \"shipping\": - null\n}\n" - http_version: - recorded_at: Fri, 07 Nov 2014 01:42:32 GMT -- request: - method: post - uri: https://collector.newrelic.com/agent_listener/14//get_redirect_host?marshal_format=json - body: - encoding: UTF-8 - string: ! '[]' - headers: - Content-Encoding: - - identity - Host: - - collector.newrelic.com - Accept: - - ! '*/*' - User-Agent: - - NewRelic-RubyAgent/3.9.6.257 (ruby 1.9.3 x86_64-darwin13.1.0) zlib/1.2.5 - Content-Type: - - application/octet-stream - response: - status: - code: 200 - message: OK - headers: - Content-Length: - - '133' - body: - encoding: US-ASCII - string: ! '{"exception":{"message":"Invalid license key, please contact support@newrelic.com","error_type":"NewRelic::Agent::LicenseException"}}' - http_version: - recorded_at: Fri, 07 Nov 2014 01:42:32 GMT -recorded_with: VCR 2.9.0 diff --git a/test/fixtures/vcr_cassettes/stripe-basic-to-plat.yml b/test/fixtures/vcr_cassettes/stripe-basic-to-plat.yml deleted file mode 100644 index 0f3787329..000000000 --- a/test/fixtures/vcr_cassettes/stripe-basic-to-plat.yml +++ /dev/null @@ -1,140 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.stripe.com/v1/tokens - body: - encoding: US-ASCII - string: card[number]=4242424242424242&card[exp_month]=1&card[exp_year]=2015&card[cvc]=123 - headers: - Accept: - - ! '*/*; q=0.5, application/xml' - Accept-Encoding: - - gzip, deflate - User-Agent: - - Stripe/v1 RubyBindings/1.16.0 - Authorization: - - Bearer sk_test_kHviyCxbt9kBxeu46TeefJQH - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-User-Agent: - - ! '{"bindings_version":"1.16.0","lang":"ruby","lang_version":"1.9.3 p327 (2012-11-10)","platform":"x86_64-darwin13.1.0","publisher":"stripe","uname":"Darwin - ayi-ltm1.internal.salesforce.com 13.4.0 Darwin Kernel Version 13.4.0: Sun - Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64"}' - Content-Length: - - '81' - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Fri, 07 Nov 2014 01:42:32 GMT - Content-Type: - - application/json;charset=utf-8 - Content-Length: - - '623' - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET, POST, HEAD, OPTIONS, DELETE - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Request-Id: - - 1110fe22-457d-495f-9a80-1d5d595cc99c - Stripe-Version: - - '2014-10-07' - Strict-Transport-Security: - - max-age=31556926; includeSubDomains - body: - encoding: US-ASCII - string: ! "{\n \"id\": \"tok_14w1lk2Od3yiQVdJJ3XzlTSH\",\n \"livemode\": false,\n - \ \"created\": 1415324552,\n \"used\": false,\n \"object\": \"token\",\n - \ \"type\": \"card\",\n \"card\": {\n \"id\": \"card_14w1lk2Od3yiQVdJ8ddU76Aq\",\n - \ \"object\": \"card\",\n \"last4\": \"4242\",\n \"brand\": \"Visa\",\n - \ \"funding\": \"credit\",\n \"exp_month\": 1,\n \"exp_year\": 2015,\n - \ \"fingerprint\": \"xrSmurPsZCJllxXR\",\n \"country\": \"US\",\n \"name\": - null,\n \"address_line1\": null,\n \"address_line2\": null,\n \"address_city\": - null,\n \"address_state\": null,\n \"address_zip\": null,\n \"address_country\": - null,\n \"dynamic_last4\": null,\n \"customer\": null\n }\n}\n" - http_version: - recorded_at: Fri, 07 Nov 2014 01:42:32 GMT -- request: - method: post - uri: https://api.stripe.com/v1/charges - body: - encoding: US-ASCII - string: amount=4000¤cy=usd&card=tok_14w1lk2Od3yiQVdJJ3XzlTSH&description=Upgrade%20to%20Platinum - headers: - Accept: - - ! '*/*; q=0.5, application/xml' - Accept-Encoding: - - gzip, deflate - User-Agent: - - Stripe/v1 RubyBindings/1.16.0 - Authorization: - - Bearer sk_test_kHviyCxbt9kBxeu46TeefJQH - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-User-Agent: - - ! '{"bindings_version":"1.16.0","lang":"ruby","lang_version":"1.9.3 p327 (2012-11-10)","platform":"x86_64-darwin13.1.0","publisher":"stripe","uname":"Darwin - ayi-ltm1.internal.salesforce.com 13.4.0 Darwin Kernel Version 13.4.0: Sun - Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64"}' - Content-Length: - - '94' - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Fri, 07 Nov 2014 01:42:32 GMT - Content-Type: - - application/json;charset=utf-8 - Content-Length: - - '1366' - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET, POST, HEAD, OPTIONS, DELETE - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Request-Id: - - fcf2b1e8-ce3c-4f1d-8742-a422cc0a1d3a - Stripe-Version: - - '2014-10-07' - Strict-Transport-Security: - - max-age=31556926; includeSubDomains - body: - encoding: US-ASCII - string: ! "{\n \"id\": \"ch_14w1lk2Od3yiQVdJAQwoEXgF\",\n \"object\": \"charge\",\n - \ \"created\": 1415324552,\n \"livemode\": false,\n \"paid\": true,\n \"amount\": - 4000,\n \"currency\": \"usd\",\n \"refunded\": false,\n \"card\": {\n \"id\": - \"card_14w1lk2Od3yiQVdJ8ddU76Aq\",\n \"object\": \"card\",\n \"last4\": - \"4242\",\n \"brand\": \"Visa\",\n \"funding\": \"credit\",\n \"exp_month\": - 1,\n \"exp_year\": 2015,\n \"fingerprint\": \"xrSmurPsZCJllxXR\",\n - \ \"country\": \"US\",\n \"name\": null,\n \"address_line1\": null,\n - \ \"address_line2\": null,\n \"address_city\": null,\n \"address_state\": - null,\n \"address_zip\": null,\n \"address_country\": null,\n \"cvc_check\": - \"pass\",\n \"address_line1_check\": null,\n \"address_zip_check\": - null,\n \"dynamic_last4\": null,\n \"customer\": null\n },\n \"captured\": - true,\n \"refunds\": {\n \"object\": \"list\",\n \"total_count\": 0,\n - \ \"has_more\": false,\n \"url\": \"/v1/charges/ch_14w1lk2Od3yiQVdJAQwoEXgF/refunds\",\n - \ \"data\": []\n },\n \"balance_transaction\": \"txn_14w1lk2Od3yiQVdJjDRDaKkC\",\n - \ \"failure_message\": null,\n \"failure_code\": null,\n \"amount_refunded\": - 0,\n \"customer\": null,\n \"invoice\": null,\n \"description\": \"Upgrade - to Platinum\",\n \"dispute\": null,\n \"metadata\": {},\n \"statement_description\": - null,\n \"fraud_details\": {\n \"stripe_report\": null,\n \"user_report\": - null\n },\n \"receipt_email\": null,\n \"receipt_number\": null,\n \"shipping\": - null\n}\n" - http_version: - recorded_at: Fri, 07 Nov 2014 01:42:32 GMT -recorded_with: VCR 2.9.0 diff --git a/test/fixtures/vcr_cassettes/stripe-gold-to-plat-bad.yml b/test/fixtures/vcr_cassettes/stripe-gold-to-plat-bad.yml deleted file mode 100644 index b7a12f94b..000000000 --- a/test/fixtures/vcr_cassettes/stripe-gold-to-plat-bad.yml +++ /dev/null @@ -1,66 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.stripe.com/v1/tokens - body: - encoding: US-ASCII - string: card[number]=4242424242424242&card[exp_month]=1&card[exp_year]=2015&card[cvc]=123 - headers: - Accept: - - ! '*/*; q=0.5, application/xml' - Accept-Encoding: - - gzip, deflate - User-Agent: - - Stripe/v1 RubyBindings/1.16.0 - Authorization: - - Bearer sk_test_kHviyCxbt9kBxeu46TeefJQH - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-User-Agent: - - ! '{"bindings_version":"1.16.0","lang":"ruby","lang_version":"1.9.3 p327 (2012-11-10)","platform":"x86_64-darwin13.1.0","publisher":"stripe","uname":"Darwin - ayi-ltm1.internal.salesforce.com 13.4.0 Darwin Kernel Version 13.4.0: Sun - Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64"}' - Content-Length: - - '81' - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Fri, 07 Nov 2014 01:42:34 GMT - Content-Type: - - application/json;charset=utf-8 - Content-Length: - - '623' - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET, POST, HEAD, OPTIONS, DELETE - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Request-Id: - - 131d3a38-43aa-4ae1-9740-e745bbec695d - Stripe-Version: - - '2014-10-07' - Strict-Transport-Security: - - max-age=31556926; includeSubDomains - body: - encoding: US-ASCII - string: ! "{\n \"id\": \"tok_14w1lm2Od3yiQVdJsgew67au\",\n \"livemode\": false,\n - \ \"created\": 1415324554,\n \"used\": false,\n \"object\": \"token\",\n - \ \"type\": \"card\",\n \"card\": {\n \"id\": \"card_14w1ll2Od3yiQVdJbLrKD9YV\",\n - \ \"object\": \"card\",\n \"last4\": \"4242\",\n \"brand\": \"Visa\",\n - \ \"funding\": \"credit\",\n \"exp_month\": 1,\n \"exp_year\": 2015,\n - \ \"fingerprint\": \"xrSmurPsZCJllxXR\",\n \"country\": \"US\",\n \"name\": - null,\n \"address_line1\": null,\n \"address_line2\": null,\n \"address_city\": - null,\n \"address_state\": null,\n \"address_zip\": null,\n \"address_country\": - null,\n \"dynamic_last4\": null,\n \"customer\": null\n }\n}\n" - http_version: - recorded_at: Fri, 07 Nov 2014 01:42:33 GMT -recorded_with: VCR 2.9.0 diff --git a/test/fixtures/vcr_cassettes/stripe-gold-to-plat.yml b/test/fixtures/vcr_cassettes/stripe-gold-to-plat.yml deleted file mode 100644 index 6f0bf6a82..000000000 --- a/test/fixtures/vcr_cassettes/stripe-gold-to-plat.yml +++ /dev/null @@ -1,140 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.stripe.com/v1/tokens - body: - encoding: US-ASCII - string: card[number]=4242424242424242&card[exp_month]=1&card[exp_year]=2015&card[cvc]=123 - headers: - Accept: - - ! '*/*; q=0.5, application/xml' - Accept-Encoding: - - gzip, deflate - User-Agent: - - Stripe/v1 RubyBindings/1.16.0 - Authorization: - - Bearer sk_test_kHviyCxbt9kBxeu46TeefJQH - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-User-Agent: - - ! '{"bindings_version":"1.16.0","lang":"ruby","lang_version":"1.9.3 p327 (2012-11-10)","platform":"x86_64-darwin13.1.0","publisher":"stripe","uname":"Darwin - ayi-ltm1.internal.salesforce.com 13.4.0 Darwin Kernel Version 13.4.0: Sun - Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64"}' - Content-Length: - - '81' - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Fri, 07 Nov 2014 01:42:33 GMT - Content-Type: - - application/json;charset=utf-8 - Content-Length: - - '623' - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET, POST, HEAD, OPTIONS, DELETE - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Request-Id: - - 26c76792-4ff5-4154-b226-a309d79bdb0e - Stripe-Version: - - '2014-10-07' - Strict-Transport-Security: - - max-age=31556926; includeSubDomains - body: - encoding: US-ASCII - string: ! "{\n \"id\": \"tok_14w1ll2Od3yiQVdJ6kLDgI43\",\n \"livemode\": false,\n - \ \"created\": 1415324553,\n \"used\": false,\n \"object\": \"token\",\n - \ \"type\": \"card\",\n \"card\": {\n \"id\": \"card_14w1ll2Od3yiQVdJy4qdhKMh\",\n - \ \"object\": \"card\",\n \"last4\": \"4242\",\n \"brand\": \"Visa\",\n - \ \"funding\": \"credit\",\n \"exp_month\": 1,\n \"exp_year\": 2015,\n - \ \"fingerprint\": \"xrSmurPsZCJllxXR\",\n \"country\": \"US\",\n \"name\": - null,\n \"address_line1\": null,\n \"address_line2\": null,\n \"address_city\": - null,\n \"address_state\": null,\n \"address_zip\": null,\n \"address_country\": - null,\n \"dynamic_last4\": null,\n \"customer\": null\n }\n}\n" - http_version: - recorded_at: Fri, 07 Nov 2014 01:42:33 GMT -- request: - method: post - uri: https://api.stripe.com/v1/charges - body: - encoding: US-ASCII - string: amount=2000¤cy=usd&card=tok_14w1ll2Od3yiQVdJ6kLDgI43&description=Upgrade%20Gold%20to%20Platinum - headers: - Accept: - - ! '*/*; q=0.5, application/xml' - Accept-Encoding: - - gzip, deflate - User-Agent: - - Stripe/v1 RubyBindings/1.16.0 - Authorization: - - Bearer sk_test_kHviyCxbt9kBxeu46TeefJQH - Content-Type: - - application/x-www-form-urlencoded - X-Stripe-Client-User-Agent: - - ! '{"bindings_version":"1.16.0","lang":"ruby","lang_version":"1.9.3 p327 (2012-11-10)","platform":"x86_64-darwin13.1.0","publisher":"stripe","uname":"Darwin - ayi-ltm1.internal.salesforce.com 13.4.0 Darwin Kernel Version 13.4.0: Sun - Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64"}' - Content-Length: - - '101' - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Fri, 07 Nov 2014 01:42:33 GMT - Content-Type: - - application/json;charset=utf-8 - Content-Length: - - '1371' - Access-Control-Allow-Credentials: - - 'true' - Access-Control-Allow-Methods: - - GET, POST, HEAD, OPTIONS, DELETE - Access-Control-Max-Age: - - '300' - Cache-Control: - - no-cache, no-store - Request-Id: - - a3e5cda9-d4c4-47f6-8c4f-9f3638399300 - Stripe-Version: - - '2014-10-07' - Strict-Transport-Security: - - max-age=31556926; includeSubDomains - body: - encoding: US-ASCII - string: ! "{\n \"id\": \"ch_14w1ll2Od3yiQVdJcu6dUs9x\",\n \"object\": \"charge\",\n - \ \"created\": 1415324553,\n \"livemode\": false,\n \"paid\": true,\n \"amount\": - 2000,\n \"currency\": \"usd\",\n \"refunded\": false,\n \"card\": {\n \"id\": - \"card_14w1ll2Od3yiQVdJy4qdhKMh\",\n \"object\": \"card\",\n \"last4\": - \"4242\",\n \"brand\": \"Visa\",\n \"funding\": \"credit\",\n \"exp_month\": - 1,\n \"exp_year\": 2015,\n \"fingerprint\": \"xrSmurPsZCJllxXR\",\n - \ \"country\": \"US\",\n \"name\": null,\n \"address_line1\": null,\n - \ \"address_line2\": null,\n \"address_city\": null,\n \"address_state\": - null,\n \"address_zip\": null,\n \"address_country\": null,\n \"cvc_check\": - \"pass\",\n \"address_line1_check\": null,\n \"address_zip_check\": - null,\n \"dynamic_last4\": null,\n \"customer\": null\n },\n \"captured\": - true,\n \"refunds\": {\n \"object\": \"list\",\n \"total_count\": 0,\n - \ \"has_more\": false,\n \"url\": \"/v1/charges/ch_14w1ll2Od3yiQVdJcu6dUs9x/refunds\",\n - \ \"data\": []\n },\n \"balance_transaction\": \"txn_14w1ll2Od3yiQVdJ34rCa0xY\",\n - \ \"failure_message\": null,\n \"failure_code\": null,\n \"amount_refunded\": - 0,\n \"customer\": null,\n \"invoice\": null,\n \"description\": \"Upgrade - Gold to Platinum\",\n \"dispute\": null,\n \"metadata\": {},\n \"statement_description\": - null,\n \"fraud_details\": {\n \"stripe_report\": null,\n \"user_report\": - null\n },\n \"receipt_email\": null,\n \"receipt_number\": null,\n \"shipping\": - null\n}\n" - http_version: - recorded_at: Fri, 07 Nov 2014 01:42:33 GMT -recorded_with: VCR 2.9.0