From 4919ff215c4e8a7de4dc67b6ca9f6f6f66c819be Mon Sep 17 00:00:00 2001 From: Clarke Brunsdon Date: Thu, 15 Sep 2016 11:24:41 -0700 Subject: [PATCH 1/8] Kill vcr vcr bankruptcy --- .../checkouts_controller_spec.rb | 3 +- .../transactions_controller_spec.rb | 3 +- .../cassettes/braintree/authorize.yml | 106 ---- .../cassettes/braintree/cancel/not_found.yml | 58 -- .../cassettes/braintree/cancel/refund.yml | 396 ------------ .../cassettes/braintree/cancel/void.yml | 571 ------------------ spec/fixtures/cassettes/braintree/capture.yml | 201 ------ .../cassettes/braintree/create_profile.yml | 155 ----- spec/fixtures/cassettes/braintree/credit.yml | 302 --------- spec/fixtures/cassettes/braintree/payment.yml | 187 ------ .../fixtures/cassettes/braintree/purchase.yml | 108 ---- spec/fixtures/cassettes/braintree/token.yml | 93 --- spec/fixtures/cassettes/braintree/void.yml | 196 ------ .../cassettes/checkouts_controller/update.yml | 79 --- .../fixtures/cassettes/transaction/import.yml | 278 --------- .../transactions_controller/create.yml | 87 --- .../solidus_paypal_braintree/gateway_spec.rb | 30 +- .../transaction_import_spec.rb | 3 +- spec/spec_helper.rb | 8 - 19 files changed, 13 insertions(+), 2851 deletions(-) delete mode 100644 spec/fixtures/cassettes/braintree/authorize.yml delete mode 100644 spec/fixtures/cassettes/braintree/cancel/not_found.yml delete mode 100644 spec/fixtures/cassettes/braintree/cancel/refund.yml delete mode 100644 spec/fixtures/cassettes/braintree/cancel/void.yml delete mode 100644 spec/fixtures/cassettes/braintree/capture.yml delete mode 100644 spec/fixtures/cassettes/braintree/create_profile.yml delete mode 100644 spec/fixtures/cassettes/braintree/credit.yml delete mode 100644 spec/fixtures/cassettes/braintree/payment.yml delete mode 100644 spec/fixtures/cassettes/braintree/purchase.yml delete mode 100644 spec/fixtures/cassettes/braintree/token.yml delete mode 100644 spec/fixtures/cassettes/braintree/void.yml delete mode 100644 spec/fixtures/cassettes/checkouts_controller/update.yml delete mode 100644 spec/fixtures/cassettes/transaction/import.yml delete mode 100644 spec/fixtures/cassettes/transactions_controller/create.yml diff --git a/spec/controllers/solidus_paypal_braintree/checkouts_controller_spec.rb b/spec/controllers/solidus_paypal_braintree/checkouts_controller_spec.rb index 82348887..84e72534 100644 --- a/spec/controllers/solidus_paypal_braintree/checkouts_controller_spec.rb +++ b/spec/controllers/solidus_paypal_braintree/checkouts_controller_spec.rb @@ -4,8 +4,7 @@ RSpec.describe SolidusPaypalBraintree::CheckoutsController, type: :controller do include_context 'order ready for payment' - cassette_options = { cassette_name: "checkouts_controller/update" } - describe 'PATCH update', vcr: cassette_options do + describe 'PATCH update' do subject(:patch_update) { patch :update, params } let(:params) do diff --git a/spec/controllers/solidus_paypal_braintree/transactions_controller_spec.rb b/spec/controllers/solidus_paypal_braintree/transactions_controller_spec.rb index a9557e53..00a36fe0 100644 --- a/spec/controllers/solidus_paypal_braintree/transactions_controller_spec.rb +++ b/spec/controllers/solidus_paypal_braintree/transactions_controller_spec.rb @@ -10,8 +10,7 @@ allow(controller).to receive(:current_order) { order } end - cassette_options = { cassette_name: "transactions_controller/create" } - describe "POST create", vcr: cassette_options do + describe "POST create" do subject(:post_create) { post :create, params } let(:params) do diff --git a/spec/fixtures/cassettes/braintree/authorize.yml b/spec/fixtures/cassettes/braintree/authorize.yml deleted file mode 100644 index 6414c890..00000000 --- a/spec/fixtures/cassettes/braintree/authorize.yml +++ /dev/null @@ -1,106 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions - body: - encoding: UTF-8 - string: | - - - 10.00 - - true - - fake-paypal-future-nonce - sale - - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 201 - message: Created - headers: - Date: - - Tue, 06 Sep 2016 22:00:26 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"9c6175b1dda34c0adbd771dfdf536548" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 1bb7b319-415b-43f7-b94e-984ee04503bf - X-Runtime: - - '0.302415' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIAHo8z1cAA+xYS3PbNhC+51d4dIdJybYke2g6ydjNuJNDp4kP7cUDEisR - MQiwAChL/fVd8CXSBG13JoceehN3PyywD+x+UHSzz8XJDrThSl7P5qfh7ARk - qhiX2+vZw/dfyHp2E3+IrKbS0NQiKv5wchJxFmt6tr4sfmRRgB9OZiy1pYlp - aTOl+d/AoqAROa09FBAbKiAKqp9OlpZa424Hwo0iuCnED99uo2AsdmCaq1La - eB6ehmEUNF9OkYNOMyotoWnqhATPYyzkiRI2Cnza6rRlQjy6E8nF9czqEmZB - bZ2iLf0uqNIMkR5FqoFaYITaE+f79Yzhp+U5zOJFOF+S8JKEy++LxVUYXi2W - f2IEugXV+rJg/279cUETZ2MVeuA+6uTNz9fnF+vVuk0eSjdcG0skzeHl+VEp - 6LQuVXlB5cGjgZxy4ZE/Q2K49dkqMiV98g3dj6Ia9N2KEi4EFm3nos/Iz/fQ - WA2ARcGYBmN8IdhbkMylYhIiVEoFtz7zGrZ443xxUni1RHU5vOfFCtWHaXdq - tVtNqCgyungX6uwtlCwxGzwdZ6qXHPRpU0rmuyadxjRlTrWmh4ESA9lrRT4j - BdWWY2gMWCsgB7yqwxU+48ee9Zb5ntmE2jTzYjJeFP/X4n+0FvvZaToj2XAQ - zDS1sDMEtFaaYI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begjheLf/v0B2Gr+WKxCSksF8tlmC5WZ4zN5+es - F9h2bAwZJ4q/ffp6R1brMLxYXcI5wOXlxRleqBHuZzGIOiTvJxA47cutO8Dt - 3eeHL+RyntD1PF2erVe0ogK18hhHIFP/jfRfJL72VEW5jujd74/3tzii2JLN - KdusF7C8YKs2E4P9NDk+OONfVSZbVE/cR3cv0PhWQYs9CttbLQSKsRJt85Ro - Bt/d1/sv95+/3mHznoK0ZLCwVVn6XJ38o+DFLJzukx7ge7pV29U9BDYK2ssy - mLvxh38AAAD//wMANGaxaUkVAAA= - http_version: - recorded_at: Tue, 06 Sep 2016 22:00:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/braintree/cancel/not_found.yml b/spec/fixtures/cassettes/braintree/cancel/not_found.yml deleted file mode 100644 index a9bcd86b..00000000 --- a/spec/fixtures/cassettes/braintree/cancel/not_found.yml +++ /dev/null @@ -1,58 +0,0 @@ ---- -http_interactions: -- request: - method: get - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/fake_transaction_id - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - response: - status: - code: 404 - message: Not Found - headers: - Date: - - Wed, 07 Sep 2016 16:13:47 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Cache-Control: - - no-cache - X-Request-Id: - - 6836d393-14b3-4a4d-a103-b15e95425dee - X-Runtime: - - '0.048760' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIALs80FcAAwAAAP//AwAAAAAAAAAAAA== - http_version: - recorded_at: Wed, 07 Sep 2016 16:13:47 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/braintree/cancel/refund.yml b/spec/fixtures/cassettes/braintree/cancel/refund.yml deleted file mode 100644 index e449c9cf..00000000 --- a/spec/fixtures/cassettes/braintree/cancel/refund.yml +++ /dev/null @@ -1,396 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions - body: - encoding: UTF-8 - string: | - - - 40 - fake-paypal-future-nonce - - true - - sale - - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 201 - message: Created - headers: - Date: - - Wed, 07 Sep 2016 16:37:37 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"582c51de1ee16c3214133f372eb09ccf" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4b6c70b3-f5cf-476c-bd41-8a02d99bc762 - X-Runtime: - - '0.394275' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIAFFC0FcAA+xYS2/cNhC++1cYe6e1L6/tQJbjxG7gIocgiQ/txaDE0Yq1 - RCoktd7Nr+9Qb1lU7AJtEaAFfPDOfHzMgzPfyL/aZ+nxDpTmUlzOFifz2TG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59JVkQlme65rZVVoELwbwXULwjFGAWO - pXb0mOzTBJFJotnjxJNp9TX1Gz6ZevAgCccUVIdBh2+7Y4kA3KgOjH1nSKFR - keWvpNUtvt2hHnA6AtGfeUrE1NhSeUgjfW0z+20ztdjcRhKvG8Zur9rjJVpi - iYKA5hyvNJZXBntji/9hJ+BElXGDefwQS/XQMaX/sksck/DP5YJWUr+dqgWm - 1M1+i1BHiueT7Linb1tWSf1JjmxMMoIElFhvOpvbAInXUsaJxSs/O8fyAIIt - 30HtGddlFXPqoNpFNi1soidNTaXYQsZ3G26KtNl+zUC7Jgpbq6+oQEKFgPGu - GPOd5S4xwBTrsMfKJ1JFc6RFN4SF0tXkwsDgYK6b/jRQuWPTG3vcxw8xow84 - r4TD3joAm7NyX8OOgJipSNZdGxZR5JhqMCITtlvL88KAKzVqYkG4QPJdVGOk - /WqF8pymD/VHIN+bwg2pbc/WIQNeP+PHk8CX9ys58XspcLLMhrR5El2S1QRL - DMHnZvMQ0I5YOmZqa/QL3BRB2OTLTz5B+f9b2GNFTKEqW311u6ByHQs+Xf9G - luFFyFYxW54tN/RiuZlHK4jglPV83PCK4UCC4i/XH2/Jmp5H87Pl6fx8vT47 - hRjL6nPc30UxK4e8nmEiHSy29gI3t+/uP5Al3aw2MKeni/OLkitWys6PQKY+ - nfUH1skgVB69/fxwd0Oixfn6bHUaLS82q8V6MW8iMThPke57RPCrTESD6on7 - 6PYDRXAjocF2wuaBpymKMQ9NPWnWPfD2492Hu3cfb7GOT0GaaSE3ZVKy4P31 - p6/3n2/RIiR/nbj5NDHxSelZh+yqZ4B9dzFskz2le+XEx+qXYU0OtC1rXKKa - FzbYLjj6EwAA//8DANSB3xycFwAA - http_version: - recorded_at: Wed, 07 Sep 2016 16:37:37 GMT -- request: - method: put - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/ga5c9qfn/settle - body: - encoding: UTF-8 - string: '' - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 200 - message: OK - headers: - Date: - - Wed, 07 Sep 2016 16:37:39 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"a3736f2d5394ef2bdc4da42b92c94514" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - d79be694-d5fb-4d15-892d-cd28f20f810f - X-Runtime: - - '1.937242' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIAFNC0FcAA+xYS3PbNhC+51d4dIept+WMzMSJ3Yw7OWSS+NBeNCCxElGD - AAOAstRf3wVfIk0wdjttp9N2Rgdx98MCu9gn1m8OqTjbgzZcyavR5Hw8OgMZ - K8bl7mp0//UHshq9CV+trabS0NgiKnx1drbmLNzRRXz5bSvXAX44mrHU5iY0 - YK0Atg6qb8eyxwxCQwWsg+Kvo8W51rjVkXCjCO4I4f2Xm3XQJzswTVUubTgf - n4/H66D6cowUdJxQaQmNY0ckeBhjIY2UsOvAxy2OmkfEwzuTXFyNrM5hFJTS - KcrSL4IqzRDpYcQaqAVGqD1zul+NGH5ansIonI4nSzK+JOOLr5Pl69kF/n5G - CzQLivV5xl6+foXrTwsqOxurUAP3Udzc0xMiccu1sUTSFDxMQYd5sUozKo8e - DqSUCw/9ESLDrU9Wlijpo2/poWfUoK3VOuJCoMP+zRoaqwHQJxjTYIzPBAcL - krmbGIQIFVPBrU+8hh1Gm89OCiNLFLHhPS86qD4Oq1Oy3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aVcmLoad1j+u2kNdv7tu5jea9YL4XBwBsBWRPuP4eZh - 9FQcTXwC8zj2zHB4IwO6O82z3ILPNao2inCJo0ZeztTuCQ/pGRWb6kVsHQzh - uo18S9duvz9/Mg0MAp+XV0wA75XEOTrtDgmD6KI1TzChEgw354eAemyV54HB - Kf1MJ44gbGmK96+w+P8WDpj8BJRJus1uFpSmY+Gn65/INLqM2GzLphfTJb2c - LsfxDGJYsJaN6y6qO34h+cv1x1syp6t4fDFdjFfz+cUCtphCn+L+rIa6NMjL - +2lsfvOdO8DN7bv7D2RKl7MljOlisrosOuOSebIjkKF3xPZ4PngJpUVvP2/u - bkg8Wc0vZot4ermcTeaTcX0Tnf00Ob2+hD+qRNaoFrmNbp5jwhsFNfZErANc - CCSjH9pqrq7q3e3Huw937z7euveiAUg9G2W2cEoWvr/+9PX+8y1qhK3uiVw/ - xAy8rz0pj6fsGWKNnXTLZIvpXznwcv88rPaBpmT1U1QdYR1x4avfAAAA//8D - AIXviGeoGAAA - http_version: - recorded_at: Wed, 07 Sep 2016 16:37:39 GMT -- request: - method: get - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/ga5c9qfn - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - response: - status: - code: 200 - message: OK - headers: - Date: - - Wed, 07 Sep 2016 16:37:39 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"a3736f2d5394ef2bdc4da42b92c94514" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - a12cdb3c-0073-483b-a0e9-a1d7606cbad9 - X-Runtime: - - '0.156326' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIAFNC0FcAA+xYS3PbNhC+51d4dIept+WMzMSJ3Yw7OWSS+NBeNCCxElGD - AAOAstRf3wVfIk0wdjttp9N2Rgdx98MCu9gn1m8OqTjbgzZcyavR5Hw8OgMZ - K8bl7mp0//UHshq9CV+trabS0NgiKnx1drbmLNzRRXz5bSvXAX44mrHU5iY0 - YK0Atg6qb8eyxwxCQwWsg+Kvo8W51rjVkXCjCO4I4f2Xm3XQJzswTVUubTgf - n4/H66D6cowUdJxQaQmNY0ckeBhjIY2UsOvAxy2OmkfEwzuTXFyNrM5hFJTS - KcrSL4IqzRDpYcQaqAVGqD1zul+NGH5ansIonI4nSzK+JOOLr5Pl69kF/n5G - CzQLivV5xl6+foXrTwsqOxurUAP3Udzc0xMiccu1sUTSFDxMQYd5sUozKo8e - DqSUCw/9ESLDrU9Wlijpo2/poWfUoK3VOuJCoMP+zRoaqwHQJxjTYIzPBAcL - krmbGIQIFVPBrU+8hh1Gm89OCiNLFLHhPS86qD4Oq1Oy3WpCRZbQ6YtQs+dQ - Msfb4HH/plqXgzptc8l8UdJwTOXlVGt67DDRkK005BOSUW05mqZMQSlgpHZX - +ITT3CZK81+fF98SG1EbJy6bnEJwU6edzQJznwdaiEh4lv3vqv9QV23fTpU3 - yZaDYKZylb0hoLXSBG2UKWnAq1qBa6neRYd3WMC+C6hFdG/NL+W7mEKN/b6/ - sk900B2WjUd6RM4vUAYBViLTv9h1plWMu6Ed6uChBdxrjBO4u+Nk7Er5EHdg - pUVHDa8z5OxdizGEKCzIGHenQhv3Yb1T7hWP3T1s8X5xBbpIBLqvS+4aAdyl - rPYDKEsPpGxRvCw4QJrVxTxSSgCVo3BLhXHtUQOomwfUgsRUs8qTrXoAX6hF -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oFrmNbp5jwhsFNfZErANc - CCSjH9pqrq7q3e3Huw937z7euveiAUg9G2W2cEoWvr/+9PX+8y1qhK3uiVw/ - xAy8rz0pj6fsGWKNnXTLZIvpXznwcv88rPaBpmT1U1QdYR1x4avfAAAA//8D - AIXviGeoGAAA - http_version: - recorded_at: Wed, 07 Sep 2016 16:37:39 GMT -- request: - method: post - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/ga5c9qfn/refund - body: - encoding: UTF-8 - string: | - - - 40.00 - - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 201 - message: Created - headers: - Date: - - Wed, 07 Sep 2016 16:37:40 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"c32c71d3e107358d9011531418ed730b" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 1cc0cb31-e1b0-4030-bdde-c4fbf265f4e5 - X-Runtime: - - '0.288949' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIAFRC0FcAA+xYS3PbNhC++1d4dIdJSbYcZWjmZSeTTqaTSeNDe/GAxEpE - TAIMAMpSf30X4ENkCCbqdNrJoTdp98NjF/v4ltGLfZGf70BpLsXNbH4Rzs5B - pJJxsb2Z3X9+S57NXsRnkVFUaJoaRMVn5+cRZ/F6me2LL9tDFOAfK9OGmkrH - GozJcXkUNAKrM4cS4lQB4yY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dvGOEwZZqJhGQcQ1Ad - Bi2+a48OAbhR8zA2z5BZo6IoT2TbHb7boR2FqqTgBp/wYSPVw5El9Ecjh5+a - bWp/aeS4XZy/bEcbG+nI9HVL6+3FezRFSyxYENOS4wXH8tr8YGz/v+0Sz3T4 - c7mgkzRhU1f/nPqZX5XoVPFykhn29F21dmSYlMhEJCNIvoj1preuD5B4LWW8 - WLzyN+fYFkiw23loLePaJbBXB/Uusq3eE+V4ak7D6jm+23BTpIx2vke7xmMy - DtgCxjvg++5si94ATDVXe4R8IvXLjbRoclIpXTN0BgbHUt2W4YHK/w49eu8/ - fogZfb44EQ576wDsQcp/DTveYFQiKfVtWKWph72j9ydst5aXlQFfGDT9k3CB - JLOqxyX7zQblJc0fmk8gUTCFG1K4nq1DpncZ2lQ/Afjj/Rz1eyMFTlDFkB1O - oh0ny7CcEEwtG5OAdmzkmPg5o39AwRCEvcx98Ijd75ewx+qXQ12i+upuQe06 - Fn989TtZJOuELTdscb1Y0fViFaZLSOGK9Xzcts8h8fbOkf+cLdVGn06WkNlU - W3vH27vX9+/Igq6WKwjp1fzZ2tGeWnn0FZCpj0P94WvS0bXX7j49vL8l6fzZ - 5fXyKl2sV8v55TxsvT04T5HjbB3/IjPRonriProbtuNbCS32KGyTOM9RjLFm - mqmp6Wl3H96/e//6wx3W5SlIS3xL4wKPxW9effx8/+kOLUIecxS3Y3bzaST+ - dPf2/tdbhzoKz0atb7pUeoCnFKy2iHsIfBS0KTJos/HZXwAAAP//AwAqDur1 - XRYAAA== - http_version: - recorded_at: Wed, 07 Sep 2016 16:37:40 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/braintree/cancel/void.yml b/spec/fixtures/cassettes/braintree/cancel/void.yml deleted file mode 100644 index 0cf50658..00000000 --- a/spec/fixtures/cassettes/braintree/cancel/void.yml +++ /dev/null @@ -1,571 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions - body: - encoding: UTF-8 - string: | - - - 40 - fake-paypal-future-nonce - sale - - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 201 - message: Created - headers: - Date: - - Wed, 07 Sep 2016 16:13:44 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"8e65b36e6f9008e8dfd17a39b132cc52" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 8c959e12-eb95-445e-9a10-f4b55ac77bc2 - X-Runtime: - - '0.427972' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIALg80FcAA+xYS2/jNhC+768IfGdkJ06cXSjaB5IuUuyh6G4O7SWgxJHF - hiJZknLs/fUd6mUpojYpUBQ99GbNfBxyHpz56Pj9vhQnOzCWK3m9WJ0uFycg - M8W43F4v7r/9RK4W75M3sTNUWpo5RCVvTk5izpLVCqx+zCGO8MPLrKOusgmt - XKEM/w4sjlqR17qDhsRSgfj6p5dllTG424FwqwhuCsn915s4moo9mJaqki5Z - L0+Xyzhqv7yiBJMVVDpCs8wLCZ7HOihTJVwchbT1aauUBHQnkovrhTMVLKLG - OkVb5lVQZRgiA4rMAHXACHUn3vfrBcNPx0tYJGfL1SVZviXLzbfV5bvV+bv1 - +neMQL+gXl9p9vfWHxe0cbZOoQf+o07e8xOiMOfGOiJpCQGloPO6TJWaykNA - AyXlIiB/gtRyF7KlCyVD8pzu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MbjsrA4RPMdp1opArn - ZkBww9uPMZOn+ivhsPcBwDZswsfwZB8rFWlZyGCVZQH+ihmZ8d17risHodJo - RwjhEmlW1TwY/P8TKNdUPLTP/Tiaw41JzMDXMdcZ8phZ0Mu2aubzkq2eHrkC - uwrBG+ZLD/DouQo8mLyfLxAPBGEHr9/zSf37A+yxDQpoOtVQ3S9oosWSXz7+ - Rs4YW59dXqw3F+eb9GoJl+c0P2PL1SCs3dAYs00Uf/345ZZc5Olmnaf5JmMA - kF1iJ32O+6f4QxOQ19MHnPXV1h/g5vbT/Wdytcnz9Xl6BW/ZuiYCjfIYRyBz - /4sMXyOzSWgievvrw90NuaBXm8u3+So/X6VXF8u8y8RoP0OOj83kZ1XIDjUQ - D9H96zO5UdBhj8LuTguBYqxD1z4j2rF3++Xu892nL7fYuucgHRXUri7KkKuz - fxI8m4TzXTIAfE2v6np6gL7GUXdVRlM3efMXAAAA//8DAH+j2KpEFQAA - http_version: - recorded_at: Wed, 07 Sep 2016 16:13:44 GMT -- request: - method: get - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/11espkfe - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - response: - status: - code: 200 - message: OK - headers: - Date: - - Wed, 07 Sep 2016 16:13:44 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"8e65b36e6f9008e8dfd17a39b132cc52" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 8bfd5119-98db-46e7-8ef7-e276b25ab531 - X-Runtime: - - '0.204936' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIALg80FcAA+xYS2/jNhC+768IfGdkJ06cXSjaB5IuUuyh6G4O7SWgxJHF - hiJZknLs/fUd6mUpojYpUBQ99GbNfBxyHpz56Pj9vhQnOzCWK3m9WJ0uFycg - M8W43F4v7r/9RK4W75M3sTNUWpo5RCVvTk5izpLVCqx+zCGO8MPLrKOusgmt - XKEM/w4sjlqR17qDhsRSgfj6p5dllTG424FwqwhuCsn915s4moo9mJaqki5Z - L0+Xyzhqv7yiBJMVVDpCs8wLCZ7HOihTJVwchbT1aauUBHQnkovrhTMVLKLG - OkVb5lVQZRgiA4rMAHXACHUn3vfrBcNPx0tYJGfL1SVZviXLzbfV5bvV+bv1 - +neMQL+gXl9p9vfWHxe0cbZOoQf+o07e8xOiMOfGOiJpCQGloPO6TJWaykNA - AyXlIiB/gtRyF7KlCyVD8pzuJ0GNhl7FKRcCa/Zf9tA6A4A1wZgBa0Mh2DuQ - zGdiFiJURgV3IfMGtnjhQnFSeLNEfTeC58UCNYd5dxq1X02o0AU9exXq/CWU - rDAbPJtmapAc9CmvJAvdkl5j2yqnxtDDSImBHHSikBFNjeMYGgvOCSgBb+p4 - Rcj4sWW9ZH5gNqUuK4KYgmv9fy3+R2txmJ22MZKcg2C2rYWdJWCMMgRjpJW0 - EHStxg1cH6OTO5xQPwR0JsZZC1v5IaZ2Y7ebrpwKPXSLc+GJHlDzBzRVjqPG - ThMba6My3A3j0N0OWsODwTiCxzuuln5Wz2lnVjos1OSjRs3Oc4g5RB1Bxrg/ - FcZ4Cpuccqd45vOQY35xBZZICmbqS+UnPe7SjPMZlKN70nCQoAr2UOpuWqdK - CaBykeRUWM9/ekDHDtALklHD2kp26hFCVy3lIWndLtahC4EWiT9CsBlobpqM - lkq6IomjiWiCPAA1Y2AtaXdrxzHxTcS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A - http_version: - recorded_at: Wed, 07 Sep 2016 16:13:44 GMT -- request: - method: put - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/11espkfe/void - body: - encoding: UTF-8 - string: '' - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 200 - message: OK - headers: - Date: - - Wed, 07 Sep 2016 16:16:21 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"f200ce142030ce7bab0fa582135c33c5" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 68d33fa5-b71b-488a-82a3-df96ddd8f786 - X-Runtime: - - '0.198157' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIAFU90FcAA+xYS2/jNhC+51cEvjOyE8dOAkW7WSRdpNhD0d0c2ktAiSOL - DUWqJOXY/fUd6mUpojYGWhR76M2e+fiY90eFH3a5ON2CNlzJ29nibD47BZko - xuXmdvb07SdyNfsQnYRWU2loYhEVnZyehpxFiwWY4iWFMMA/TmYstaWJtooz - YGHQ/HUauy8gMlQgtvrpZEmpNZ60J9woggdC9PT1PgzGYgemuSqljZbzs/k8 - DJp/TpGDTjIqLaFJ4oQE72Is5LESNgx82uqmZUw8ulPJxe3M6hJmQb07xb30 - UVClGSI9ikQDtcAItafO9tsZw7+W5zCLzueLFZlfk/n622J1s7i4WS5/Rw90 - C6r1ZcGOXL+6OV/g+s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QrWq4N6 - F9V264n2O/UAw245vttwU2SI7uGOdk3UcKevpx6+piWMd8WYb92YTgGmBqw7 - Vr2SOpojLbohLrWpSToDi29Q07bigcofmx7D9x8/xIy+VRwJh51zAM4h7b+G - e+1gpiIv9W1YJomHwGNEJmx3lhelBV9qNDOUcIk8s6xfTO4DDcoLKp6b7x1h - MIUbsrierUOy1ydyk6D396qo33t7dfzQZthVCFaYSz3Aq6fK82J0dr7DvBCE - I6z6oBFVvz/CDluggLpT9dXdgtpbLPrl7jdyztjyfHW5XF9erOOrOawuaHrO - 5oueW9upOaTbKP569+WBXKbxepnG6TphAJCssJO+xf1bBKp2yPH8CclOuXEX - uH/49PSZXK3TdHkRX8E1W1ZMqFYe/Ahk6sNQ/zk2GYTaow+/Pj/ek0t6tV5d - p4v0YhFfXc7TNhKD8zQ5vLajn1UmW1RP3Ed3z+/oXkGLPQjbmhYCxZiHtnlH - NWPv4cvj58dPXx6wdU9BWi5c2CopfaZOfiV5Mwmnu6QHeEyvanu6h7+HQVsq - g6kbnfwNAAD//wMAfdmG1kEWAAA= - http_version: - recorded_at: Wed, 07 Sep 2016 16:16:21 GMT -- request: - method: post - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions - body: - encoding: UTF-8 - string: | - - - 40.00 - fake-paypal-future-nonce - sale - - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 201 - message: Created - headers: - Date: - - Wed, 07 Sep 2016 16:28:54 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"020404016d9ee73964193aca880f8994" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - beb98cf9-fadd-45f0-8f4e-37c6125b93db - X-Runtime: - - '0.475371' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIAEZA0FcAA+xYS2/jNhC+768IfGekrJ1sHCjaB5IuUuyh6G4O7SWgyLHF - DUWqJOXY/fUd6mUpojYpUBQ99GbNfBxyHpz56OT9vpAnOzBWaHW9ODuNFyeg - mOZCba8X999+IpeL9+mbxBmqLGUOUembk5NE8HS5MvRiyb4nEX54mXXUVTal - lcu1EX8CT6JW5LXuUEJqqYQkqn96GauMwd0ORFhNcFNI77/eJNFU7MG00JVy - 6So+jeMkar+8ogDDcqocoYx5IcHzWAdFpqVLopC2Pm2VkYDuRAl5vXCmgkXU - WKdoy7wKqg1HZEDBDFAHnFB34n2/XnD8dKKARfo2Prsg8ZrE776dXVy9vbw6 - X/2OEegX1Ourkv+99ccFbZyt0+iB/6iT9/yEKNwIYx1RtICAUtJ5HdNFSdUh - oIGCChmQP0FmhQvZKnOtQvIN3U+CGg29SjIhJdbsv+yhdQYAa4JzA9aGQrB3 - oLjPxCxEakalcCHzBrZ44UJx0nizZH03gufFAjWHeXcatV9NqCxz+vZVqOVL - KFVhNgSbZmqQHPRpUykeuiW9xrZVTo2hh5ESAznoRCEjJTVOYGgsOCehALyp - 4xUh48eW9ZL5gdmMOpYHMbkoy/9r8T9ai8PstI2RbARIbtta2FkCxmhDMEal - VhaCrtW4getjdHqHE+qHgM7EOGthKz/E1G7sdtOVU6GHbnEuPNEDar5DU+U4 - auw0sUlpNMPdMA7d7aA1PBiMI3i841nsZ/Wcdmalw0JNP5ao2XkOMYeoI8i5 - 8KfCGE9hk1PutGA+DxvML67AEsnATH2p/KTHXZpxPoNydE8aDhJUwR6KspvW - mdYSqFqkGyqt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jn - k3C+SwaAr+lVXU8P0Nck6q7KaOqmb/4CAAD//wMAoef7T0QVAAA= - http_version: - recorded_at: Wed, 07 Sep 2016 16:28:54 GMT -- request: - method: get - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/34ra63cj - body: - encoding: US-ASCII - string: '' - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - response: - status: - code: 200 - message: OK - headers: - Date: - - Wed, 07 Sep 2016 16:28:54 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"020404016d9ee73964193aca880f8994" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 32272fb8-7f7f-4474-adbe-5f1c60f809e5 - X-Runtime: - - '0.104416' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIAEZA0FcAA+xYS2/jNhC+768IfGekrJ1sHCjaB5IuUuyh6G4O7SWgyLHF - DUWqJOXY/fUd6mUpojYpUBQ99GbNfBxyHpz56OT9vpAnOzBWaHW9ODuNFyeg - mOZCba8X999+IpeL9+mbxBmqLGUOUembk5NE8HS5MvRiyb4nEX54mXXUVTal - lcu1EX8CT6JW5LXuUEJqqYQkqn96GauMwd0ORFhNcFNI77/eJNFU7MG00JVy - 6So+jeMkar+8ogDDcqocoYx5IcHzWAdFpqVLopC2Pm2VkYDuRAl5vXCmgkXU - WKdoy7wKqg1HZEDBDFAHnFB34n2/XnD8dKKARfo2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wdb0GddBY0V2zmuk+c+8PbBbTs42NIkHy71b0 - a6aEe33T9PExqWBqFXO+81NqAzA3X/y2+ok02ZxoMQxZZWzDUTk4fILZrhON - VOHcDAhuePsxZvJUfyUc9j4A2IZN+Bie7GOlIi0LGawYC/BXzMiM797zsnIQ - Ko12hBChkGZVzYPB/z+B8pLKh/a5n0RzuDGJGfg65jpDHjMLetlWzXxestXT - I5djVyF4w3zpAR59owMPJu/nC8QDQdjB6/d8Wv/+AHtsgxKaTjVU9wuaaPH0 - l4+/kfNsucrii+wdzej5ZcyWqzUsN/xsENZuaIzZJoq/fvxyS9Z8ldH1cr3m - jL1jFBdOcP8Uf2gC8nr6gLO+2voD3Nx+uv9MGLp3yeKYXlxmNRFolMc4Apn7 - X2T4GplNQhPR218f7m4IMIwLO+eMxuew3qy7TIz2M+T42Ex/1rnqUAPxEN2/ - PtMbDR32KOzutJQoxjp07TOiHXu3X+4+3336coutew7SUcHS1UUZcnX2T4Jn - k3C+SwaAr+lVXU8P0Nck6q7KaOqmb/4CAAD//wMAoef7T0QVAAA= - http_version: - recorded_at: Wed, 07 Sep 2016 16:28:54 GMT -- request: - method: put - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/34ra63cj/void - body: - encoding: UTF-8 - string: '' - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 200 - message: OK - headers: - Date: - - Wed, 07 Sep 2016 16:28:54 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"fc00f9f60784582dbbfbb2841e4e3aec" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - af0cf32d-248c-426b-8658-a787aa2d36f1 - X-Runtime: - - '0.170507' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIAEZA0FcAA+xYS3PbNhC+51d4dIdJR7JjZWjmMXYz7uTQaeJDe/GAwEpE - DAIsAMpSf30XfIk0wdidaTs59Cbtfnjs+wOTd/tCnuzAWKHV1eLsNF6cgGKa - C7W9Wtx9/YlcLt6lrxJnqLKUOUSlr05OEsHT5crQiyX7lkT4x8uso66y6U4L - DjyJ2r9e4w4lpJZKSKL6p5exyhg86UCE1QQPhPTuy3USTcUeTAtdKZeu4tM4 - TqL2n1cUYFhOlSOUMS8keBfroMi0dEkU0tY3rTIS0J0oIa8WzlSwiJrdKe5l - XgTVhiMyoGAGqANOqDvxtl8tOP51ooBF+jo+uyDxmsRvvp5dvH19+fZ89Tt6 - oF9Qr69K/vfWHxe0frZOowX+Tx24pzdE4UYY64iiBQSUks7rmC5Kqg4BDRRU - yID8ETIrXGivMtcqJN/Q/cSp0dCqJBNSYr7+xxZaZwAwJzg3YG3IBXsHivtI - zEKkZlQKF9rewBaLLeQnjZUl69oI3hcT1BzmzWnUfjWhsszp6xehls+hVIXR - EGwaqUFw0KZNpXioSnqNbbOcGkMPIyU6ctCFQpuU1DiBrrHgnIQCsFLHK0Kb - 08rl2og/n99+sG1GHcuDmFyU5f+5+IPm4jA6bWMkGwGS2zYXdpaAMdoQ9FGp - lYWgaTVuYPoYnd7ihPouoNtiHLXwLt/F1GbsdtOVU6GHbnEuPNIDar5Bk+U4 - auw0sElpNMPT0A9dddAaHnTGETw+8Sz2s3pOO7PSYaKmH0rU7DyHmEPUHuRc - +Fuhj6ewyS2RlTAfhw3GF1dgimRgprZUftLjKc04n0E5uicNBwmqYA9F2U3r - TGsJVC3SD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1Q79m4+3366/fj5Blv3 - HKTjwqWrkzJk6uxXkieTcL5LBoAv6VVdTw/w9yTqSmU0ddNXfwEAAP//AwD8 - 5kDZQRYAAA== - http_version: - recorded_at: Wed, 07 Sep 2016 16:28:54 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/braintree/capture.yml b/spec/fixtures/cassettes/braintree/capture.yml deleted file mode 100644 index c791495e..00000000 --- a/spec/fixtures/cassettes/braintree/capture.yml +++ /dev/null @@ -1,201 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions - body: - encoding: UTF-8 - string: | - - - 40 - fake-paypal-future-nonce - sale - - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 201 - message: Created - headers: - Date: - - Tue, 06 Sep 2016 21:24:59 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"319b2309101e19802e42d34a1112089d" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 0cf1c6af-df39-400f-adfa-fb4991c98a76 - X-Runtime: - - '0.334242' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIACs0z1cAA+xYS3PbNhC+51d4dIdJybIjZ2jmMXYz7uTQaeJDe/GAxFJE - DAIMAMpSf30XfIk0wViHTqeH3sTdD8C+sPtB0ft9Ic52oA1X8maxPA8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Kw1Onyi5milVpTaYHYetlDaiS/EcF7Q1CMWaBY6ud - XCZ3NUEWihj2NHNlen1L/cZXpn16kJxjCerDaML307FGAG7UJsbdM6TQqCjK - E2l1j+93+Ombp0bMPVuaCBmkr31lf+heLa62kcSbjrE7Uwe8xChsURDTkqNJ - U3njcPDS417SRqlpdoL6eU6VmFTzcpYHDfR9c6pJHilx7ipGkGoQF09vGxsh - 0SxtvVg0+cU5ruMTbO4eEse4qevVq4NmF9U1q5nuM/f+wGYxtW28KRIk925F - v2ZKuNc3TR8fkxKmu2LOd25KZQBz88Udq55Jk82JFsOQVNo0HJWBxSeY6TrR - SOXPzYDg+o8fYyZP9RPhsHcBwDas/WY4so+VirTMt2GVph7+ihmZ8d15XlYW - fKXRjhDCJdKsqnkwuP8nUF5S8dg+96NgDjcmMQNfx1xnyGNmQa/vVTOf1/bq - 6ZHNsasQvGGu9ABNz5TnweT8fIV4IAg7eP2ej+vfH2CPbVBA06mG6n5BEy0W - //bxD7K8yOg63GRvk4sNS1bX1/QyvArXbBDWbmiM2SaKv378ckeulkt6eb1O - l9nq7SVs1thJX+L+Kf7QBOR0+oCzvto6A27vPj18JutNepEmDO18u66JQKM8 - xhHI3P8iw9fIbBKaiN79/nh/S9g1BnXNIAtpsgovN10mRudpcnxsxr+qXHao - gXiI7l+f8a2CDnsUdndaCBRjHdr2GdGOvbsv95/vP325w9Y9B+moYGnrovS5 - OvsnwYtJON8lPcBTelXX0z30NQq6qzKauvGbvwEAAP//AwDU4xZWRBUAAA== - http_version: - recorded_at: Tue, 06 Sep 2016 21:24:59 GMT -- request: - method: put - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/ae0yqjg0/submit_for_settlement - body: - encoding: UTF-8 - string: | - - - 10.00 - - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 200 - message: OK - headers: - Date: - - Tue, 06 Sep 2016 21:24:59 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"6c8617d91ec77152322b6af104bc98b7" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 1961d419-bd25-468b-9f77-6d7b219d6ddf - X-Runtime: - - '0.200856' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIACs0z1cAA+xYS3PbNhC+51d4dIdJybIjZ2QmTux23Mkhk8SH9uIBiaWI - GAQYAJSl/vou+BIpgrEPbSfT6U3a/fDYB3a/5frtLhcnW9CGK3k1m5+GsxOQ - iWJcbq5m919/IavZ2+jV2moqDU0soqJXJydrziIK4f77t024DvCPkxlLbWki - A9YKXL4OGoHT2X0BkaEC1kH108mSUms8a0+4UQSPhOj+y806GIsdmOaqlDaa - h6chntj8c4ocdJJRaQlNEickeBtjIY+VsOvAp63uWsbEozuRXFzNrC5hFtS7 - U9xLvwiqNEOkR5FooBYYofbE2X41Y/jX8hxm0SKcX5DwkoQXXxfzN4vlm/PV - H+iBbkG1vizYy9df4vrDgsbPxiq0wP2pQnd8QxSmXBtLJM3BoxR0WpeovKBy - 79FATrnwyJ8gNtz69ioyJX3ylO5GTg36Vq1jLlzK/csWGqsBMCcY02CMzwU7 - C5K5SExChEqo4Na3vYYNPjefnxS+LFG9De99MUH1ftqcWu1WEyqKjC5ehDp7 - DiVLjAZPxpHqBQdtSkvJfK+k05gmy6nWdD9QoiN7dci3SUG15eiaqgZBDvhS - hyt8m9PSZkrzP5/fvrd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zZPoiqxmWGIIPjeXh4B2pMozUzujn+GmCMImX33yiarf72CHFVFAXbb6 - 6m5B7ToWfbr+nczPUroMV+nr+GzF4sXlJT0PL8Il6/m45RXDgQTFX64/3pKL - +ZyeXy6Tebp4fQ6rJZbVY9zfRTFrh7ycYSIdLDfuAje37+9/JctVcpbEDO/5 - ellxxVp58COQqU9n/YF1Mgi1R28/P9zdEHaJTl0ySEMaL8LzVRuJwXmaHL5H - RL+pTLaonriP7j5QRDcKWuxB2D5wIVCMeWibSbPpgbcf7369e//xFuv4FKSd - FgpbJSWLPlx/+nr/+RYtQvJ3ELefJiY+KR11yEP1jLDvzodtsqf0r5z4WP08 - rM2BrmWNS1T7wgbbRa/+AgAA//8DAHODv82cFwAA - http_version: - recorded_at: Tue, 06 Sep 2016 21:24:59 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/braintree/create_profile.yml b/spec/fixtures/cassettes/braintree/create_profile.yml deleted file mode 100644 index 827a7994..00000000 --- a/spec/fixtures/cassettes/braintree/create_profile.yml +++ /dev/null @@ -1,155 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/customers - body: - encoding: UTF-8 - string: | - - - fake-paypal-future-nonce - - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 201 - message: Created - headers: - Date: - - Wed, 14 Sep 2016 21:08:10 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"ee84532a871d33d3bbe7bc58e0875972" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - ba18d842-0739-41e5-bb57-cfdb3c57cd40 - X-Runtime: - - '0.205308' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIADq82VcAA6RTy3KjMBC8+yso7rKMvQ6JC+Oc8gXZy15SAxpAjh6UJBLz - 9yuBsRPjPWzlON09D/WMssNJiugDjeVa7eNkuYojVKVmXNX7+PfrC3mMD/ki - KzvrtESTL6Io4yzfpNvNQ5KkGfVBwDxXNqAc8XFqWP20PqaFTKv3bbPJ6Fc2 - qCturCMKJEaKi33sTIcxHSgB/2JKLVtQ/QxHCVzM0LbRal6jgtMM+8TCcnen - n0FwyAi4yPUt7mPmQ8clxvl6lTyQ1RNJfr2uk93qcZes/mT0mjDkdy37v/xr - wth/8JxUHAWzl5EYd6QEw+y5KBgD/fRm6FsQBMpSd8p9VwTBTDKCHi64EH7l - BGqDKHHY1K0hg/CHpow1zsdEvh3SV3RSMqygE1OrQmuBoOI8zJTRM3kRD3eQ - H0Hhkml8xhPIVuDSn01GR25Scgk1ks6IvHGutTtKwVp0dlkY4Mp5C2o/8yf0 - IZl6y4IjbxJdo9mb0LWmo43LVtUHVB/caBUkewuKFfrkf8Wlw9TTdoUtDW+d - /2h3djdonH5HlRf99pj6mcdo4n54TeO7LQnfUKEgXHHHA3/rbQXCenPvSS91 - /OvDnlSl796I4JKHzp1Fog0bVjoXZnR+i7eYHUBgzKBf0My269Hki78AAAD/ - /wMAy5ueJ8oEAAA= - http_version: - recorded_at: Wed, 14 Sep 2016 21:09:04 GMT -- request: - method: post - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/customers - body: - encoding: UTF-8 - string: | - - - fake-paypal-future-nonce - - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 201 - message: Created - headers: - Date: - - Wed, 14 Sep 2016 21:08:11 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"80c33cc9963aafb12bef55d4c81ab5d4" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 1aa95f02-cbab-4ac7-94d3-05aea8c15b7a - X-Runtime: - - '0.177463' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIADu82VcAA6RTy3KjMBC8+yso7rLASUziwnhP+wXZy15SAxpAiR6UJBLz - 9yuBsRPjVO3WHtXdMyP1tPLDUYroHY3lWu3jdJ3EEapKM66affzr+Sd5jA/F - Kq9667REU6yiKOes2N49JGl2n+XUHwLmuaoF5Yg/Z4Y1T5vXrJRZ/fbQ3uX0 - MxvUNTfWEQUSI8XFPnamx5iOlIDvmErLDtSwwFECFwu0a7Va9qjhuMA+sLTc - 3ZhnEBwyAi5yQ4f7mPmj4xLjYpOkW5I8kfT+eZPuksddmvzO6aVgrO879vf1 - qa+/FEzzR89JzVEwe74S445UYJg9NQVjYJjfDEMHgkBV6V65r4ogWEgm0MMl - F8KvnEBjECWOm7o2ZBT+pylTj1OYyJcgfUZnJcMaejGPKrUWCCouwp1yeiLP - 4jEHxSsoXDONP/AIshO49rHJ6cTNSi6hQdIbUbTOdXZHKViLzq5LA1w5b0Hj - 7/wBQyim3rLgyItE12r2InSj6WTjulPNAdU7N1oFyd6CYqU++l9xnjDPtH1p - K8M75z/ajd2NGqffUBXZZmi2TU6n08z9U5qSRZqmd1sSvqFCQbjijgf+2tsa - hPXm3pKe+/jXhz2pWt/MiOCSh8m9RaING1e6FOZ0mcVrzI4gMGbQL2hh2yU0 - xeoPAAAA//8DADAFBVLKBAAA - http_version: - recorded_at: Wed, 14 Sep 2016 21:09:05 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/braintree/credit.yml b/spec/fixtures/cassettes/braintree/credit.yml deleted file mode 100644 index 0fb09540..00000000 --- a/spec/fixtures/cassettes/braintree/credit.yml +++ /dev/null @@ -1,302 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions - body: - encoding: UTF-8 - string: | - - - 40 - fake-paypal-future-nonce - - true - - sale - - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 201 - message: Created - headers: - Date: - - Tue, 06 Sep 2016 21:25:14 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"d9a9e6ac16f5a90631c2908eb84b4d44" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - d8310077-69b7-482a-ab6c-e8a6a9c99525 - X-Runtime: - - '0.494855' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIADo0z1cAA+xYS3PbNhC+51d4dIdJSZYsZ2gmTux23Mkhk8SH9uIBiZ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7quaYt8ZZtYhfroD1ZfWl6VDLtIRpB7Uat - Cyxy2KTEY4cZSIdFU26J1VIRQ//UsbLxmWRFXJLpnttaWQUqBP+9gPoFoRij - wLHUjh6TfZogMkk0e5x4Mq2+pn7DJ1MPHiThmILqOOjwbXcsEYAb1YGx7wwp - NCqy/JW0usW3O9QDTkcg+jNPiZgaWyoPaaSvbWa/b6YWm9tI4nXD2O1Ve7xE - SyxRENKc45XG8spgb2zxP+wEnKgybjCP77dS3XdM6b/sEsck/GO5oJXUb6dq - gSl1s98i0rHi+SQ77unbllVSf5IjG5OMIAEl1pvO5jZA4rWUcWLxys/OsTyA - YMt3UHvGdVnFnDqodpFNC5voSVNTKbaQ8d2GmyJttl8z0K6JwtbqKyqQUCFg - vCvGfG+5yxZginXYY+UTqaI50qIbokLpanJhYHAw101/GqjcsemNPe7jh5jR - B5xXwuFgHYDNWbmvYUdAzFQk664Nizh2TDUYkQnbreV5YcCVGjWxIFwg+S6q - MdJ+tUJ5TtP7+iNQ4E3hhtS2Z+uQAZ8948eTwJf3KznxRylwssyGtHkSXZLV - BEsMwedm8xDQjq10zNTW6Be4KYKwyZeffMLy93s4YEVMoSpbfXW7oHIdCz9f - /UrWbM38+JzBKqLL+eLiYjFfnUdnq56PG14xHEhQ/PXq0w1WZX+xYiuIz/3z - 8+UGF45wfxfFrBzyeoaJdLDY2Qtc33y4+5lsN5v5km0utv48Lrlipez8CGTq - 01l/YJ0MQuXRmy/3t9ck3sSri/VmCevzM7o+85tIDM5TpPseEf4iE9GgeuI+ - uv1AEV5LaLCdsHngaYpizENTT5p1D7z5dPvz7YdPN1jHpyDNtJCbMilZ+PHq - 87e7LzdoEZK/Ttx8mpj4pPSsQ3bVM8S+Ox+2yZ7SvXLiY/XLsCYH2pY1LlHN - CxtsF775EwAA//8DAITu4tycFwAA - http_version: - recorded_at: Tue, 06 Sep 2016 21:25:14 GMT -- request: - method: put - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/3evhjjvj/settle - body: - encoding: UTF-8 - string: '' - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 200 - message: OK - headers: - Date: - - Tue, 06 Sep 2016 21:25:16 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"24d819eadfced98187854aa7219738d8" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 8121982d-08f5-446f-9d76-ab4246285590 - X-Runtime: - - '1.751254' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIADw0z1cAA+xYS3PbNhC+51d4dIeph+VHRmbixG7GHR8ySXxoLxqQWImw - QYAFQFnqr++Cb5pg7HbaTqftjdz98Nj3Llbv9qk42oE2XMnLyex4OjkCGSvG - 5fZycv/tB3I+eRe+WVlNpaGxRVT45uhoxVm4gF3y8LB7WAX442jGUpub0IC1 - AtgqqP4dyx4yCA0VsAqKT0eLc63xqAPhRhE8EcL7r9erYEh2YJqqXNrwZHo8 - na6C6s8xUtBxQqUlNI4dkeBljIU0UsKuAh+3uGoeEQ/vSHJxObE6h0lQ7k5x - L/0qqNIMkR5GrIFaYITaIyf75YThr+UpTML5dHZKphdkevptPns7X76dLX5G - DTQLivV5xl6/fonr2wWVno1VKIH7KSz3/IZI3HBtLJE0BQ9T0HFerNKMyoOH - AynlwkN/gshw69srS5T00Td0P1Bq0JVqFXEh0GH/ZgmN1QDoE4xpMMang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5Tm0DMNZjuWPVEymtOeCi - GqJcm3I2Y2ApF6auxj2W3zadwc5/fB8zeMt6JRz2TgHYimj/Ndw0jJ6Ko4lv - wzyOPTMcWmREdid5llvwuUbVRhEucdTIy4naPeAhPaNiXb2HrYIxXL+R78ja - 7/dPnk0Do8CX9ysmgI9K4hyd9oeEUXTRmieYUAmGm/NDQDk2yvO84IR+oRNH - ELY0xetXWHy/hz0mPwFlku6ymwWl6lj4+eoncspO2TQ+Y7CM6GI2v7iYz5Zn - 0cmyo+O6i+qPX0j+enV3gwl4Ol+yJcRn07OzxTkuHOD+rIa6VMjr+2lsfvOt - u8D1zYf7T2Rzfj5bsPOLzXQWF51xyWz1CGTsFbE7no8aodTozZf17TWJz+Pl - xen5Ak7PTujpybS2RO88TdrXl/BHlcga1SF30c1zTHitoMa2xDrAhUAy+qGt - 5uqq3t3c3X66/XB3496LRiD1bJTZwilZ+PHq87f7LzcoEba6Lbl+iBl5XXtW - HtvsGWKNnfXLZIfpXznybv8yrPaBpmQNU1QdYb3twje/AQAA//8DAOW64Fym - GAAA - http_version: - recorded_at: Tue, 06 Sep 2016 21:25:16 GMT -- request: - method: post - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/3evhjjvj/refund - body: - encoding: UTF-8 - string: | - - - 20.00 - - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 201 - message: Created - headers: - Date: - - Tue, 06 Sep 2016 21:25:16 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"83bec1fb0d4e0f9873225f02ec1c1c77" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 763d17df-6950-49e8-a34e-0cd8a39cfce7 - X-Runtime: - - '0.280919' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIADw0z1cAA+xYS3PbNhC++1d4dIcpybYse2gmTuxk0sl0PG58aC8ekFiJ - sEmABUBZyq/vAnyIDMFEnU47OfQm7X547GIf3zJ8s82z4w0ozaW4nsxOppNj - EIlkXKyvJ49fPpDl5E10FBpFhaaJQVR0dHwcchaJ18X5Mt9swgD/WJk21JQ6 - 0mBMhsvDoBZYndkVECUKGDdh4P5YaVIqhaftCNeS4KEQPf52GwZDsQXTXJbC - RPPpyXQaBvU/q8hBJSkVhtAksUKC99EG8lhmeJhP625bxsSjOxY8u54YVcIk - qHanuJc6CCoVQ6RHgYZTA4xQc2xtv54w/Gt4DhM0Z7Yg00syXXyZz67m51ez - xR/ogXaBW18W7O+t3y+o/ayNRAvsH/d4394QhSuutCGC5uBRZnRcl8i8oGLn - 0UBOeeaRv0KsufHtVaRS+OQruh04NehaFcY8s0H3H1uojQLAmGBMgdY+F2wN - CGZfYhSSyYRm3Pi2V7DGhPP5SWJuZS43vPfFAFW7cXMqtV1NaFakdH4Q6vRH - KFHia/Bk+FKdx0GbVqVgvixpNbqOcqoU3fWU6MhOJbKpfAqb9Pl58xwGYwi7 - uqDKcHSYq02QA+ZvH+U7kpYmlYp/HWw5uHln25iaJPViUl4U/0foTxqh3dep - yyVZcciYrmNhowkoJRVBHxVSaPCa5nAd0/vo6Ab71ncBzRb9V/Pv8l2MM2Oz - Ga4cCi10jd3ile5Q8wxVlGMD0sOHDQslEzwN/dBkB3VwrzP24P6Js+l0HgZj - 2pGVBgM1uq/kwLzLHcS5kCHPwGuhk4ewwTU3kif2IVb4wLgCYyQGNTSmtAQA - T6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gfr6BeZigbVEXfR7bAd3UposHthk8RZhmKM - NVNPTXVPu/v86eOnd5/vsC6PQRriWxgXeCx6f3P/5fHhDi1CHrMXN2N2/Wkk - erj78PjrrUPthUeD1jdeKj3AQwpWU8Q9BD4MmhTptdno6C8AAAD//wMADc+z - W10WAAA= - http_version: - recorded_at: Tue, 06 Sep 2016 21:25:16 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/braintree/payment.yml b/spec/fixtures/cassettes/braintree/payment.yml deleted file mode 100644 index d21728cb..00000000 --- a/spec/fixtures/cassettes/braintree/payment.yml +++ /dev/null @@ -1,187 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/customers - body: - encoding: UTF-8 - string: | - - - fake-paypal-future-nonce - - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 201 - message: Created - headers: - Date: - - Thu, 15 Sep 2016 18:17:27 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"bf92001ed0c6d736d3d68b49de8a17a6" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - a6547fd9-1780-4bcd-8fff-8f3c79a9a70f - X-Runtime: - - '0.211124' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIALfl2lcAA6RTy3KjMBC8+yso7kKGrYTYBXhP+wXZy15SAxqwYj1YSST2 - 368Exk6Mc9jKUd09M1JPq9gdpYje0FiuVRmnyTqOUDWacdWV8e/nX+Qp3lWr - ohms0xJNtYqigrMqyzbZ4zpfF9QfAua5Zg/KEX/ODes22Wtey7w9POx/FPQj - G9QtN9YRBRIjxUUZOzNgTEdKwFdMo2UP6rTAUQIXC7Tfa7Xs0cJxgb1jbbm7 - M88gOGQEXOROPZYx80fHJcZVtk4fyXpD0ofn9Gmb5tss/1PQa8FYP/Ts/+qv - BdP80XPSchTMXq7EuCMNGGbPTcEYOM1vhlMPgkDT6EG5z4ogWEgm0MM1F8Kv - nEBnECWOm7o1ZBR+05SpxzlM5FOQPqKzkmELg5hH1VoLBBVX4U4FPZMX8ZiD - 6hUUJkzjTzyC7AUmPjYFnbhZySV0SAYjqr1zvd1SCtais0ltgCvnLej8nd/h - FIqptyw48iLR7TV7EbrTdLIx6VW3Q/XGjVZBUlpQrNZH/ysuE+aZdqhtY3jv - /Ee7s7tR4/QBVXVw9q/sCjqdZu6baZrebUn4hgoF4Yo7Hvhbb1sQ1pt7T3rp - 418f9qRafTcjgkseJg8WiTZsXOlSWNBlFm8xO4LAmEG/oIVt19BUq38AAAD/ - /wMATsqd48oEAAA= - http_version: - recorded_at: Thu, 15 Sep 2016 18:18:22 GMT -- request: - method: post - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions - body: - encoding: UTF-8 - string: | - - - 55.00 - - true - true - - ORDER0-PAYMENT0 - ktsqmg - 22926070 - sale - - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 201 - message: Created - headers: - Date: - - Thu, 15 Sep 2016 18:17:28 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"66c8984bda762fddc6fc469f15b9377d" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 23f9d0cc-0c3b-4411-b8fc-d8b275f38506 - X-Runtime: - - '0.368035' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIALjl2lcAA+xYUW/bNhB+768I/M5IcurYKRy1aeMNGbqtSJOH7iWgpLPF - RSJVknLs/fodRUmWLKrJgA4osPnJuvt45B2Pdx+5fLvLs5MtSMUEv5wEp/7k - BHgsEsY3l5P7u5/IYvI2fLXUknJFY42o8NXJyZIl4WYffH2aB7Olhx9GpjTV - pQoVaJ3h8KVXC4xO7wsIFc1g6VV/jSwupcS59oQpQXBKCO8/Xy+9odiAaS5K - rsPZ7NT3l179ZRQ5yDilXBMax0ZIcDVKQx6JTC89l7ZaaxkRh+6Es+xyomUJ - E89ap2hLvggqZIJItP/77fXq1iefrr78uvrtDlfbaiqvJVANCaH6xETicpLg - p2Y5TMKpH5wT/4IEs7tg8SaYv5nO/8B4tAOq8WWR/LPxhwF11JUW6I/5sBs5 - nV5Mz/2532wkStdMKk04zeHYTVRmdFwXi7ygfO/QQE5Z5pA/QaSYdtkqUsFd - 8jXdDYLvdd1aRiwzGdi66DLy/T1UWgJgiiSJBKVcIdhp4InZilFIJmKaMe0y - L2GDp88VJ4EHLauOinO9mK9yP+6OVZvRhGZFSqcvQp09h+Il7gaLhzvV2Rz0 - aV3yxHWaWo2q05xKSfc9JQayU5ZcRgoqNcPQVCUJcsCD2x/hMk5LnQrJ/nre - fMdsRHWcOjEpK4r/c/EHzcXu7tSVkawZZImqc2GrCEgpJMEYFYIrcLpW4Tqu - 99HhDTasbwIaE/1dc1v5J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XXU7wAYvCT9d - fSFBEs1nFzCbwmK9Xpzhz/dndH7WiXLDLPqXEhR/vvq4IkAhiBd0egaz8/ls - EWBhPcZ9L5JpQ/JyjomEsNyYBVyv3t//TKYXlL5O6HQen/sVW7TKQxyBjD2f - dS+trlpVRdlGdHX7cHNN1ovzs4v5NIiwSAZRAs1O9OaT5PAmEf4iUt6gOuIu - un2kCK9Fa/EgbI54lqEYM1HXt826C64+3vx88/7jCiv5GKS5LxS6Sssk/HD1 - 6e7+doUeIf07iJvniZFnpaMeeaifoX/qB/1G2VG6R468Xz8Pa3KgbVrDItWc - sZ658NXfAAAA//8DAFg1DiavFwAA - http_version: - recorded_at: Thu, 15 Sep 2016 18:18:23 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/braintree/purchase.yml b/spec/fixtures/cassettes/braintree/purchase.yml deleted file mode 100644 index 8c4ef332..00000000 --- a/spec/fixtures/cassettes/braintree/purchase.yml +++ /dev/null @@ -1,108 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions - body: - encoding: UTF-8 - string: | - - - 10.00 - - true - true - - fake-paypal-future-nonce - sale - - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 201 - message: Created - headers: - Date: - - Tue, 06 Sep 2016 22:00:26 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"7d7db0b7b0d9411f9411eef65a5e12d8" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - a8d5a2aa-4665-464b-a153-89c415f14ea7 - X-Runtime: - - '0.443621' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIAHo8z1cAA+xYUW/bNhB+768I/M5IthM3KRy1aZMVGfpQtM3D9hJQ0sni - IpEcSTn2fv2OoiRLFtVkQAcU2AA/WHcfj7zj8e4j1293ZXGyBaWZ4Fez+Wk4 - OwGeiJTxzdXs/tsv5GL2Nnq1NopyTRODqOjVycmapRFfPm7CS8nXAX5YmTbU - VDrSYEyBw9dBI7A6s5cQaVrAOqj/WllSKYVz7QnTguCUEN1/vVkHY7EF01JU - 3ETz8DQM10HzZRUlqCSn3BCaJFZIcDXaQBmLwqwDn7ZeaxUTj+6Es+JqZlQF - s8BZp2hLvQgqVIpIjyJRQA2khJoT6/vVLMVPw0qYRYtwviLhJQlX3xaLN2H4 - ZnH+O0agG1CPr2T6z8YfBjRx1kagB/bDbd1yfrZazi8u2q1DacaUNoTTEo7X - j8qCTusSUUrK9x4NlJQVHvkTxJoZny2ZC+6TZ3Q3imrQd2sds8LmXOeiz8iP - 91AbBYBJkaYKtPaFYGeAp3YrJiGFSGjBjM+8gg2eN1+cBB6toj4c3vVihqr9 - tDtObUcTWsicLl6EWj6H4hXuBkvGO9XbHPQpq3jqOyadRjdpTpWi+4ESA9kr - RD4jkirDMDR1EYIS8KgOR/iM08rkQrG/njffMxtTk+ReTM6k/D8Xf9Jc7O9O - UxlJxqBIdZMLW01AKaEIxkgKrsHrWo3ruT5ER3fYor4LaE0Md81v5buY2o3t - djxyLLTQDTaGJ7pHzR/gshx7jR5v7FoqkeBsGIf2dNAa7g3GATyccR7aZj2l - nRhpMFGja4maLaTe0TWijmCaMrsqjPEYNlrlVrDE7kOG+4sjMEViUGNfKtvq - cRbXzydQhu6IIyFeFeyglG27joUogPJZlNFCWwLUAVp6gF6QhKq2F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cniTiH4VOW9RPXEf3T1SRDcCWuxB2B7xokAxZqJpbptN - F7z9dPfx7v2nW6zkU5D2viBNnZZp9OH687f7L7foEdK/g7h9nph4VjrqkYf6 - GWHnnQ8bZU/pHznxYv08rM2BrmmNi1R7xgbmold/AwAA//8DADnQOGmhFwAA - http_version: - recorded_at: Tue, 06 Sep 2016 22:00:26 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/braintree/token.yml b/spec/fixtures/cassettes/braintree/token.yml deleted file mode 100644 index fac358ce..00000000 --- a/spec/fixtures/cassettes/braintree/token.yml +++ /dev/null @@ -1,93 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/client_token - body: - encoding: UTF-8 - string: | - - - 2 - - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 201 - message: Created - headers: - Date: - - Fri, 02 Sep 2016 22:36:39 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"a661b1df8f38f1c21497066d7437316c" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 2b984fd3-c8cb-42de-8e0c-1a4b1e850a2c - X-Runtime: - - '0.086035' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIAPf+yVcAA6RVXY+bOhB9769Y7XtvwYTeIu22apJCgoLTkMRgv4GdLR82 - RCW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fAd8Crdxt+mX+ozZTbcLSH - eXjV7x7DOV1Llrq3NHIH6L//6b2g1/MDu9i7HFMlXvM/3PLGq/mcUtgjgMXY - Rte9AHlP4NtGaD0VNnkF/Spsb2PcbpBTsi3oI8kunPnOdQ/K86jdnoD//Ybp - PIrB3GDN1a/d9oz99n7T3mFQx2zH/hBTV02nHeyyDeicr6sm51aYiYXea5oD - 0HXs+4qfV3KeonD0NiHB6GmYG9DWLg573MJ9o/sje2P0+2+4NIdJBLs0XuqY - X99mdslieqaVnyW6hgL9KwyamYDxYqyUbDVObpGOe04P3JUvXrCCfC2bXCg5 - 0HG/mRng13dRxtWIIQMdJktpOk+bx8eHd9f7983Du99v5h8AAAD//wMAwcP3 - 59AHAAA= - http_version: - recorded_at: Fri, 02 Sep 2016 22:36:39 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/braintree/void.yml b/spec/fixtures/cassettes/braintree/void.yml deleted file mode 100644 index 1f7c4dab..00000000 --- a/spec/fixtures/cassettes/braintree/void.yml +++ /dev/null @@ -1,196 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions - body: - encoding: UTF-8 - string: | - - - 40 - fake-paypal-future-nonce - sale - - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 201 - message: Created - headers: - Date: - - Fri, 02 Sep 2016 22:36:09 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"11a1c3503b84cf6d9c6b7689b686e463" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 83c3cb13-7fd3-4646-aada-0f0343c5e792 - X-Runtime: - - '0.349462' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIANn+yVcAA+xYS2/jNhC+51cEvjOSnWwSB4r2gaSLFHsouptDewkocWSx - oUgtSTl2f32HelmKqI0LFEUPvVkzH4ecB2c+Onq/K8TpFrThSt4ulmfh4hRk - qhiXm9vF47efyPXifXwSWU2loalFVHxyehpxFq/2V983S30dBfjhZMZSW5mY - VjZXmv8JLApakdPafQmxoQKioP7pZGmlNe62J9wogptC/Pj1LgqmYgemhaqk - jS/CszCMgvbLKQrQaU6lJTRNnZDgeYyFIlHCRoFPW5+2SohHdyq5uF1YXcEi - aKxTtKWPgirNEOlRpBqoBUaoPXW+3y4YflpewCJehctLEq5JuPq2Wt2cX96E - 698xAv2Cen1Vsr+3/rCgjbOxCj1wH3XyXp8QhRnXxhJJC/AoBZ3Xpaooqdx7 - NFBQLjzyF0gMtz5bZa6kT57R3SSowdCrKOFCYM3+yx4aqwGwJhjTYIwvBDsL - krlMzEKESqng1mdewwYvnC9OCm+WqO+G97xYoHo/706jdqsJFWVOV0ehzt9C - yQqzwdNppgbJQZ+ySjLfLek1pq1yqjXdj5QYyEEn8hkpqbYcQ2PAWgEF4E0d - r/AZP7Sst8wPzCbUprkXk/Oy/L8W/6O1OMxO2xhJxkEw09bC1hDQWmmCMSqV - NOB1rcYNXB+j4wecUD8EdCbGWfNb+SGmdmO7na6cCh10g3Phhe5R8wc0VY6j - xkwTG5VapbgbxqG7HbSGe4NxAI93XIZuVs9pZ1ZaLNT4Y4mareMQc4g6goxx - dyqM8RQ2OeVW8dTlIcP84goskQT01JfKTXrcpRnnMyhLd6ThIF4V7KAou2md - KCWAykWcUWEc/+kBHTtAL0hKNWsr2apn8F21hPukdb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Jf0AI/pVV1P99DXKOiuymjqxid/AQAA//8DALtkqRVEFQAA - http_version: - recorded_at: Fri, 02 Sep 2016 22:36:09 GMT -- request: - method: put - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/2y7qg1r8/void - body: - encoding: UTF-8 - string: '' - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 200 - message: OK - headers: - Date: - - Fri, 02 Sep 2016 22:36:09 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"f133fdd9724b142eb9c87d4f59f67117" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - b356b1ff-7bc6-4612-af21-4c0d2e561883 - X-Runtime: - - '0.207812' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIANn+yVcAA+xYS3PbNhC++1d4dIdJyU9laCbO2M24k0OniQ/txQMSSxE1 - CDAAKEv99V3wJdIEY3em7eTQm7T74bHvD4ze7wpxvAVtuJLXi+VJuDgGmSrG - 5eZ68fD1J3K1eB8fRVZTaWhqERUfHR9HnMWr/eW3zVJfRQH+cTJjqa1MvFWc - AYuC9q/T2H0JsaECoqD+6WRppTWetCfcKIIHQvzw5TYKpmIHpoWqpI3PwpMw - jIL2n1MUoNOcSktomjohwbsYC0WihI0Cn7a+aZUQj+5YcnG9sLqCRdDsTnEv - /Sao0gyRHkWqgVpghNpjZ/v1gu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yMkXktbLxav/OIcN/IITjcPi2Xc1AXr1UGzi+q69Uz7nXuA - Ybec3m28KTJE93BHu2ZquNc3Uw9f0xKmu2LMt25MZwBzA9Ydq55JE82JFt2Q - VNo0JJ2BxTeo6VrxSOWPzYDh+48fYybfKt4Ih51zAM4h7b+Ge+1gpiIv9W1Y - pamHwGNEZmx3lpeVBV9qtDOUcIk8s2peTO4DDcpLKh7b7x1RMIcbs7iBrWOy - NyRys6DX96qp32t79fzQ5thVCFaYSz3Aq2fK82J0dr7CvBCEI6z+oBHXvz/A - DluggKZTDdX9gsZbLP7l5jeSrWgKcJqcLbOrJVunq5DR5elqPXBrNzXHdBvF - X24+35F0eRleni5DYGt2frU+x076EvdPEajGIW/nT0h2qo27wO3dx4dPhF2e - hbBcp7DK1jUTapQHPwKZ+zA0fI7NBqHx6N2vj/e35HR9ldHzy4uzZAl0HbIu - EqPzNDm8tuOfVS471EA8RPfP7/hWQYc9CLuaFgLFmIe2fUe1Y+/u8/2n+4+f - 77B1z0E6LlzaOil9ps5+JXkxCee7pAf4ll7V9XQPf4+CrlRGUzc++gsAAP// - AwDQp4KAQRYAAA== - http_version: - recorded_at: Fri, 02 Sep 2016 22:36:09 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/checkouts_controller/update.yml b/spec/fixtures/cassettes/checkouts_controller/update.yml deleted file mode 100644 index c8e63db3..00000000 --- a/spec/fixtures/cassettes/checkouts_controller/update.yml +++ /dev/null @@ -1,79 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/customers - body: - encoding: UTF-8 - string: | - - - fake-paypal-future-nonce - - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 201 - message: Created - headers: - Date: - - Wed, 14 Sep 2016 21:40:44 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"d3871d38fdff59757829c1469f22bc6e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4cf029d5-3f99-4cc0-a907-849817386a68 - X-Runtime: - - '0.190350' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIANzD2VcAA6RTy3KjMBC8+yso7rLAS+LEhfGe9guyl72kBjSAEj1YSSTm - 71cCYyfGOWzlON09D/WM8sNRiugNjeVa7eN0ncQRqkozrpp9/PvpF3mID8Uq - r3rrtERTrKIo56y4zx7SJEnvcuqDgHmuakE54uOtYc3j5mVbym39etf+yOlH - NqhrbqwjCiRGiot97EyPMR0pAV8xlZYdqGGBowQuFmjXarWsUcNxgb1jabm7 - 0c8gOGQEXOSGDvcx86HjEuNik6T3JHkkafa0SXdZssuyPzm9JIz5fcf+L/+S - MPUfPSc1R8HseSTGHanAMHsqCsbAML8Zhg4EgarSvXKfFUGwkEygh0suhF85 - gcYgShw3dW3IKPymKVON0zGRT4f0EZ2VDGvoxdyq1FogqLgIM+X0RJ7F4x0U - L6BwzTT+xCPITuDan01OJ25WcgkNkt6IonWusztKwVp0dl0a4Mp5Cxo/8zsM - IZl6y4IjzxJdq9mz0I2mk43rTjUHVG/caBUkewuKlfrof8W5w9zT9qWtDO+c - /2g3djdqnH5FVbC/qmz9zFM0c9+8pundloRvqFAQrrjjgb/2tgZhvbm3pOc6 - /vVhT6rWN29EcMlD594i0YaNK10Kc7q8xWvMjiAwZtAvaGHb5WiK1T8AAAD/ - /wMAOp4kYsoEAAA= - http_version: - recorded_at: Wed, 14 Sep 2016 21:41:38 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/transaction/import.yml b/spec/fixtures/cassettes/transaction/import.yml deleted file mode 100644 index 381691d3..00000000 --- a/spec/fixtures/cassettes/transaction/import.yml +++ /dev/null @@ -1,278 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/customers - body: - encoding: UTF-8 - string: | - - - fake-apple-pay-visa-nonce - - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 201 - message: Created - headers: - Date: - - Thu, 15 Sep 2016 18:19:03 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"3337842e32c759d65a75cf8e35bd1069" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - bb5ef635-2155-451f-961a-1bb4283fe1c5 - X-Runtime: - - '0.226637' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIABfm2lcAA6RUzXKbMBC+5ykY7rIAOzH2YDy99NxD2kMvmQWtQQ1IjCQS - 06evhAHbgRw6ubHfz+7OrpbkeK4r7w2V5lIc/HAV+B6KXDIuioP/8/k7if1j - +pDkrTayRpU+eF7CWbqO4nW8CeKE2sBhlstLEIbYeKtYsYv+bLN6e3p9LNcJ - vWWd+sSVNkRAjZ7g1cE3qkWf9lQFnzG5rBsQ3QzHGng1Q5tSinmOE5xn2Dtm - mpuFegrBICNgPNM1ePCZDQ2v0U+jIHwiwY6Ej89hvA93+2D9O6FXQ+9vG/Z/ - /qvhUr+fOTlxrJieWmLckBwU00NSUAq6oWNgTKHWuMg1TYWkgW7B7QQzyQW0 - cMZFugnCKLbbdt8j7kTEpUm/OaP3AzqPeL+4BjuKiZvUX5vmJcfwCsndC7xF - RyXDE7TVWCqTskIQfuq2m9CBnMR4brgCYy+A1FKYMg2jhM7ABXWHoGz3UXAn - 79E7NbKPjZyg0ji48No2r6FA0qoqLY1p9J5SsOs0epUp4MIoxMLO5B26lT0G - ajdVozAvNZpSspdKFpL2O3yxzKoRxRHFG1dSONVBg2CZPNuLnYqMZfub26Rh - HIcJHYKRG4oQLrSdXv/prjN1e/biOH5K6GeSMYWWrcqRMNS54o2b0a17gZ2M - bTaBC2+61xj5iiItNru/dZHQSzRyX7xAm4HOb+Ijpu3vkV7/j/8AAAD//wMA - zIjYt1IFAAA= - http_version: - recorded_at: Thu, 15 Sep 2016 18:19:58 GMT -- request: - method: post - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions - body: - encoding: UTF-8 - string: | - - - 15.00 - - true - - R999999999-ABCD1234 - g49zmg - 32838408 - sale - - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 201 - message: Created - headers: - Date: - - Thu, 15 Sep 2016 18:23:25 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"e72c712348b3ffc071e8855f8fa80a7b" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 72a7b255-e67e-48ee-a615-4e2badc7d6ee - X-Runtime: - - '0.324531' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIAB3n2lcAA+xYTW/jNhC9768wfGdkO8nWCRSluxsUaE9Fu9lDLwEljS02 - FMmSlGPtr+9QlGTJopIU6KGH5hTNPA7ni8NHx/fHki8OoA2T4m65vlgtFyAy - mTOxv1s+fv2JbJf3yYfYaioMzSyikg+LRczy5ErZfUmViiP8cDJjqa1MQitb - SM2+Qx5Hrchpba0gMZRDHDX/OllWaY271YQZSXBTSB5/f4ijqdiBaSkrYZP1 - 9cVqFUftl1OUoLOCCktoljkhQX+MhTKV3MZRSNt4W6UkoFsIxu+WVlewjLx1 - irb0u6BS54hE+7/ddH/k0+cvD+vN5VUc9domcg3UQk6oXbhs3C1z/LSshGWy - Wa0/ktUNWV9/XW9vN5e3m+s/MCf9gmZ9pfJ/tv60oM28sRJjch++nJeb7eX2 - arXtyonSHdPGEkFLOA8VlZzO6zJZKirqgAZKynhA/gKpYTZkSxVShOQ7epwU - IBqGFaeMc2zjPsSQkX8/QmM1ALZJnmswJpSCowWRu1LMQrjMKGc2ZF7DHs9g - KE8SDxtvjkvQX+xZXc+H49VuNaFcFXTzLtTlWyhRYTVYNq3UoDgY064SeehE - 9RrTtjnVmtYjJSZyMJxCRhTVlmFqDFjLoQQ8vOMVIeOnKfaW+YHZlNqsCGIK - ptT/vfgf7cVhddrJSHYMeG7aXjgYAlpLTTBHSgoDwdAa3CD0MTr5GS+tVwGd - iXHVwlZexTRhHA7TlVOhg+7xYnihNWr+BN/leNeYaWFjpWWGu2EeutNBG3hj - 6eGXbz9sP8fRq6CxlbEr65W71+e0MystdnDySaHm4PjGHKJJbZ4z5wkmfwqb - xHqQLHMF2mHhcQX2Tgp6mpHKsQLcxV/uMyhLj8TzlaAKjlCq7h5PpeRAxTLZ - UW4cV+oBHW/AKEhGdXdJW/kMItlf3Xwv9whvvrwmZaGz2UySq9BZQZvEORGc - E4ppX8dSClskcTQRTZA1UD0GNpJ2t/amJm6+2PAYcR4VkjeZDc8KVtI9kErz - pLBWmdsoogbnsblINWXCnZG2uS9wSEaK1m5MP5WAjZk/cbmXUSWehXwRF0rs - 70EcmJbCYe4MFXkqj8iG+i3a2aZBUaRIj36h6zkv8OoCKLcFeg4nxEDmQTmk - zJ70/rNVVRrrho23r7gjbAPUuaaf/o6b4gV3gg5krdO01pIPEJ2gTaMxFc4/ - vL/E8wkzko7nqdwRp6Uig+GuU2WXM5lXWUO9B2nrZR5UCfZXBe0ZQjFWgeEU - nhwndzhBlJKY/Hnm0PT6lhWOD037UCEFwxbU9ejy7y/OBgFoqC2MO2lIr1FR - qndS7h7fW3j1hdQg5h45PkMGmW3f2T92bxzX20jwTcfmnasDymIkDilIqGLo - 0lTuA47OI+4lbZb8uOM0TIGq1GSaqVmKNND3w6nhf0ThlSxzgiyEuHwGin2G - RLe0DWLR5bN93MwnON4D/C5npunXoA68FdkNq5npM/c0wWEx9W1sFLmTe+Vi - XDMt3Ov92Menp4CpVaz5wd1TO4C5G8ZtK1+Ir+ZEi2lIK208fc3B4uvMdJNo - pArXZsB9w9uPMZOH/TvhcHQJwDGsw264dwB2KjK2kMEqywLUFisyE7uLXFUW - Qq3RXiGECWRglX9LuF8zqFIcnlD75KZMHM3hxjRmEOuY7QyZzCzobVsN93nL - Vk+QbIFTheAJc60H6PpOTimui5NgdG+yj55OOHrGYfErrRdk8Y0ZigO51w05 - SbLebtdx1H7MEI/15t3UY7ParGbpx5haJM6vxcnRL73aOzuE9jfqeYFPhrbb - 7cdgDwwM+PFLurHgJtZgbUDb9Owg/6Npnnz4GwAA//8DAG4tt2vKEwAA - http_version: - recorded_at: Thu, 15 Sep 2016 18:24:21 GMT -- request: - method: put - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/4ptgmapp/submit_for_settlement - body: - encoding: UTF-8 - string: | - - - 15.00 - - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 200 - message: OK - headers: - Date: - - Thu, 15 Sep 2016 18:23:26 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"1da6318e7e6e400195be4c94b9766716" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 2b116907-dc99-4313-bb7e-a29d7c5d5f02 - X-Runtime: - - '0.219857' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIAB7n2lcAA+xYS3PbNhC+51dodIcpyY/KHppuEk9n2lOnjXPoxQOSKxE1 - CKAAKEv59VkQJEWKoK2Z9pBDfTKxHxb7wu4HxQ/7ks92oA2T4n6+vFjMZyAy - mTOxvZ8/ffmFrOcPyYfYaioMzSyikg+zWczy5ErZbUmViiP8cGvGUluZxFRp - yayF/Hkj9bMBazmUIGwcNQCHtQcFiaEc4qj+161lldZ49oEwIwmaAMnTn49x - NF52YFrKSthkeX2xWMRR8+UEJeisoMISmmVukaB1xkKZSo4mhKS17VVKArKZ - YPx+bnUF88hrp6hLnwWVOkck6v/jtv0jHz99flyuLq/iqJPWnmugGDBC7cxF - 436e46dlJcyT1WJ5Qxa3ZHn9Zbm+W13era7/wph0G+r9lcrP33+D+48b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rqB+j9BolnaBrFo8sk5bgwSnHgB - ypszU1/hoAy8Ftn274mGPPVaw/45tm2oFOmke/ijXxO3upP7SYivcQFjrZjz - nRvdG4CpoeuOla/EZ3MkxTCklTae0edg8cFq2uY8EIVz03sOhI8fYka/dZwJ - h70LAE4mHTbDPY2wUpHEhhRWWRZg+5iRCd+d56qyECqNZqoSJpCUVv555X7g - oUpxeEbps2u8cTSFGzK7nq9DAtgnd5Og93XVdPA9XR1ntAV2FYI3zJUeoOkb - OWb9zk+C3r1LyDqG5Rgrh9nv9DAjs6/MUJxRnaxP05Ller2Mo+ZjgostV2ez - sdVitZhkZEO2lTi7ZkdDP3dib2wf2pGM0wQfFa3X65tgDfQU+PZL2rbgOlZv - b0Ba12wv/oNunnz4DgAA//8DAOcyXADrFAAA - http_version: - recorded_at: Thu, 15 Sep 2016 18:24:21 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/transactions_controller/create.yml b/spec/fixtures/cassettes/transactions_controller/create.yml deleted file mode 100644 index 35eec4cb..00000000 --- a/spec/fixtures/cassettes/transactions_controller/create.yml +++ /dev/null @@ -1,87 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/customers - body: - encoding: UTF-8 - string: | - - - fake-valid-nonce - - headers: - Accept-Encoding: - - gzip - Accept: - - application/xml - User-Agent: - - Braintree Ruby Gem 2.66.0 - X-Apiversion: - - '4' - Authorization: - - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== - Content-Type: - - application/xml - response: - status: - code: 201 - message: Created - headers: - Date: - - Thu, 15 Sep 2016 18:33:32 GMT - Content-Type: - - application/xml; charset=utf-8 - Transfer-Encoding: - - chunked - X-Frame-Options: - - SAMEORIGIN - - SAMEORIGIN - X-Xss-Protection: - - 1; mode=block - X-Content-Type-Options: - - nosniff - X-Authentication: - - basic_auth - X-User: - - 3v249hqtptsg744y - Vary: - - Accept-Encoding - Content-Encoding: - - gzip - Etag: - - W/"e5c7e14ad1fe91b1f4b5096b8c8e6e9e" - Cache-Control: - - max-age=0, private, must-revalidate - X-Request-Id: - - 4efec6cc-3ba4-4918-ab5c-7c0d40520274 - X-Runtime: - - '0.328670' - Strict-Transport-Security: - - max-age=31536000; includeSubDomains - body: - encoding: ASCII-8BIT - string: !binary |- - H4sIAHzp2lcAA6xVyXLbMAy95ys8ujOyvDsjM7cee2nSQy8ZSoQs1hSpkpSX - vy8pa/MixxnnJjw8kBDwCISv+4wPtqA0k2LlBc9DbwAilpSJ9cp7f/uBFt4r - fgrjQhuZgcJPg0HIKJ4F49lwNh+FvjUcZn1xSoRB1p4rul6O/s6jbJ5spuk4 - 9Ltex06Y0gYJksFAML7yjCrA80sXJ32eWGY5EYcLHDLC+AWap1JcnpGQ/QW2 - g0gzc+U+BcQARcQMzCGHlUetaVgGHh4NgxkaLlEwfQsWL+Pxy3j0J/TbgDK+ - yOnX4tuA4/1lzVHCgFPdpESZQTFRVFeHEqXIwXPeU/8RsVjEOLfdRIRSBVrX - +LGPu13dwQqrG41OmtxFW25/FytCby/ry653tPJqowBMnXcPCfYGBHVFu0nj - Miacmb6rFKyt/nucudSGcGQfBeDlJBjOQ78LdX+nEEYdShgRnqdk1Pvj58zx - PUxR2B6w+BPqrYI/JunqlAeFXZ7h98jSylXgyTAYLRaOIxrcaRq56/BvponN - rLG7jFRyamXaVwKnODeLGOH4XWyE3Al7Uou1tGMpZYKY1gURMWBHvESbiMcr - e//ba5lO18ZKF7//6jAbtOZTiJhp//hots6EFLzOO5KSAxEedpVz1NLZkgtl - u4Lsgym4y79z6LmnDoF9zlSZD8qkMCkO7F9dgFfYByDKVm80PKGX6Akb6Hnu - CeEaqqhOJikQblKrE2jT7mA1jWVkDahQHKfG5PrF94nWYPRzpAgTbiqt7Q/u - yOHZSsfPySEDYT4yMKmkH1yupb+1En3OxfoVxJYpKRxhpYmgkdzbgduc39xo - 5eQeQ0TEpk3tBK2p5Uyd4GCxCEK/MmqfTUVJ3pF2DTQEBTmxOvopra/6bn2S - FnG5otv4Fqtpuoh0rFjuenG6g9pXZuQGBI732+VoHfpHq/YVgv0rylEWlZq2 - lWF2xSlMkul0Plkm02USJHS8oLM4iQMLJJPpIkqsZnpDm7O/YTBtQWQSabrp - 0VTj70Qom8bxxV2tSPnYu3v5BChHX1iNQbi61s9n5MXi/sLouL20b6/sWwv7 - jnV917K+uapvLOo71/S9S/reFX33gv50PX/LCnn4BYR+R2yNAdZs5YSf/gMA - AP//AwDZF9o1NwwAAA== - http_version: - recorded_at: Thu, 15 Sep 2016 18:34:28 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/models/solidus_paypal_braintree/gateway_spec.rb b/spec/models/solidus_paypal_braintree/gateway_spec.rb index 7723cb46..ff5d0f8a 100644 --- a/spec/models/solidus_paypal_braintree/gateway_spec.rb +++ b/spec/models/solidus_paypal_braintree/gateway_spec.rb @@ -18,8 +18,7 @@ ) end - cassette_options = { cassette_name: "braintree/payment" } - describe 'making a payment on an order', vcr: cassette_options do + describe 'making a payment on an order' do include_context 'order ready for payment' before do @@ -87,8 +86,7 @@ it { is_expected.to eq "paypal_braintree" } end - cassette_options = { cassette_name: "braintree/purchase" } - describe '#purchase', vcr: cassette_options do + describe '#purchase' do subject(:purchase) { gateway.purchase(1000, source, {}) } include_examples "successful response" @@ -99,8 +97,7 @@ end end - cassette_options = { cassette_name: "braintree/authorize" } - describe "#authorize", vcr: cassette_options do + describe "#authorize" do subject(:authorize) { gateway.authorize(1000, source, {}) } include_examples "successful response" @@ -111,8 +108,7 @@ end end - cassette_options = { cassette_name: "braintree/capture" } - describe "#capture", vcr: cassette_options do + describe "#capture" do subject(:capture) { gateway.capture(1000, authorized_id, {}) } include_examples "successful response" @@ -122,8 +118,7 @@ end end - cassette_options = { cassette_name: "braintree/credit" } - describe "#credit", vcr: cassette_options do + describe "#credit" do subject(:credit) { gateway.credit(2000, source, settled_id, {}) } include_examples "successful response" @@ -133,8 +128,7 @@ end end - cassette_options = { cassette_name: "braintree/void" } - describe "#void", vcr: cassette_options do + describe "#void" do subject(:void) { gateway.void(authorized_id, source, {}) } include_examples "successful response" @@ -150,8 +144,7 @@ subject(:cancel) { gateway.cancel(transaction_id) } context "when the transaction is found" do - cassette_options = { cassette_name: "braintree/cancel/void" } - context "and it is voidable", vcr: cassette_options do + context "and it is voidable" do let(:transaction_id) { authorized_id } include_examples "successful response" @@ -161,8 +154,7 @@ end end - cassette_options = { cassette_name: "braintree/cancel/refund" } - context "and it is not voidable", vcr: cassette_options do + context "and it is not voidable" do let(:transaction_id) { settled_id } include_examples "successful response" @@ -173,8 +165,7 @@ end end - cassette_options = { cassette_name: "braintree/cancel/not_found" } - context "when the transaction is not found", vcr: cassette_options do + context "when the transaction is not found" do it 'raises an error', aggregate_failures: true do expect{ cancel }.to raise_error Braintree::NotFoundError end @@ -230,8 +221,7 @@ end end - cassette_options = { cassette_name: "braintree/token" } - describe '.generate_token', :braintree_integration, vcr: cassette_options do + describe '.generate_token', :braintree_integration do subject { gateway.generate_token } it { is_expected.to be_a(String).and be_present } diff --git a/spec/models/solidus_paypal_braintree/transaction_import_spec.rb b/spec/models/solidus_paypal_braintree/transaction_import_spec.rb index 1a61c734..8a995867 100644 --- a/spec/models/solidus_paypal_braintree/transaction_import_spec.rb +++ b/spec/models/solidus_paypal_braintree/transaction_import_spec.rb @@ -56,8 +56,7 @@ end end - cassette_options = { cassette_name: "transaction/import" } - describe '#import!', vcr: cassette_options do + describe '#import!' do let(:store) { create :store } let(:variant) { create :variant } let(:line_item) { Spree::LineItem.new(variant: variant, quantity: 1, price: 10) } diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 0c5d0c17..59ec0602 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -35,14 +35,6 @@ # Requires factories defined in lib/solidus_paypal_braintree/factories.rb require 'solidus_paypal_braintree/factories' -VCR.configure do |c| - c.cassette_library_dir = "spec/fixtures/cassettes" - c.hook_into :webmock - c.ignore_localhost = true - c.configure_rspec_metadata! - c.default_cassette_options = { match_requests_on: [:method, :uri, :body] } -end - require 'braintree' Braintree::Configuration.logger = Rails.logger From 0ce46b23db7eee117a73a61e911181584082c847 Mon Sep 17 00:00:00 2001 From: Clarke Brunsdon Date: Thu, 15 Sep 2016 11:37:04 -0700 Subject: [PATCH 2/8] Add in sane VCR defaults - Won't use cassettes unless explicitely requested by the spec - Will error out if any cassettes aren't using all the requests This will mean our cassettess have to be tight and exact, or the specs will fail. --- spec/spec_helper.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 59ec0602..d9a90baf 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -35,6 +35,15 @@ # Requires factories defined in lib/solidus_paypal_braintree/factories.rb require 'solidus_paypal_braintree/factories' +VCR.configure do |c| + c.cassette_library_dir = "spec/fixtures/cassettes" + c.hook_into :webmock + c.ignore_localhost = true + c.configure_rspec_metadata! + c.default_cassette_options = { match_requests_on: [:method, :uri, :body], allow_unused_http_interactions: false } + c.allow_http_connections_when_no_cassette = true +end + require 'braintree' Braintree::Configuration.logger = Rails.logger From 0aab4d6b097d8c893d2d662b603eacfacf35d106 Mon Sep 17 00:00:00 2001 From: Clarke Brunsdon Date: Thu, 15 Sep 2016 14:30:16 -0700 Subject: [PATCH 3/8] Add vcr back to the gateway specs These were the easy ones. --- spec/fixtures/cassettes/gateway/authorize.yml | 106 +++++ .../cassettes/gateway/cancel/missing.yml | 58 +++ .../cassettes/gateway/cancel/refunds.yml | 396 ++++++++++++++++++ .../cassettes/gateway/cancel/void.yml | 287 +++++++++++++ spec/fixtures/cassettes/gateway/capture.yml | 201 +++++++++ spec/fixtures/cassettes/gateway/complete.yml | 187 +++++++++ spec/fixtures/cassettes/gateway/credit.yml | 301 +++++++++++++ spec/fixtures/cassettes/gateway/purchase.yml | 109 +++++ spec/fixtures/cassettes/gateway/void.yml | 196 +++++++++ .../solidus_paypal_braintree/gateway_spec.rb | 22 +- 10 files changed, 1852 insertions(+), 11 deletions(-) create mode 100644 spec/fixtures/cassettes/gateway/authorize.yml create mode 100644 spec/fixtures/cassettes/gateway/cancel/missing.yml create mode 100644 spec/fixtures/cassettes/gateway/cancel/refunds.yml create mode 100644 spec/fixtures/cassettes/gateway/cancel/void.yml create mode 100644 spec/fixtures/cassettes/gateway/capture.yml create mode 100644 spec/fixtures/cassettes/gateway/complete.yml create mode 100644 spec/fixtures/cassettes/gateway/credit.yml create mode 100644 spec/fixtures/cassettes/gateway/purchase.yml create mode 100644 spec/fixtures/cassettes/gateway/void.yml diff --git a/spec/fixtures/cassettes/gateway/authorize.yml b/spec/fixtures/cassettes/gateway/authorize.yml new file mode 100644 index 00000000..b20f1a37 --- /dev/null +++ b/spec/fixtures/cassettes/gateway/authorize.yml @@ -0,0 +1,106 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions + body: + encoding: UTF-8 + string: | + + + 10.00 + + true + + fake-paypal-future-nonce + sale + + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 201 + message: Created + headers: + Date: + - Sat, 17 Sep 2016 20:43:59 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"ca9e7544c5d2aea59d67b84cd6c7e28b" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - ce3dd1ad-ac45-43cb-a47d-8f4251a331d2 + X-Runtime: + - '0.314648' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIAA+r3VcAA+xYS3PbNhC+51d4dIepl2UlQzOPsdtxJ4dOEx/aiwckliJi + EmABUJby67sgSIoUwdidyaGH3sTdDwvsA7sfFL4/FPnFHpTmUtzMFpfz2QWI + RDIudjezh6+/kO3sffQmNIoKTRODqOjNxUXIWfTtuTgWx+siDPDDyrShptIR + rUwmFf8OLAwakdWaYwmRpjmEQf3TypJKKdztSLiWBDeF6OHLbRiMxRZMC1kJ + Ey3ml/N5GDRfVlGASjIqDKFJYoUEz6MNFLHMTRj4tPVpq5h4dBeC5zczoyqY + Bc46RVvqVVCpGCI9ikQBNcAINRfW95sZw0/DC5hFy/liQ+ZvyeL663L+br16 + d7X9CyPQLajXVyX7d+tPC5o4ayPRA/vhkrdYXC+26/m2TR5KU660IYIWcH5+ + VOZ0WpfIoqTi6NFAQXnukT9DrLnx2SozKXzylB5GUQ36boUxz3Ms2s5Fn5Gf + 76E2CgCLgjEFWvtCcDAgmE3FJCSXCc258ZlXsMMb54uTxKuV15fDe16sUHWc + dsep7WpC8zKjy1ehVi+hRIXZ4Mk4U73koE9pJZjvmnQa3ZQ5VYoeB0oMZK8V + +YyUVBmOodFgTA4F4FUdrvAZP/Wsl8z3zMbUJJkXk/Gy/L8W/6O12M9O0xlJ + yiFnuqmFvSaglFQEY1RKocHrWo3ruT5ER/c4on4IaE0Ms+a38kNM7cZ+P145 + FlroDgfDMz2i5hu4KsdZo8eJDUslE9wN49DeDlrDvcE4gYc7LuZ2WE9pJ1Ya + LNToY4mavSURU4g6goxxeyqM8Rg2OuVe8sTmIcX84goskRjU2JfKjnrcxc3z + CZShB+JIiFcFByjKdlzHUuZAxSxKaa4tAeoALT1AL0hCVTuLjXwCEbHD4bte + Irz+cpqY+65g3TDWviuBNok9hLcdlFy5nBZSmCwKg5FohDwCVUNgLWl2awYy + sW3E+LuFPVEm8zqy/pbAC7oDUqk8yowp9bsgoBrbrr6MFeXCXoWmhi+xFwYl + Pdpu/FgAFil7zOVOBpV4EvJZXJZi9x7EnispLOZGU8FieUDS023RtDAFJUUm + 9OAW2ppzAqfOgOYmw5PDCdGTORCDmJuT3n02qkph3rDwdlVueVkPda7pmrwl + nDjHTtCerDk0PSqZ9xCtoAmj1hW2ORxT4umEGUiHbVOmxGqpSKC/61jZxkyy + Kqn5dC9sncyBKsH/rqC5QyjGLHBstqPrZC8niEISzZ4mLk2nb8jf8NI0rw+S + cSxBdRzM+G4+1ghAQ01i7E1DFo2Konwls+7wnYUfPntqxNTLxUVII4HtKvtD + +3CxtY08Xrek3R61x0y0xCYFES05Hmksdw4H5x53kiZKrt3l1M90qlgnipeT + TKin75pTTfNIiZNXMoJkg9h4epJ9hsRjKePF4pHP9rE9n2B799A4xnVdr14d + OCuybVYT3WfqBYLNYny2oVGkSPbpin5NlHCnd20f35MCxlYx53s7p1KAqQlj + t5XPxGVzpMUwxJXSjqUyMPgI020nGqj8uelRXP/2Q8zotf5KOBxsALANK/8x + LN3HSkVi5jNYJYmHwWJGJny3npeVAV9pNCOEcIFEq3JPBvsXBcpLmj82L/4w + mMINaUzP1yHb6TOZSdDLtmru85KtjiCZDLsKwRtmSw/w6Kn0PJmsny9SD4Rh + D6/f9FH9+wMcsBHm4HpVX90tcPFi0e8f/yTrBDYLlm7WK0joEtKrzXa+Sd9C + L7Dt2BgyThR/+fj5jsxXi6vlfMVWyw272m422EvPcT+LQbiQvJ5A4LSvdvYA + t3efHn4lcbJcL1K6Tder65oKOOUpjkCm/hvpv0h87amOsovo3R+P97dkG8fr + NSzYVUqv06vrpM3EYD9FTg/O6DeZiRbVE/fR3Qs0upXQYk/C9lbnOYqxEk3z + lGgG393n+1/vP32+w+Y9BWnJYGnqsvS5OvlHwdksnO6THuBrulXb1T0ENgza + yzKYu9GbfwAAAP//AwBkB88RSRUAAA== + http_version: + recorded_at: Sat, 17 Sep 2016 20:43:59 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/gateway/cancel/missing.yml b/spec/fixtures/cassettes/gateway/cancel/missing.yml new file mode 100644 index 00000000..28311eff --- /dev/null +++ b/spec/fixtures/cassettes/gateway/cancel/missing.yml @@ -0,0 +1,58 @@ +--- +http_interactions: +- request: + method: get + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/fake_transaction_id + body: + encoding: US-ASCII + string: '' + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + response: + status: + code: 404 + message: Not Found + headers: + Date: + - Sat, 17 Sep 2016 20:44:08 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Cache-Control: + - no-cache + X-Request-Id: + - 34e6711a-8a27-4ca6-aa7e-bc964a692920 + X-Runtime: + - '0.023988' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIABir3VcAAwAAAP//AwAAAAAAAAAAAA== + http_version: + recorded_at: Sat, 17 Sep 2016 20:44:08 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/gateway/cancel/refunds.yml b/spec/fixtures/cassettes/gateway/cancel/refunds.yml new file mode 100644 index 00000000..23d4dc83 --- /dev/null +++ b/spec/fixtures/cassettes/gateway/cancel/refunds.yml @@ -0,0 +1,396 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions + body: + encoding: UTF-8 + string: | + + + 40 + fake-paypal-future-nonce + + true + + sale + + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 201 + message: Created + headers: + Date: + - Sat, 17 Sep 2016 20:44:05 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"419a6ab6b8f89483f6e8bba23a1ffb0e" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - d0692e4f-3bdf-4181-be73-021fdc6be7d8 + X-Runtime: + - '0.330062' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIABWr3VcAA+xYS3PbNhC+51d4dIdJWZItZWgmTuxm3Mkhk8SH9uKBiKWI + mARYAJSl/Pou+KYJxu5M28lMe5N2Pzz2gd1vGbw5ZOnJHpTmUlzO5qf+7ARE + JBkXu8vZ3ddfyHr2JnwVGEWFppFBVPjq5CTgLPy2mPvfHnwRePjHyrShptCh + BmNSXB54tcDqzDGHUNMUAq/8aWVRoRSedSRcS4JHQnj35TrwxmILppkshAmX + /qnvB179zyoyUFFChSE0iqyQ4G20gWwrUxN4Lm1512JLHLoTwdPLmVEFzLxq + d4p7qRdBpWKIdCgiBdQAI9ScWNsvZwz/Gp7BLDzz5+fE35D5xdcz//Vy+dpf + /Y4eaBeU64uc/bX13YLaz9pItMD+KUP39IYojLnShgiagUOZ0mldJLOciqND + AxnlqUP+CFv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KgQ + MN4VY7633CUGmGId9lj5SKpojrTohm2hdDW5MDA4mOumPw1U7tj0xh738UPM + 6APOC+FwsA7A5qzc17AjIGYqknXXhkUUOaYajMiE7dbyvDDgSo2aWBAukHwX + 1Rhpv1qhPKfpff0RKPCmcENq27N1yICXT/jxJPD5/UpO/F4KnCyzIW2eRJdk + NcESQ/C52TwEtCOWjpnaGv0MN0UQNvnyk09Y/n4LB6yIKVRlq69uF1SuY+Gn + q9/IxXKx8VebdXwezS82y5jNF+eL5Xre83HDK4YDCYq/XH28ISsf2HoTn0MU + s9VqvcGy+hT3d1HMyiEvZ5hIB4udvcD1zbu7D2S1YWwxXwK9oPOSK1bKzo9A + pj6d9QfWySBUHr35fH97Tc58umCwWK8Wfhyvo4smEoPzFOm+R4S/ykQ0qJ64 + j24/UITXEhpsJ2weeJqiGPPQ1JNm3QNvPt5+uH338Qbr+BSkmRZyUyYlC99f + ffp69/kGLULy14mbTxMTn5SedMiueobYd+fDNtlTuldOfKx+HtbkQNuyxiWq + eWGD7cJXfwIAAP//AwCTUKe5nBcAAA== + http_version: + recorded_at: Sat, 17 Sep 2016 20:44:05 GMT +- request: + method: put + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/j310jk0n/settle + body: + encoding: UTF-8 + string: '' + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 200 + message: OK + headers: + Date: + - Sat, 17 Sep 2016 20:44:07 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"969fc2b18f8d04df9d61d09353493717" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - 91429381-bb96-468a-87b2-b7c27c9cde3c + X-Runtime: + - '1.756735' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIABer3VcAA+xYS3PbNhC+51d4dIdJWZJtZWQmTuxm3Mkhk8SH9qKBiKWI + GARYAJSl/vou+BJpgrHbaTudtjdy98Nj37tYvdln4mQH2nAlrybT03ByAjJW + jMvt1eT+6w/kcvImerWymkpDY4uo6NXJyYqz6NtsGn57COUqwB9HM5bawkQG + rBXAVkH971j2kENkqIBVUH46WlxojUcdCDeK4IkQ3X+5WQVDsgPTTBXSRvPw + NAxXQf3nGBnoOKXSEhrHjkjwMsZCtlHCrgIft7xqsSEe3onk4mpidQGToNqd + 4l76RVClGSI9jFgDtcAItSdO9qsJw1/LM5hEZ+H0nIRLMr34eha+ns9fh4uf + UQPtgnJ9kbOXrz/H9ccFtZ6NVSiB+ykt9/SGSEy4NpZImoGHKeg4L1ZZTuXB + w4GMcuGhP8LGcOvbK0+V9NETuh8oNehKtdpwIdBh/2YJjdUA6BOMaTDGp4K9 + BcmcJUYhQsVUcOvbXsMWo82nJ4WRJcrY8N4XHVQfxsWp2G41oSJP6dmLULPn + ULJAa/B4aKmOcVCmpJDMFyUtx9ReTrWmhx4TFdlJQ75NcqotR9VUKSgDjNT+ + Ct/mtLCp0vzX57fvbLuhNk5dNjmG4LpJO+szzH0eaLlFyvP8f1f9h7pq1zp1 + 3iQJB8FM7So7Q0BrpQnqKFfSgFe0EtcRvY+O7rCAfRfQbNG3mn+X72JKMXa7 + 4coh0UG3WDYe6QE536AKAqxEZmjYVa5VjKehHprgoSXcq4wjuH/iNHSlfIw7 + stKio0bXOXJ2rsUYQ5QaZIy7W6GOh7DBLXeKx84OCdoXV6CLbEAPZSlcI4Cn + VNV+BGXpnl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fsjuejRqg0evt5 + fXdDzkI6YzC7XMzCJLmMLxpL9M7T5Pj6Ev2oUtmgOuQuun2OiW4UNNgjsQlw + IZCMfmjrubqud7cf7z7cvft4696LRiDNbJTb0ilZ9P7609f7z7coEba6R3Lz + EDPyvvakPB6zZ4Q1dtovkx2mf+XIy/3zsMYH2pI1TFFNhPW2i179BgAA//8D + AK7bz2CoGAAA + http_version: + recorded_at: Sat, 17 Sep 2016 20:44:07 GMT +- request: + method: get + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/j310jk0n + body: + encoding: US-ASCII + string: '' + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + response: + status: + code: 200 + message: OK + headers: + Date: + - Sat, 17 Sep 2016 20:44:08 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"caca9ea87bf1b066e505f9e4162cf852" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - fee9526e-7fd3-4d42-ba03-9775d0ab3166 + X-Runtime: + - '0.139862' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIABir3VcAA+xYS3PbNhC+51d4dIdJWZJtZWQmTuxm3Mkhk8SH9qKBiKWI + GARYAJSl/vou+BJpgrHbaTudtjdy98Nj37tYvdln4mQH2nAlrybT03ByAjJW + jMvt1eT+6w/kcvImerWymkpDY4uo6NXJyYqz6NtsGn57COUqwB9HM5bawkQG + rBXAVkH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CE2SmiGEPIyHT8uvOsB8y9VhCUo4uqA+9 + BqCtjiUCcKPaMC7OsMNGRpa/sGtv8e0O9fxz7C+6I1GJGJtqKg0Z7G5bz37b + dBfOt7HHN01D767aaVuMwhQFEc05XmlIrwQOhhL/xUrAgSvjFv14nSi9PnZH + /2WVOCVgxP27VXD+rAr+SFwMs4Rf4N8jbUupM0VV8AX1jwLFxsSa56OjQoff + FuhyDiI59p6KEWy3iVOct5T3kHgtbb1YvPKTc1zXQ7DB8cw5jJsyZ3t5UO2i + moI9UoHHRnQsmMO79TfFIcE97aBcI2m85VeNT0qlhOGuaPyd69QSgLEeyx2r + HkllzQEX1bAptKlmMwaWcmGaatxj+W3TGez8x/cxg9esF8Jh7xSArYj2X8PN + w+ipOJr4Nizi2DPDoUVGZHeS54UFn2vUbRThEkeNopqp3RMe0nMq1vWL2CoY + w/Ub+Y6s/X5//mQaGAU+v185AbxXEuforD8kjKLL1jzFhEow3JwfAsqRKM8D + gxP6mU4cQdjSlO9fUfn9FvaY/ARUSbrLbhdUqmPRp+ufyMV8tgwXy8vkPJ5e + LOcJm87OZ/PLaUfHTRfVH7+Q/OX64y1ZhMAul8k5xAlbLC6XmEKf4v6shrpS + yMv7aWx+i627wM3tu/sPZLFkbDadA72g07IzrphHPQIZe0fsjuejRqg0evt5 + fXdDzkI6YzC7XMzCJLmMLxpL9M7T5Pj6Ev2oUtmgOuQuun2OiW4UNNgjsQlw + IZCMfmjrubqud7cf7z7cvft4696LRiDNbJTb0ilZ9P7609f7z7coEba6R3Lz + EDPyvvakPB6zZ4Q1dtovkx2mf+XIy/3zsMYH2pI1TFFNhPW2i179BgAA//8D + AK7bz2CoGAAA + http_version: + recorded_at: Sat, 17 Sep 2016 20:44:08 GMT +- request: + method: post + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/j310jk0n/refund + body: + encoding: UTF-8 + string: | + + + 40.00 + + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 201 + message: Created + headers: + Date: + - Sat, 17 Sep 2016 20:44:08 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"3ab1cb9df38bdf40a9ae2010e71df9af" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - 422f42df-4e62-40b7-8016-8fe8dec9fe13 + X-Runtime: + - '0.232055' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIABir3VcAA+xYS3PbNhC++1d4dIdJWUpsZ2jmZSeTTqaTSeNDe/GAxFKE + TQIsAMpSfn0X4ENkCCbqdNrJoTdp98NjF/v4ltHLXVmcbkFpLsX1YnkWLk5B + pJJxsble3H15Ry4XL+OTyCgqNE0NouKT09OIs7jMnowuxUMU4B8r04aaWsca + jClweRS0Aqsz+wriVAHjJgrcHytNa6XwtD3hWhI8FOK7326iYCq2YFrKWph4 + HZ6FYRS0/6yiBJXmVBhC09QKCd5HGygTWeBhPq27bZ0Qj+5U8OJ6YVQNi6DZ + neJe6iioVAyRHgUaTg0wQs2ptf16wfCv4SUs4vNw+ZyEV2R58eU8fLFevwgv + /0AP9Avc+rpif2/9YUHrZ20kWmD/uMf79oYozLjShghagkdZ0HldKsuKir1H + AyXlhUf+BInmxrdXlUvhk2d0N3FqMLQqSnhhg+4/tlAbBYAxwZgCrX0u2BkQ + zL7ELKSQKS248W2vYIMJ5/OTxNwqXG5474sBqvbz5jRqu5rQosrp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zxZFw2FkHYA9S/mvY8QajEkmpb8M6TT3sHb0/Y7u1vKoN+MKg7Z+ECySZ + dTMu2W82KK9ocd9+AomCOdyYwg1sHTO9dWhT/Qjgj/dz1O+tFDhBlWN2OIt2 + nCzHckIwtWxMAtqRySnxc0b/gIIhCHuZ++ARu9+vYIfVr4CmRA3V/YLGdSz+ + 9Pp3crFeXYXPri6z5+ny4mqdseXq+Wp9uRz4uGufY+LtnSP/OVtqjD6eLCGz + qTf2jje3b+7ek2dXjK2Wa6AXdOloT6M8+ArI3Meh4fA16+jGa7ef7z/ckPOQ + rhisLp+twiy7TC86b4/OU+QwW8e/yFx0qIF4iO6H7fhGQoc9CLskLgoUY6yZ + dmpqe9rtxw/vP7z5eIt1eQ7SEd/KuMBj8dvXn77cfb5Fi5DHHMTdmN1+Gok/ + 3767+/XGoQ7Ck0nrmy+VHuAxBasr4h4CHwVdiozabHzyFwAAAP//AwA43BKx + XRYAAA== + http_version: + recorded_at: Sat, 17 Sep 2016 20:44:08 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/gateway/cancel/void.yml b/spec/fixtures/cassettes/gateway/cancel/void.yml new file mode 100644 index 00000000..2998407d --- /dev/null +++ b/spec/fixtures/cassettes/gateway/cancel/void.yml @@ -0,0 +1,287 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions + body: + encoding: UTF-8 + string: | + + + 40 + fake-paypal-future-nonce + sale + + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 201 + message: Created + headers: + Date: + - Sat, 17 Sep 2016 20:44:04 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"e5d3261a52a10bc8dcfdf3a2878578db" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - 6b9207f9-6805-42d7-8161-04bd8d08fb49 + X-Runtime: + - '0.238207' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIABSr3VcAA+xYS2/jNhC+51cEvjOSHSdOAkXZLJIuUuyh6G4O7SWgxLHF + hiJVknLs/fUd6mUpopIUKIoeerNmPg45D858dHSzy8XxFrThSl7P5ifh7Bhk + qhiXm+vZ4/efyMXsJj6KrKbS0NQiKj46Po44i+nCPG8X9kcU4IeTGUttaWJa + 2kxp/gNYFDQip7X7AmJDBURB9dPJ0lJr3G1PuFEEN4X48dtdFIzFDkxzVUob + L8OTMIyC5sspctBpRqUlNE2dkOB5jIU8UcJGgU9bnbZMiEd3LLm4nlldwiyo + rVO0pT8EVZoh0qNINVALjFB77Hy/njH8tDyHWbwI5+ckvCTz1fdFeLVcXoXL + 3zEC3YJqfVmwv7f+sKCJs7EKPXAfVfJenxCFa66NJZLm4FEKOq1LVV5Qufdo + IKdceOQvkBhufbaKTEmffE13o6AGfa+ihAuBNfsve2isBsCaYEyDMb4Q7CxI + 5jIxCREqpYJbn3kNG7xwvjgpvFmiuhve82KB6v20O7XarSZUFBldfAh1+h5K + lpgNno4z1UsO+rQuJfPdkk5jmiqnWtP9QImB7HUin5GCassxNAasFZAD3tTh + Cp/xQ8t6z3zPbEJtmnkxGS+K/2vxP1qL/ew0jZGsOQhmmlrYGgJaK00wRoWS + BryuVbie60N0/IAT6k1Aa2KYNb+VNzGVG9vteOVY6KAbnAsvdI+aP6Cuchw1 + ZpzYqNAqxd0wDu3toBXcG4wDeLjjPHSze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OKyJQKw9x + BDL1v0j/NTKZhDqi978+PdwRdkHPk4uzZHW6gvPThLaZGOynyeGxGf+sMtmi + euI+unt9xncKWuxB2N5pIVCMdWibZ0Qz9u6/Pnx5+Pz1Hlv3FKSlgoWtitLn + 6uSfBK8m4XSX9AA/0qvanu6hr1HQXpXB1I2P/gIAAP//AwCIZQWqRBUAAA== + http_version: + recorded_at: Sat, 17 Sep 2016 20:44:04 GMT +- request: + method: get + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/a2skv2tz + body: + encoding: US-ASCII + string: '' + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + response: + status: + code: 200 + message: OK + headers: + Date: + - Sat, 17 Sep 2016 20:44:04 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"e5d3261a52a10bc8dcfdf3a2878578db" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - b36e1438-90d4-4e94-b0da-b8cf82c04a3c + X-Runtime: + - '0.144116' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIABSr3VcAA+xYS2/jNhC+51cEvjOSHSdOAkXZLJIuUuyh6G4O7SWgxLHF + hiJVknLs/fUd6mUpopIUKIoeerNmPg45D858dHSzy8XxFrThSl7P5ifh7Bhk + qhiXm+vZ4/efyMXsJj6KrKbS0NQiKj46Po44i+nCPG8X9kcU4IeTGUttaWJa + 2kxp/gNYFDQip7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x7p4hhUZFXnyQ + Vnf4zsKbb54KMfVsqSNkkL52lf2pfbW42kYSb1rG7o7a4yVGYYuCmBYcjzSW + 1w4Hrz3uJE2U6mYnqJ/nlIlJNS8meVBP3zWniuSRAueuYgSpBnHx9LaxARKP + pa0Xi0d+tY/r+ASbu4fEMW6qevXqoLai2mY10X2m3h/YLMZnGxpFguTerejX + RAl3+rrp42NSwtgq5nzrptQaYGq+uG3VC6mzOdJiGJJSm5qjMrD4BDNtJxqo + /LnpEVz/9kPM6Kn+QTjsXACwDWv/MRzZx0pFWuYzWKaph79iRiZ8d54XpQVf + aTQjhHCJNKusHwzu/wmUF1Q8Nc/9KJjCDUlMz9ch1+nzmEnQ+7Yq5vOerY4e + 2Qy7CsEb5koP8Ohr5XkwOT/fIR4Iwg5evefj6vcn2GEbFFB3qr66W1BHi8W/ + 3P5GLtenq/BsFabzFQBcnl8s5+HF6vSsF9Z2aAzZJoq/3X69J2m6WqdhQs9Y + uLhg5+fYSV/j/in+UAfk4/QBZ325cQe4u//8+IWcrS4TmiQwXy5OKyJQKw9x + BDL1v0j/NTKZhDqi978+PdwRdkHPk4uzZHW6gvPThLaZGOynyeGxGf+sMtmi + euI+unt9xncKWuxB2N5pIVCMdWibZ0Qz9u6/Pnx5+Pz1Hlv3FKSlgoWtitLn + 6uSfBK8m4XSX9AA/0qvanu6hr1HQXpXB1I2P/gIAAP//AwCIZQWqRBUAAA== + http_version: + recorded_at: Sat, 17 Sep 2016 20:44:04 GMT +- request: + method: put + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/a2skv2tz/void + body: + encoding: UTF-8 + string: '' + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 200 + message: OK + headers: + Date: + - Sat, 17 Sep 2016 20:44:05 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"cfff16379385955590cdafc43b4cfbe7" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - 662b56e3-72ff-4345-afd4-3334746e33c1 + X-Runtime: + - '0.144574' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIABWr3VcAA+xYS2/jNhC+51cEvjOSHSdOAkXZLJIuUuyh6G4O7SWgxLHF + hiJVknLs/fUd6mUpojYp0BZ76M2e+fiY90dFN7tcHG9BG67k9Wx+Es6OQaaK + cbm5nj1+/YlczG7io8hqKg1NLaLio+PjiLOYLszzdmG/RQH+cTJjqS1NvFWc + AYuC5q/T2H0BsaECoqD66WRpqTWetCfcKIIHQvz45S4KxmIHprkqpY2X4UkY + RkHzzyly0GlGpSU0TZ2Q4F2MhTxRwkaBT1vdtEyIR3csubieWV3CLKh3p7iX + fhdUaYZIjyLVQC0wQu2xs/16xvCv5TnM4kU4PyfhJZmvvi7Cq+XyKlz+jh7o + FlTry4L9vfWHBY2fjVVogftTBe71DVG45tpYImkOHqWg07pU5QWVe48GcsqF + R/4CieHWt1eRKemTr+lu5NSgb1WUcCEwX/9jC43VAJgTjGkwxueCnQXJXCQm + IUKlVHDr217DBovN5yeFlSWq2vDeFxNU76fNqdVuNaGiyOjiXajTt1CyxGjw + dBypXnDQpnUpma9KOo1pspxqTfcDJTqy14V8mxRUW46uMWCtgBywUocrfJvT + 0mZK829vb9/bNqE2zbyYjBfF/7n4g+ZiPzpNYyRrDoKZJhe2hoDWShP0UaGk + Aa9pFa5n+hAdP+CE+i6g3WIYNf8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Hd + RvGX28/3JE1X6zRM6BkLFxfs/Bw76WvcP0Wgaoe8nz8h2Sk37gJ39x8fP5Gz + 1WVCkwTmy8VpxYRq5cGPQKY+DPWfY5NBqD16/+vTwx1hF/Q8uThLVqcrOD9N + aBuJwXmaHF7b8c8qky2qJ+6ju+d3fKegxR6EbU0LgWLMQ9u8o5qxd//54dPD + x8/32LqnIC0XLmyVlD5TJ7+SvJqE013SA3xPr2p7uoe/R0FbKoOpGx/9BQAA + //8DAADzF0dBFgAA + http_version: + recorded_at: Sat, 17 Sep 2016 20:44:05 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/gateway/capture.yml b/spec/fixtures/cassettes/gateway/capture.yml new file mode 100644 index 00000000..63325ea9 --- /dev/null +++ b/spec/fixtures/cassettes/gateway/capture.yml @@ -0,0 +1,201 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions + body: + encoding: UTF-8 + string: | + + + 40 + fake-paypal-future-nonce + sale + + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 201 + message: Created + headers: + Date: + - Sat, 17 Sep 2016 20:43:59 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"48866588c728298d6099dd11721506f3" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - ec6bdfa5-f941-4eec-8c55-f77c61b570ca + X-Runtime: + - '0.247787' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIAA+r3VcAA+xYS3PbNhC+51d4dIcpS3YsZWg6ztjNuJNDp4kP7cUDEisR + NQggAChL/fVd8CXSBGN3ptPpoTdx98MC+8DuB8XX+0Kc7MBYruTV7Ox0PjsB + mSnG5fZq9vDtJ7KaXSfvYmeotDRziErenZzEnCVPevX8fQ1PcYQfXmYddaVN + aOlyZfifwOKoEXmtO2hILBUQR9VPL8tKY3C3A+FWEdwUkoevt3E0FnswLVQp + XXI+P53P46j58ooCTJZT6QjNMi8keB7roEiVcHEU0lanLVMS0J1ILq5mzpQw + i2rrFG2ZN0GVYYgMKDID1AEj1J14369mDD8dL2CWLOZn78l8Tc4uvy3mH86X + Hy7Wv2MEugXV+lKzv7f+uKCJs3UKPfAfVfJenhCFG26sI5IWEFAKOq3LVKGp + PAQ0UFAuAvJnSC13IVs6VzIk39D9KKhR36s45UJgzf7LHlpnALAmGDNgbSgE + eweS+UxMQoTKqOAuZN7AFi9cKE4Kb5ao7kbwvFig5jDtTq32qwkVOqeLN6GW + r6Fkidng2ThTveSgT5tSstAt6TS2qXJqDD0MlBjIXicKGdHUOI6hseCcgALw + pg5XhIwfW9Zr5ntmU+qyPIjJudb/1+J/tBb72WkaI9lwEMw2tbCzBIxRhmCM + tJIWgq5VuJ7rQ3RyjxPqh4DWxDBrYSs/xFRu7HbjlWOhh25xLjzTA2r+gLrK + cdTYcWJjbVSGu2Ec2ttBK3gwGEfwcMezuZ/VU9qJlQ4LNbnRqNl5DjGFqCLI + GPenwhiPYaNT7hTPfB42mF9cgSWSghn7UvpJj7vU43wC5eie1BwkqII9FLqd + 1qlSAqicJRsqrOc/HaBlB+gFyahhTSU79QShq5bykLRqF+ehC4EWiT9CsBlo + buqMFkq6PImjkWiEPAA1Q2AlaXZrxjHxTcSFe4U/Ua5EFddwQ+AF3QIpjUhy + 57T9EEXUYtO1p6mhXPqL0FTwKXbCSNOD78WPBWCJskehtioq5ZNUz/JUy+01 + yB03SnrMlaWSpWqPdLXbomlgBjRFVvhQL/QVVwtqdQ5UuBxPDkdET1aDGKTc + HfX1Z6MqDeYNy25bCk/KeqiXmq7Fe7aJU+wI7cmaQ9ODUaKHaAVNGK0tscnh + kJJPR8xAOmyaakO8lsoM+ruOlW3MFCuzikz3wtbJalAp+fcSmhuEYswCx1Y7 + ukz+aoIsFLHsaeLKdPqG+g2vTPP0IDnHEjSHwYTvpmOFADTUJMbfM6TQqCj0 + G2l1h+8s/PDNUyGmni11hCzS166yP7avFl/bSOJty9j9UXu8xCpsUZBQzfFI + Y3ntcPTS407SRKludoKGeU6Z2sxwPcmDevquOVUkj2icu4oRpBrExzPYxgZI + PJZxQSwe+cU+vuMTbO4BEse4reo1qIPaimqb1UT3mXp/YLMYn21oFAmSf7ei + XxMl3Onrpo+PSQljq5jznZ9SG4Cp+eK3Vc+kzuZIi2FIS2NrjsrA4RPMtp1o + oArnpkdww9sPMaOn+hvhsPcBwDZswsfwZB8rFWlZyGCZZQH+ihmZ8N17rksH + odJoRgjhEmlWWT8Y/P8TKNdUPDbP/Tiawg1JTM/XIdfp85hJ0Ou2Kubzmq2O + HrkcuwrBG+ZLD/DoGxV4MHk/XyEeCMIOXr3nk+r3R9hjGxRQd6q+ultQR4sl + v9z8RtZLumaLbLO6mKfsfLmcU7i8XNGsF9Z2aAzZJoq/3ny5I+n5Oju7XKzo + ZrnJ0ve4cIT7p/hDHZC30wec9eXWH+D27tPDZ8LYYnmeXa4Xa5pWRKBWHuMI + ZOp/kf5rZDIJdUTvfn28vyWQXV4s2YpesPnF/Gz1vs3EYD9Djo/N5GeVyxbV + E/fR3eszuVXQYo/C9k4LgWKsQ9c8I5qxd/fl/vP9py932LqnIC0V1K4qypCr + k38SvJiE010yAHxLr2p7eoC+xlF7VQZTN3n3FwAAAP//AwAHn70tRBUAAA== + http_version: + recorded_at: Sat, 17 Sep 2016 20:43:59 GMT +- request: + method: put + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/kp8wq9ek/submit_for_settlement + body: + encoding: UTF-8 + string: | + + + 10.00 + + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 200 + message: OK + headers: + Date: + - Sat, 17 Sep 2016 20:43:59 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"3b7fe4183e28e5529819228c26499724" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - b932b6a0-e054-4848-8605-d37a2c060ec7 + X-Runtime: + - '0.234307' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIAA+r3VcAA+xYS2/cNhC+51cYe6e1L8e7gazEid3AhQ9BEh/ai0GJoxVr + iVRIar2bX9+h3rKo2AXaIih62535+JgHZ76R//aQpSd7UJpLcTFbnM5nJyAi + ybjYXczuvv5CNrO3wSvfKCo0jQyiglcnJz5nwUO+efy2hQffwz9Wpg01hQ40 + GJPict+rBVZnjjkEmqbge+VPK4sKpfCsI+FaEjwSgrsvV743FlswzWQhTLCY + n87nvlf/s4oMVJRQYQiNIiskeBttIAtlanzPpS3vWoTEoTsRPL2YGVXAzKt2 + p7iXehFUKoZIhyJSQA0wQs2Jtf1ixvCv4RnMguV88ZrMt2Rx/nU5f7NevTnb + /o4eaBeU64uc/bX13YLaz9pItMD+KUP39IYojLnShgiagUOZ0mldJLOciqND + AxnlqUP+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SbCHjuw03Rdpsv2agXROF + rdVXVCChQsB4V4z53nKXGGCKddhj5SOpojnSohvCQulqcmFgcDDXTX8aqNyx + 6Y097uOHmNEHnBfC4WAdgM1Zua9hR0DMVCTrrg2LKHJMNRiRCdut5XlhwJUa + NbEgXCD5Lqox0n61QnlO0/v6I5DvTeGG1LZn65ABr5/w40ng8/uVnPiDFDhZ + ZkPaPIkuyWqCJYbgc7N5CGhHLB0ztTX6GW6KIGzy5SefoPz9Dg5YEVOoylZf + 3S6oXMeCT5e/ke2Kbtkyijdn85CtV6s5hfPzDY16Pm54xXAgQfGXy9trEq63 + 0eJ8uaHxKo7C17hwhPu7KGblkJczTKSDxc5e4Or6/d1HwthytY7Ot8stDUuu + WCk7PwKZ+nTWH1gng1B59Prz/c0Vgej8bMU29IzNz+aLzesmEoPzFOm+RwS/ + ykQ0qJ64j24/UARXEhpsJ2weeJqiGPPQ1JNm3QOvb28+3ry/vcY6PgVppoXc + lEnJgg+Xn77efb5Gi5D8deLm08TEJ6UnHbKrngH23cWwTfaU7pUTH6ufhzU5 + 0LascYlqXthgu+DVnwAAAP//AwAgDUEEnBcAAA== + http_version: + recorded_at: Sat, 17 Sep 2016 20:43:59 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/gateway/complete.yml b/spec/fixtures/cassettes/gateway/complete.yml new file mode 100644 index 00000000..849e5f18 --- /dev/null +++ b/spec/fixtures/cassettes/gateway/complete.yml @@ -0,0 +1,187 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/customers + body: + encoding: UTF-8 + string: | + + + fake-paypal-future-nonce + + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 201 + message: Created + headers: + Date: + - Sat, 17 Sep 2016 20:43:55 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"0c37ef549dddd260423caee903d3c13f" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - 5b90ff82-f4dc-4de6-8671-d0530c4cda70 + X-Runtime: + - '0.188628' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIAAur3VcAA6RTy3LiMBC88xUu32UZCAuhjMkpX5C97CU1tsZGRA+XJAf8 + 9yvZGBLMHrZynO6eh3pG2f4sRfSJxnKtdvE8SeMIVakZV/Uu/v32SjbxPp9l + ZWudlmjyWRRlnOWrzeYpXaZpRn0QMM+VB1CO+HhtWP28OK4Lua4+VodlRr+y + QV1xYx1RIDFSXOxiZ1qMaU8J+BdTatmA6iY4SuBigjYHraY1KjhPsBMWlrsH + /QyCQ0bARa5rcBczHzouMc4X6fwXSZ/JfP22SLdPy+1q9Sejt4Q+v23Y/+Xf + Eob+veek4iiYvY7EuCMlGGYvRcEY6MY3Q9eAIFCWulXuuyIIJpIB9HDBhfAr + J1AbRIn9pu4N6YU/NGWocTkm8u2QvqKjkmEFrRhbFVoLBBXnYaaMXsiruL+D + /AgKE6bxBc8gG4GJP5uMDtyo5BJqJK0R+cG5xm4pBWvR2aQwwJXzFtR+5hN0 + IZl6y4Ij7xLdQbN3oWtNBxuTRtV7VJ/caBUkOwuKFfrsf8W1w9jTtoUtDW+c + /2gPdtdrnP5Alden49H6mYdo5H54TcO7LQnfUKEgXHHHA3/vbQXCenMfSa91 + /OvDnlSlH96I4JKHzq1Fog3rVzoVZnR6i/eY7UFgzKBf0MS229Hks78AAAD/ + /wMAiYipMsoEAAA= + http_version: + recorded_at: Sat, 17 Sep 2016 20:43:55 GMT +- request: + method: post + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions + body: + encoding: UTF-8 + string: | + + + 55.00 + + true + true + + ORDER0-PAYMENT0 + gwjjsm + 58840300 + sale + + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 201 + message: Created + headers: + Date: + - Sat, 17 Sep 2016 20:43:56 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"679fffe950059fc27a7a6bea7eee6f86" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - 05f926f8-4fcf-4d61-a307-54a3fcc97605 + X-Runtime: + - '0.500577' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIAAyr3VcAA+xY32/bNhB+718R+J2R7NhOWjhq08YbMnRbkSYP3UtAiSeL + jURqJOXY++t31C9LFtVkQAcU2N7su49H3vF4951Wb3dZerIFpbkUl5PpqT85 + ARFJxsXmcnJ/9xO5mLwNXq2MokLTyCAqeHVysuIsiGIBs3n8tPLwj5VpQ02h + Aw3GpLh85dUCqzP7HAJNU1h55U8riwqlcK894VoS3BKC+8/XK28otmCayUKY + YLE49f2VV/+zigxUlFBhCI0iKyR4Gm0gC2VqVp5LW561CIlDdyJ4ejkxqoCJ + V1mnaEu9CCoVQyTa//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xhib28jjdUPa7VE7zERL + LFIQ0JzjkYbyymFv6PG/HAQcsTJuMI8fYqkeDlzpvxwSx2j8Y4WgldRvp2qC + KXXz3yLUkeL5KD/u6NuWVZJ/kiMfk4wgBSU2mo4ScITEYynjxOKRj/axTIBg + 03eQe8Z1WcWcOqisyKaFjfSksbkUW8jwbH2jSJzt5w30a6SwtfqKDCRUCBha + xTvfWvYSA4zxDrutfCLVbQ60GIawULqaXRgYHM110596KvfddAYf9/Z9zOCL + zgvhsLMBwOas3MewQyBmKtJ1l8EiihxzDd7IiO/W87ww4EqNmlgQLpB+F9Ug + aT9joTyn6UP9VWjljeH65Lbja58Dz48Y8ijweXslK/4gBc6WWZ84j6JLuppg + iSH43GweAvoRS8dUbZ1+lp0iDNt8+dknKH+/gx3WxBSqwtVVtwuq4LHg09UX + AvP5dMnCRRy+jv2LOcz9MIoXMOtEuWEW/aEExZ+vPq4JBZ/G82W0ZGcXy6W/ + wMJ6jPteJLMKycs5JhLCYmMPcL1+f/8zmYVniwUsZ2cxoyVbrJSHOAIZ+3zW + HVpdtaqMchXR9e3DzTWZx+fnbLqcnTMK7CyaNjfR20+RwzeJ4BeZiAbVEXfR + 7UeK4FpCgz0ImyeepijGTDT1tFl3wfXHm59v3n9cYyUfgzTzQm7KtGTBh6tP + d/e3a/QI6d9B3HyeGPmsdNQjD/Uz8E/9ab9RdpTulSPfr5+HNTnQNq1hkWre + WM9c8OpvAAAA//8DAIVJCPevFwAA + http_version: + recorded_at: Sat, 17 Sep 2016 20:43:56 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/gateway/credit.yml b/spec/fixtures/cassettes/gateway/credit.yml new file mode 100644 index 00000000..bf2bd500 --- /dev/null +++ b/spec/fixtures/cassettes/gateway/credit.yml @@ -0,0 +1,301 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions + body: + encoding: UTF-8 + string: | + + + 40 + fake-paypal-future-nonce + + true + + sale + + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 201 + message: Created + headers: + Date: + - Sat, 17 Sep 2016 20:44:00 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"ec4512be035e5ed7c6ef62ffd55a65f0" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - ae9deac6-c8f8-4025-89e7-64b1375e7358 + X-Runtime: + - '0.343840' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIABCr3VcAA+xYS3PbNhC+51d4dIdJKYofGZqJE7sZd3LIJPGhvXhAYimi + BgEWAGUpvz4LvkSaYOzOtJ3MtDdp98NjH9j9ltGbXSGOtqANV/JisTwOF0cg + U8W43Fwsbr/+Qs4Wb+IXkdVUGppaRMUvjo4izuKkXGbfzNkuCvCPkxlLbWVi + A9YKXB4FrcDp7L6E2FABUVD/dLK00hrP2hNuFMEjIb79chUFU7ED00JV0sbr + 8DgMo6D95xQF6DSn0hKapk5I8DbGQpEoYaPAp63vWiXEozuSXFwsrK5gETS7 + U9xLPwuqNEOkR5FqoBYYofbI2X6xYPjX8gIW8SpcnpDwnCxPv67C1+v16zD8 + HT3QL6jXVyX7a+sPC1o/G6vQAvenDt3jG6Iw49pYImkBHqWg87pUFSWVe48G + CsqFR/4AieHWt1eZK+mTZ3Q3cWowtCpKuHAp9y9baKwGwJxgTIMxPhfsLE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YHEwN11/Gqn8sRmMPf7jx5jJB5xn + wmHnHIDNWfuv4UZAzFQk674NqzT1TDUYkRnbneVlZcGXGi2xIFwi+a6aMdJ9 + tUJ5ScVd+xEoCuZwY2o7sHXMgNeP+PEs8On9ak78XkmcLIsxbZ5F12Q1xxJD + 8Lm5PAS0I1OemdoZ/QQ3RRA2+fqTT1z/fgs7rIgCmrI1VPcLGtex+NPlb2R1 + fh7C6fpVkqUpPTtfv2Rn2emrk9OBjzteMR5IUPzl8uM1WeHaFV2nYbhanaTL + FZbVx7i/i2I2Dnk+w0Q6WG3cBa6u391+INnJcpVkkLGEnddcsVEe/Ahk7tPZ + cGCdDULj0evPdzdX5DRlp+mr5fnLEwhhdXbSRWJ0niaH7xHxryqXHWogHqL7 + DxTxlYIOexB2D1wIFGMe2nbSbHvg9cebDzfvPl5jHZ+DdNNCaeukZPH7y09f + bz9fo0VI/g7i7tPEzCelRx3yUD1j7LvLcZscKP0rZz5WPw3rcqBvWdMS1b2w + 0Xbxi+8AAAD//wMAcG8o4pwXAAA= + http_version: + recorded_at: Sat, 17 Sep 2016 20:44:00 GMT +- request: + method: put + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/bp1fzs8x/settle + body: + encoding: UTF-8 + string: '' + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 200 + message: OK + headers: + Date: + - Sat, 17 Sep 2016 20:44:02 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"7d1c791eee69bb9e968d980ae3b46185" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - e35dd5a8-ff96-4c53-9a7d-0ed21b2228ad + X-Runtime: + - '1.747997' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIABKr3VcAA+xYS2/cNhC+51cYe6el3Wz8CNZKnNgNXOQQJPGhvRiUOFqx + pkiVpNa7+fUd6i2Lit2iLYq2N2nm42PeM9y82efiaAfacCUvFsvjcHEEMlGM + y+3F4vbrD+Rs8SZ6sbGaSkMTi6joxdHRhrMoLpbpN3O23wT442jGUluayIC1 + AtgmaP4dyx4KiAwVsAmqT0dLSq3xqAPhRhE8EaLbL1ebYEp2YJqrUtpoHR6H + 4SZo/hwjB51kVFpCk8QRCV7GWMhjJewm8HGrq5Yx8fCOJBcXC6tLWAT17hT3 + 0s+CKs0Q6WEkGqgFRqg9crJfLBj+Wp7DIlqFyxMSnpPl6ddV+Hq9fh2GP6MG + ugXV+rJgz1+/xPX9gkbPxiqUwP1Ulnt8QySmXBtLJM3BwxR0npeovKDy4OFA + Trnw0B8gNtz69ioyJX30lO4nSg2GUm1iLgQ67N8sobEaAH2CMQ3G+FSwtyCZ + s8QsRKiECm5922vYYrT59KQwskQVG977ooPqw7w4NdutJlQUGV09C/XyKZQs + 0Ro8mVpqYByUKS0l80VJxzGNl1Ot6WHEREUO0pBvk4Jqy1E1dQrKASN1vMK3 + OS1tpjT/9vT2g21japPMZZM+BO/6tOMDVhtkvCj+d9R/qKMOrdNkTZJyEMw0 + jrIzBLRWmqCOCiUNeEWrcAPRx+joBsvXdwHtFmOr+Xf5LqYSY7ebrpwSHXSL + ReOBHpDzC9QhgHXITA27KbRK8DTUQxs6tIJ7ldGDxycuQ1fI57gzKy06anRZ + IGfnGow5RKVBxri7Fep4Cpvccqd44uyQon1xBbpIDHoqS+naADylrvUzKEv3 + pG5QvCzYQ160pTxW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TV + 8vzlCYSwOjtpLTE6T5P+9SX6UWWyRQ3IQ3T3HBNdKWixPbENcCGQjH5om7m6 + qXfXH28+3Lz7eO3ei2Yg7WxU2MopWfT+8tPX28/XKBG2uj25fYiZeV17VB77 + 7BlhjV2Oy+SA6V85827/NKz1ga5kTVNUG2Gj7aIXvwEAAP//AwA20wFxphgA + AA== + http_version: + recorded_at: Sat, 17 Sep 2016 20:44:02 GMT +- request: + method: post + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/bp1fzs8x/refund + body: + encoding: UTF-8 + string: | + + + 20.00 + + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 201 + message: Created + headers: + Date: + - Sat, 17 Sep 2016 20:44:02 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"65df2f2ed19e02507b2b45214e04cbc4" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - 44c8986e-d18c-415e-acc4-363db245a98d + X-Runtime: + - '0.244568' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIABKr3VcAA+xYS3PbNhC++1d4dIcpKY4fGZrOw04mnUwm49qH9uIBiaWI + mgRYAJSl/PouwHcIJup02smhN2n3w2MX+/iW4fWuyI+3oDSX4mqxOlkujkEk + knGxuVo83L8nF4vr6Cg0igpNE4Oo6Oj4OOQsos8s28FqHwb4x8q0oabSkQ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wyzURCMo4hqPajFt+1 + R4cA3Kh5GJtnyKxRUZQHsu0O3+3QjkJVXHCDT/iYSvXYs4ThaOTwc7NN7S+N + HLeL89ftaGMjHZm+bmm9vfiApmiJBQsiWnK84FRemx9M7f+3XeKZDn8uF3SS + Jmzq6p9TP/OrYp0oXs4yw4G+q9aODJMSmYhkBMkXsd701vUREq+ljBeLV/7m + HNsCCXY7D61lXLsE9uqg3kW21XumHM/NaVg9p3cbb4qU0c73aNd0TMYBW8B0 + B3zfrW3RKcBcc7VHyGdSv9xEiybHldI1Q2dgcCzVbRkeqfzvMKD3/uPHmMnn + iwPhsLMOwB6k/New4w1GJZJS34ZVknjYO3p/xnZreVkZ8IVB0z8JF0gyq3pc + st9sUF7S/LH5BBIGc7gxhRvYOmZ6p0ub6gcAf7yfo37vpMAJqhizw1m042QZ + lhOCqWVjEtCOVE6JnzP6BxQMQdjL3AePyP1+DTusfjnUJWqo7hbUrmPRlze/ + kfXl5RLOT1/GaZLQi8vTF+wiPX95dj7wcds+x8TbO0f+c7ZUG304WUJmU23s + HW9u3z58IOnZah2nkLKYXTraUyt7XwGZ+zg0HL5mHV177fbu8eMNOU/YefJy + dfniDJawvjhrvT06T5F+to5+kZloUQPxEN0N29GNhBbbC9skznMUY6yZZmpq + etrtp48fPr79dIt1eQ7SEt/SuMBj0bs3X+4f7m7RIuQxvbgds5tPI9Hd7fuH + zzcO1QuPJq1vvlR6gIcUrLaIewh8GLQpMmqz0dFfAAAA//8DAL8iXjddFgAA + http_version: + recorded_at: Sat, 17 Sep 2016 20:44:02 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/gateway/purchase.yml b/spec/fixtures/cassettes/gateway/purchase.yml new file mode 100644 index 00000000..c211590c --- /dev/null +++ b/spec/fixtures/cassettes/gateway/purchase.yml @@ -0,0 +1,109 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions + body: + encoding: UTF-8 + string: | + + + 10.00 + + true + true + + fake-paypal-future-nonce + sale + + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 201 + message: Created + headers: + Date: + - Sat, 17 Sep 2016 20:43:58 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"c17969b83640b37a34e7e3705c03c615" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - ddd88c18-05d5-47fe-89cf-b84f2291bb26 + X-Runtime: + - '0.420046' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIAA6r3VcAA+xYS3PbNhC++1d4dIeppyVlZDpO7Gbc8SGTxIf24gGJpYia + BFgAlKX++i74EimCsTuTzmSmvUm7Hx77wO633Fzv0+R8B0pzKa5Gk4vx6BxE + KBkX26vR47dfyGp07Z9tjKJC09Agyj87P99w5mcvSowzGm08/GNl2lCTa1+D + MQku33iVwOrMIQNf0wQ2XvHTysJcKTzrQLiWBI8E//Hr7cbriy2YpjIXxp+M + L8bjjVf9s4oUVBhTYQgNQyskeBttIA1kYjaeS1vcNQ+IQ3cueHI1MiqHkVfu + TnEv9SaoVAyRDkWogBpghJpza/vViOFfw1MY+dPx5JKM12Sy/DYdv5vP3i1W + v6MHmgXF+jxj/2z9cUHlZ20kWmD/lKGbXc5ml6vFqg4dSiOutCGCpnB6f1Qm + dFgXyjSj4uDQQEp54pC/QKC5ce2VxVK45BHd97zqtc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z1paC7F + FtK/W3dTJM72gwbaNVDYGn1JBmIqBPR3xZjvLHuJAIZ4hz1WvpAymj0tuiHI + lS5nFwYGR3Nd96eOyh2b1uDjPr6L6X3DeSMc9tYB2JyV+xp2CMRMRbru2jAP + Q8dcgxEZsN1anuUGXKlREQvCBdLvvBwk7YcrlGc0eaq+A228IVyX3LZs7XLg + +QlDHgS+vl/Bij9KgbNl2iXOg+iCrsZYYgg+N5uHgHZE0jFVW6NfZacIwzZf + fPbxi9/vYY81MYGycLXVzYLSecz/fPMbCadsvVzPZ5MpvQzDSRgs1gGbBKzl + 5ZpZdIcSFH+9ebgjs+l6HQTT8Xq8YNF6OcHCeor7USSzdMnbOSYSwnxrL3B7 + 9+HxE1nP1hGN5qvL5WxZsMVSefQjkKHPZ+2h1VWrCi+XHr378nR/S8ar+WI5 + n0XLZQiXK4jqSHTOU+T4TcL/VcaiRrXEbXTzkcK/lVBjj8L6iScJijETTTVt + Vl3w7uH+0/2Hhzus5EOQel7ITJGWzP948/nb45c7tAjp31Fcf54Y+Kx00iOP + 9dPHzjvpNsqW0r1y4Iv167A6B5qm1S9S9RvrbOef/Q0AAP//AwBW1xWjoRcA + AA== + http_version: + recorded_at: Sat, 17 Sep 2016 20:43:58 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/gateway/void.yml b/spec/fixtures/cassettes/gateway/void.yml new file mode 100644 index 00000000..a8f07ba3 --- /dev/null +++ b/spec/fixtures/cassettes/gateway/void.yml @@ -0,0 +1,196 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions + body: + encoding: UTF-8 + string: | + + + 40 + fake-paypal-future-nonce + sale + + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 201 + message: Created + headers: + Date: + - Sat, 17 Sep 2016 20:44:03 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"ec04e67a6cb24a7562d2e16dd08252b3" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - 3ce57243-6f7b-42b1-98b3-0f37adb906bc + X-Runtime: + - '0.309184' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIABOr3VcAA+xYS2/jNhC+51cEvjOS42Q3DhTtA0kXKXIouptDewkocWSx + oUiVpBx7f32HelmKqI0LFEUPvVkzH4ecB2c+OvqwK8TpFrThSt4slmfh4hRk + qhiXm5vF47efyNXiQ3wSWU2loalFVHxyehpxFmfl5bskT3QU4IeTGUttZWJa + 2Vxp/h1YFLQip7X7EmJDBURB/dPJ0kpr3G1PuFEEN4X48ettFEzFDkwLVUkb + X4RnYRgF7ZdTFKDTnEpLaJo6IcHzGAtFooSNAp+2Pm2VEI/uVHJxs7C6gkXQ + WKdoSx8FVZoh0qNINVALjFB76ny/WTD8tLyARXweLt+RcE2W77+dh9cXF9fh + 6neMQL+gXl+V7O+tPyxo42ysQg/cR5281ydEYca1sUTSAjxKQed1qSpKKvce + DRSUC4/8BRLDrc9WmSvpk2d0NwlqMPQqSrgQWLP/sofGagCsCcY0GOMLwc6C + ZC4TsxChUiq49ZnXsMEL54uTwpsl6rvhPS8WqN7Pu9Oo3WpCRZnT86NQq7dQ + ssJs8HSaqUFy0Kesksx3S3qNaaucak33IyUGctCJfEZKqi3H0BiwVkABeFPH + K3zGDy3rLfMDswm1ae7F5Lws/6/F/2gtDrPTNkaSc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vUqg2QZsjBJ00FYu6ExZpso/vrp4Y5cXqaXdLmEVbi+ + Ci/XFDvpa9w/xR+agBxPH3DWVxt3gNu7z49fSLJk9JyF7y9W67AmAo3yEEcg + c/+LDF8js0loInr369P9LbnI3l2t11c0Wa7YasXWXSZG+2lyeGzGP6tcdqiB + eIjuX5/xrYIOexB2d1oIFGMd2vYZ0Y69u4f7L/efH+6wdc9BOipY2roofa7O + /knwahLOd0kP8Jhe1fV0D32Ngu6qjKZufPIXAAAA//8DABOmQT1EFQAA + http_version: + recorded_at: Sat, 17 Sep 2016 20:44:03 GMT +- request: + method: put + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/fp56bhbr/void + body: + encoding: UTF-8 + string: '' + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 200 + message: OK + headers: + Date: + - Sat, 17 Sep 2016 20:44:03 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"b5054880f8cd5e0de078846307385b5d" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - 9c055b84-9404-44ff-91cc-cac59e6f517b + X-Runtime: + - '0.198621' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIABOr3VcAA+xYS3PbNhC+51d4dIdJWXZieWg6ydjNuJNDp4kP7cUDEksR + NQiwAChL+fVd8CXSBGN1pu3k0Ju0++Gx7w+Mbn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xGmpTGF46lTZ+UyxKq3J9MBtvawBVZL/WUFbQSjGKHBstZNi + cqUJslDEsKeZkun1LfUbl0z77CA5xxTU+9GE76djjQDcqA2MqzOk0KgoyiNp + dY/vd2gfOAcCMXzz1Ii5Z0vjIYP0tc/s992rxeU2knjTMXZ31QEvMQpbFMS0 + 5HilqbwxOJha/C87Yfro+7Ec0EvaNGm6vaB+olclJtW8nCWCA33fnWuWS0ok + HooR5FrE+dLbx0dIvJa2Xixe+cU5buQRnG4eFsu4qQvWq4NmF9V165n2O/cA + w245vdt4U2SI7uGOds3UcK9vph6+piVMd8WYb92YzgDmBqw7Vj2TJpoTLboh + qbRpSDoDi29Q07XikcofmwHD9x8/xky+VRwJh51zAM4h7b+Ge+1gpiIv9W1Y + pamHwGNEZmx3lpeVBV9qtDOUcIk8s2peTO4DDcpLKh7b7x1RMIcbs7iBrWOy + NyRys6DX96qp32t79fzQ5thVCFaYSz3Aq2fK82J0dr7CvBCEI6z+oBHXv9/D + DluggKZTDdX9gsZbLP7lw28kTS8usyVNztiSrVcZJMuQhUmaDtzaTc0x3Ubx + lw+f78jFRXpBl0tYhevL8GJNsZO+xP1TBKpxyPH8CclOtXEXuL37+PCJJEtG + z1j47ny1Dmsm1CgPfgQy92Fo+BybDULj0btfH+9vyXn29nK9vqTJcsVWK7bu + IjE6T5PDazv+WeWyQw3EQ3T//I5vFXTYg7CraSFQjHlo23dUO/buPt9/uv/4 + +Q5b9xyk48KlrZPSZ+rsV5IXk3C+S3qAx/Sqrqd7+HsUdKUymrrxm78AAAD/ + /wMA+pcnDkEWAAA= + http_version: + recorded_at: Sat, 17 Sep 2016 20:44:03 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/models/solidus_paypal_braintree/gateway_spec.rb b/spec/models/solidus_paypal_braintree/gateway_spec.rb index ff5d0f8a..84119b61 100644 --- a/spec/models/solidus_paypal_braintree/gateway_spec.rb +++ b/spec/models/solidus_paypal_braintree/gateway_spec.rb @@ -18,7 +18,7 @@ ) end - describe 'making a payment on an order' do + describe 'making a payment on an order', vcr: { cassette_name: 'gateway/complete' } do include_context 'order ready for payment' before do @@ -86,7 +86,7 @@ it { is_expected.to eq "paypal_braintree" } end - describe '#purchase' do + describe '#purchase', vcr: { cassette_name: 'gateway/purchase' } do subject(:purchase) { gateway.purchase(1000, source, {}) } include_examples "successful response" @@ -97,7 +97,7 @@ end end - describe "#authorize" do + describe "#authorize", vcr: { cassette_name: 'gateway/authorize' } do subject(:authorize) { gateway.authorize(1000, source, {}) } include_examples "successful response" @@ -108,7 +108,7 @@ end end - describe "#capture" do + describe "#capture", vcr: { cassette_name: 'gateway/capture' } do subject(:capture) { gateway.capture(1000, authorized_id, {}) } include_examples "successful response" @@ -118,7 +118,7 @@ end end - describe "#credit" do + describe "#credit", vcr: { cassette_name: 'gateway/credit' } do subject(:credit) { gateway.credit(2000, source, settled_id, {}) } include_examples "successful response" @@ -128,7 +128,7 @@ end end - describe "#void" do + describe "#void", vcr: { cassette_name: 'gateway/void' } do subject(:void) { gateway.void(authorized_id, source, {}) } include_examples "successful response" @@ -138,13 +138,13 @@ end end - describe "#cancel" do + describe "#cancel", vcr: { cassette_name: 'gateway/cancel' } do let(:transaction_id) { "fake_transaction_id" } subject(:cancel) { gateway.cancel(transaction_id) } context "when the transaction is found" do - context "and it is voidable" do + context "and it is voidable", vcr: { cassette_name: 'gateway/cancel/void' } do let(:transaction_id) { authorized_id } include_examples "successful response" @@ -154,7 +154,7 @@ end end - context "and it is not voidable" do + context "and it is not voidable", vcr: { cassette_name: 'gateway/cancel/refunds' } do let(:transaction_id) { settled_id } include_examples "successful response" @@ -165,7 +165,7 @@ end end - context "when the transaction is not found" do + context "when the transaction is not found", vcr: { cassette_name: 'gateway/cancel/missing' } do it 'raises an error', aggregate_failures: true do expect{ cancel }.to raise_error Braintree::NotFoundError end @@ -221,7 +221,7 @@ end end - describe '.generate_token', :braintree_integration do + describe '.generate_token' do subject { gateway.generate_token } it { is_expected.to be_a(String).and be_present } From 92eb735d82523f18b2cb31b63c8fca89de7166bb Mon Sep 17 00:00:00 2001 From: Clarke Brunsdon Date: Sat, 17 Sep 2016 14:22:40 -0700 Subject: [PATCH 4/8] Add vcr cassette to transaction controller --- .../transactions_controller_spec.rb | 26 +++--- .../cassettes/transaction/import/valid.yml | 87 +++++++++++++++++++ 2 files changed, 100 insertions(+), 13 deletions(-) create mode 100644 spec/fixtures/cassettes/transaction/import/valid.yml diff --git a/spec/controllers/solidus_paypal_braintree/transactions_controller_spec.rb b/spec/controllers/solidus_paypal_braintree/transactions_controller_spec.rb index 00a36fe0..36593ac5 100644 --- a/spec/controllers/solidus_paypal_braintree/transactions_controller_spec.rb +++ b/spec/controllers/solidus_paypal_braintree/transactions_controller_spec.rb @@ -34,7 +34,19 @@ } end - context "when the transaction is valid" do + context "import has invalid address" do + before { params[:transaction][:address_attributes][:city] = nil } + + it "raises a validation error" do + expect { post_create }.to raise_error( + SolidusPaypalBraintree::TransactionImport::InvalidImportError, + "Validation failed: " \ + "Transactionaddress city can't be blank" + ) + end + end + + context "when the transaction is valid", vcr: { cassette_name: 'transaction/import/valid' } do it "imports the payment" do expect { post_create }.to change { order.payments.count }.by(1) expect(order.payments.first.amount).to eq 55 @@ -50,18 +62,6 @@ end end - context "and an invalid address is provided" do - before { params[:transaction][:address_attributes][:city] = nil } - - it "raises a validation error" do - expect { post_create }.to raise_error( - SolidusPaypalBraintree::TransactionImport::InvalidImportError, - "Validation failed: " \ - "Transactionaddress city can't be blank" - ) - end - end - context "and the transaction does not have an address" do before { params[:transaction].delete(:address_attributes) } diff --git a/spec/fixtures/cassettes/transaction/import/valid.yml b/spec/fixtures/cassettes/transaction/import/valid.yml new file mode 100644 index 00000000..9df0233d --- /dev/null +++ b/spec/fixtures/cassettes/transaction/import/valid.yml @@ -0,0 +1,87 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/customers + body: + encoding: UTF-8 + string: | + + + fake-valid-nonce + + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 201 + message: Created + headers: + Date: + - Sat, 17 Sep 2016 21:17:04 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"78cf37153a3dfab48f47536727dbdae0" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - 571a169a-dce6-4f2e-af3c-c7a32e4ff92d + X-Runtime: + - '0.293269' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIANCy3VcAA6xVy3bjKBDd5yt8tCeyHD9zZLKb5Wym04ve9CmJkkUbgRpQ + Yv/9gKyXY8txn/RO3LpAqepSN345FGLyhtpwJbdB9DgNJihTxbjcbYPXb/+Q + dfBCH+K0MlYVqOnDZBJzRlfLaLqaRos4dAuPuViag7TEBzXbbWa/VkmxyvaL + /CkOh1HPzrg2lkgocCK52AZWVxiEdUjAWCRVRQnyeIFjAVxcoGWu5OUZGRwu + sHdMDLdX7tMIFhkBO7HHErcBc0vLCwzobBotyXRDotW3WfQcrZ6n8x9x2G+o + 91cl+7P9/YbT/XXNScZRMNOlxLglKWhmmkNBazgGPnoePyEOS7gQrpsEGNNo + TIuf+mh+tx1ssLbR5KzJQ7TnjnexIYz2sr3sekebqLEa0bZ5j5DwYFEyX7Sb + NKFSENyOXaVx5/Q/EiyVsSCIexRIN3NXkjgcQsPfqaTVxxomIMocZqM//pH5 + dA9TVq4HPP2EeqvgX5N0c8oXhV2fEY7I0slV0vk0mq3XniM73Gua+Ovod27A + Zdath4xcCeZkOlYCrzg/izgI+ir3Ur1Ld1KP9bRTKVVGuDEVyBSpJ16i3Y6v + V/b+t9czva6tky59/W/A7NCWzzDhtv/j07IPZlCJNu9EKYEgA+or56l1sCdX + 2nWFuAdTCZ//4NCPkXYLHkqu63xIoaTNaTSLwwvwCvuIoF31ZtMzeo2esZF9 + zD0DYbDZNcgkRxA2dzrBPu0B1tJ4ATsklRY0t7Y0z2EIxqA1j4kGLv1U2rkf + fIfjo5NOWMKxQGl/FmhzxX4KtVPhm5PoYyl3LyjfuFbSE7YGJEvUwQ3c7vzu + Ricn/xgSkPs+tTO0pdYzdU6j9TqKw2bRxlwqWomBtFugI2gswenoX+VizXcf + U6xKa4vu9/dYSzNVYlLNS9+Lcw/qX5lVe5R0yfZPdhmHp1UbqyT/XdWjLKk1 + 7SrDncVpCtlisZpvssUmizL2tGbLNEsjB2TzxTrJnGZGt3Zn/4XB9IayUMSw + /Yimuvhgh3ZpnF7c1YrUj33oy2dAPfriZgziVVv/OCMvjPsPRsdt075t2bcM + +w67vsusb1r1DaO+06bvNel7Lfpug/7Unv+KhXz5BcThQGzdAt2ylxN9+B8A + AP//AwD1O1I+NwwAAA== + http_version: + recorded_at: Sat, 17 Sep 2016 21:17:04 GMT +recorded_with: VCR 3.0.3 From 4d3ece3da72f4657335a14e1780ceca340e522ac Mon Sep 17 00:00:00 2001 From: Clarke Brunsdon Date: Sat, 17 Sep 2016 14:34:36 -0700 Subject: [PATCH 5/8] Use the 'valid' cassette for the import spec If we use the same nonce it'll make all the same calls. --- .../transaction/import/valid/capture.yml | 285 ++++++++++++++++++ .../transaction_import_spec.rb | 7 +- 2 files changed, 289 insertions(+), 3 deletions(-) create mode 100644 spec/fixtures/cassettes/transaction/import/valid/capture.yml diff --git a/spec/fixtures/cassettes/transaction/import/valid/capture.yml b/spec/fixtures/cassettes/transaction/import/valid/capture.yml new file mode 100644 index 00000000..ab89b31d --- /dev/null +++ b/spec/fixtures/cassettes/transaction/import/valid/capture.yml @@ -0,0 +1,285 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/customers + body: + encoding: UTF-8 + string: | + + + fake-valid-nonce + + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 201 + message: Created + headers: + Date: + - Sat, 17 Sep 2016 21:33:23 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"b11d975055d7bd6edf4d544715d2132a" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - fb02e7dd-fe42-492b-b5b8-8c1fa98f5379 + X-Runtime: + - '0.304663' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIAKO23VcAA6xVTXPaMBC951cwvivGBoLJGOXWYy9NeuilI1trrCJLriQT + 6K+vZPxFwIRMcvO+fSutd59246d9wSc7UJpJsfaC+6k3AZFKysRm7b08f0OR + 94Tv4rTSRhag8N1kEjOKF6sgXETBIvat4TDrS3MiDLL2UtHNKvyzTIpltl3k + s9gfeh07Y0obJEgBE8H42jOqAs+vXZyMeVJZlEQcznAoCONnaJlLcX5GRvZn + 2CskmpkL9ykgBigiZmIOJaw9ak3DCvBwOA0e0HSFguVzGDzOZo/h7Ffs9wF1 + fFXSj8X3Acf765qjjAGnukuJMoNSoqhuDiVKkYPnvKf+I2KxhHFuu4kIpQq0 + bvFjH/ebtoMN1jYanTR5iPbc8S42hNFetpdd7mjj1UYBmDbvERLsDQjqinaV + xmVKODNjVynYWP2POEupDeHIPgrAq3kwXcb+EBr+TiWMOtQwIrzMSTj642+Z + s1uYorI9YOk71GsF/5ykm1M+Kez6DH9EllauAs+nQRhFjiM63GkauevwT6aJ + zayzh4xccmplOlYCpzg3ixjh+EVshXwV9qQe62nHUsoMMa0rIlLAjniOdhGf + r+ztb69nOl0bK1388mPA7NCWTyFhpv/jo9k7M1LxNu9ESg5EeNhVzlFrZ0+u + lO0Ksg+m4i7/waFvPW0I7Eum6nxQIYXJcRDG/hl4gX0Aomz1wukJvUZP2EDf + 5p4RrqGJGmSSA+EmtzqBPu0B1tJYQTaAKsVxbkypH32faA1G3yeKMOGm0sb+ + 4Cs53Fvp+CU5FCDM7wJMLulvLjfS31mJ3pdi8wRix5QUjrDWRNBE7u3A7c7v + brRyco8hIWLbp3aCttR6ps5xEEVB7DdG67OpKMkH0m6BjqCgJFZH36X1Nd+9 + T9IqrVd0H99jLU1XiU4VK10vTndQ/8qM3ILAq3+7aGZbfbRaXyXY36oeZUmt + aVsZZlecwiRbLJbzVbZYZUFGZxF9SLM0sEA2X0RJZg8aDe3O/oLBtANRSKTp + dkRTnX8QoWwaxxd3sSL1Yx/u5ROgHn1xMwbh4lp/OyPPFvcHRsf1pX19ZV9b + 2Des65uW9dVVfWVR37imb13St67omxf0u+v5S1bIp19A7A/E1hlgzV5O+O4/ + AAAA//8DAAV4uhM3DAAA + http_version: + recorded_at: Sat, 17 Sep 2016 21:33:23 GMT +- request: + method: post + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions + body: + encoding: UTF-8 + string: | + + + 15.00 + + true + + R999999999-ABCD1234 + 9zv832 + 59125815 + sale + + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 201 + message: Created + headers: + Date: + - Sat, 17 Sep 2016 21:33:24 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"2e3ea4d972f89de3fabacdcc5af7a51b" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - e8897616-99ce-469a-8493-7a8e2f41c04d + X-Runtime: + - '0.318142' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIAKS23VcAA9xYS2/jNhC+51cYvjOy/NjYgaJ026BADy3Q3U2B9hJQ0sji + RiJVknLs/fU7FCVZsqgkPRQompM183HIeXDmY4L7Y5HPDiAVE/xu7l8v5jPg + sUgY39/NH7/8TLbz+/Aq0JJyRWONqPBqNgtYEkbPX9c61jrw8MPIlKa6UiGt + dCYk+wZJ4DUio9WnEkJFcwi8+qeRxZWUuNuJMCUIbgrh4+eHwBuLDZgWouI6 + 9DfXi0XgNV9GUYCMM8o1oXFshATPozQUkcjxcC5tfdoqIg7djLP8bq5lBXPP + WqdoS74LKmSCSLT/adf+kY8//vTgL1frwOu0tecSqIaEUD0z0bibJ/ipWQHz + cLnwP5DFjvg3X5b+7Wp1u1z/hTHpFtTrqzL5Z+vPC5rIKy3QJ/Nh07nZ+cvN + 1t+06URpyqTShNMCLl1FZU6ndbEoSspPDg0UlOUO+QtEimmXrTIT3CVP6XGU + AK/vVhCxPMcyPrt43P+7ziktAbBCkkSCUi7vjxp4YrIwCclFTHOmXeYl7PH6 + uUIk8J7l9qbs1v7iJvD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dmGRpFwmccx+jVRwp3e + zgp8sXIYW8WcH8xwSwGmxpLZVrwQm82RFsMQVVJZzpuAxkedajvWQOXOTY8w + u7cfYkb/D3gnHI4mANippfsY5vGAlYo0z2WwimMHH8aMTPhuPC8rDa7SaEYM + YRxpW2UfIGas2hbzZFpM4E2BhsSn5+iQH/W5zyTobVs1W3rLVkepdIYtheD1 + MnUHePRUDCM2aB7h1XcAAAD//wMAWlwta3ASAAA= + http_version: + recorded_at: Sat, 17 Sep 2016 21:33:24 GMT +- request: + method: put + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/bkj4tctt/submit_for_settlement + body: + encoding: UTF-8 + string: | + + + 15.00 + + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 200 + message: OK + headers: + Date: + - Sat, 17 Sep 2016 21:33:25 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"94cccb20edb52096df89778a5a3e951f" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - 1a5c7945-718e-4b6b-a9f6-7c7dd422b550 + X-Runtime: + - '0.208386' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIAKW23VcAA9xYTW/jNhC951cYvjOyHHtjB4rSbYMCPbRAdzcF2ktASSOL + G4lUScqx99d3KEqyZFGJgaLAojlFM49DzgdnHh08HIp8tgepmOD3c/96MZ8B + j0X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4AZwryhPInFAEtHZb7qdhJIis/hNmAK0 + /1tNBjTXGZ4YqS1/4eKVB15PZkEJREyf9PazUVUSE4dVuKtyw996qHNNNwoM + VcVpd4L2ZM156VGKvIdoBU34lKqwGeIw4y8nzEA6bK4iJUZLeQyh2W4sbeMk + kiquKfhp65PMgirO/q6guUkoxsgz7MUypOl6fbvaputt6qfJzSb5EKexj4J0 + td5EKZbi5FJreQ+8EEQlLxM3rdM3ZHJ405rXDskYlqU8DhhDN21rBKChJoHm + eiIrR0VRXsj0O3xnoXlFnQhJ/2FVI6beRjagCiPQVf4P7dPI1D6GTLXhMUft + 8RwlsLNBSEuGRxrLrcPe2ON/H4T1W0G45K35fYWkkzSFY8dGTt1UsopULFk5 + STV7+q7J1zyalEhtREKQzRETXUdbPEPisaR2YvHIZ/uY2UlwTDp4csJUfeOd + OrBWRHsFJxr21CMPW+z4bEOjyEHN7wXo18St7vR2fOIjnsPYKuZ8b+Z9CjA1 + qc224pXYbI60GIaokso+AxLQ+M5VbRMfqNy56b0h3NsPMaOfSC6Ew8EEAIeX + dB/DvKewUpH5ugxWcex4ImBGJnw3npeVBldpNFOXMI5MtrJvMsM0bNd9Nl03 + 8KZAQy7Yc3RIGft0cBL0vq2aQL5nq2OZOsOWQvB6mboDPHoqhhEbNI/w6h8A + AAD//wMAIN2JvpETAAA= + http_version: + recorded_at: Sat, 17 Sep 2016 21:33:25 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/models/solidus_paypal_braintree/transaction_import_spec.rb b/spec/models/solidus_paypal_braintree/transaction_import_spec.rb index 8a995867..a72f2965 100644 --- a/spec/models/solidus_paypal_braintree/transaction_import_spec.rb +++ b/spec/models/solidus_paypal_braintree/transaction_import_spec.rb @@ -67,7 +67,7 @@ let(:transaction_address) { nil } let(:transaction) do - SolidusPaypalBraintree::Transaction.new nonce: 'fake-apple-pay-visa-nonce', + SolidusPaypalBraintree::Transaction.new nonce: 'fake-valid-nonce', payment_method: payment_method, address: transaction_address, phone: '123-456-7890', email: 'user@example.com' end @@ -85,7 +85,7 @@ subject { described_class.new(order, transaction).import! } - context "passes validation" do + context "passes validation", vcr: { cassette_name: 'transaction/import/valid' } do it 'advances order to confirm state' do subject expect(order.state).to eq 'confirm' @@ -96,7 +96,8 @@ expect(order.payments.first.amount).to eq 15 end - it 'is complete and capturable', aggregate_failures: true do + it 'is complete and capturable', aggregate_failures: true, + vcr: { cassette_name: 'transaction/import/valid/capture' } do subject order.complete From 456439e2a5d24d8804ba449b4172a175cf9243ee Mon Sep 17 00:00:00 2001 From: Clarke Brunsdon Date: Sat, 17 Sep 2016 14:45:54 -0700 Subject: [PATCH 6/8] Use a cassette for gateway back in --- .../cassettes/braintree/create_profile.yml | 79 ++++++++++++++++ .../cassettes/braintree/generate_token.yml | 93 +++++++++++++++++++ .../solidus_paypal_braintree/gateway_spec.rb | 8 +- 3 files changed, 177 insertions(+), 3 deletions(-) create mode 100644 spec/fixtures/cassettes/braintree/create_profile.yml create mode 100644 spec/fixtures/cassettes/braintree/generate_token.yml diff --git a/spec/fixtures/cassettes/braintree/create_profile.yml b/spec/fixtures/cassettes/braintree/create_profile.yml new file mode 100644 index 00000000..21e03ee5 --- /dev/null +++ b/spec/fixtures/cassettes/braintree/create_profile.yml @@ -0,0 +1,79 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/customers + body: + encoding: UTF-8 + string: | + + + fake-paypal-future-nonce + + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 201 + message: Created + headers: + Date: + - Sat, 17 Sep 2016 21:17:07 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"c1bbd710cf5c311a46a14e487bc1d9e3" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - 1d111cce-5f11-4f45-bb12-aae3828450e7 + X-Runtime: + - '0.171375' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIANOy3VcAA6RTy3KjMBC8+yso7kLGuzaxC+M97RdkL3tJDWjASvSgJBHj + v18JjJ0Y57CVo7p7ZqSeVn7opYje0Viu1T5Ok2Ucoao046rZx3+ef5On+FAs + 8qqzTks0xSKKcs6Kp5/r9SbbZjn1h4B5rjqCcsSfM8Oa7eo1K2VWv62PP3L6 + kQ3qmhvriAKJkeJiHzvTYUwHSsBXTKVlC+o8w1ECFzO0PWo171FDP8NOWFru + HswzCA4ZARe5c4v7mPmj4xLjYrVMN2S5JWn2vEp3abZbZn9zeisY6ruW/V/9 + rWCcP3hOao6C2euVGHekAsPspSkYA+fpzXBuQRCoKt0p91kRBDPJCHq45EL4 + lRNoDKLEYVP3hgzCb5oy9riEiXwK0kd0UjKsoRPTqFJrgaDiItwppxfyKh5y + ULyCwoRp/IU9yFZg4mOT05GblFxCg6Qzojg619odpWAtOpuUBrhy3oLG3/kE + 51BMvWXBkReJ7qjZi9CNpqONSauaA6p3brQKkr0FxUrd+19xnTDNtF1pK8Nb + 5z/ag90NGqffUBXNps9OTU7H08R9M03juy0J31ChIFxxxwN/720NwnpzH0mv + ffzrw55UrR9mRHDJw+TOItGGDSudC3M6z+I9ZgcQGDPoFzSz7RaaYvEPAAD/ + /wMAgh/7hMoEAAA= + http_version: + recorded_at: Sat, 17 Sep 2016 21:17:07 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/braintree/generate_token.yml b/spec/fixtures/cassettes/braintree/generate_token.yml new file mode 100644 index 00000000..7730a70b --- /dev/null +++ b/spec/fixtures/cassettes/braintree/generate_token.yml @@ -0,0 +1,93 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/client_token + body: + encoding: UTF-8 + string: | + + + 2 + + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 201 + message: Created + headers: + Date: + - Sat, 17 Sep 2016 21:44:48 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"e1aec041de86139d7c695a8d1edb16c7" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - 0050686f-9741-468d-8b0b-04fcb9c1267a + X-Runtime: + - '0.125897' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIAFC53VcAA6RVXY+bOhB9769Y7XtvwSy9Rdpt1SSFgILTkMRgv4GdvXzY + JCoJX7/+jkm73Uq5VaX7EEXC45kz55wZP37qlbxrD9+a4lg/3Zt/Gfd3h5of + RVH/83S/37lvP9x/+vjmkcviUJ/fno/Vof745u7usU3l5fDxMASIJcGYxs7F + L4/Dah7kIomOmRWcDso19PdIyQtDZODL4JTVm2Jd+CNFQUVHf1jvsKIlLsI4 + 7LHa9GHsP2BFylBRe+1turB0c1YyiMUFi90cj9QKF3Rk5R7uRrk+D3cc4d3G + ePbwADEGi6Nnmmyc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2RvTH7/BZfmMI1hlya+ + jvl5Nn89x6Zkes8qfqF1kKe6pgI/1Bg0NAFzb6yUbDVubpGOe84AXFYv3rDC + Yi2bQig50mnfmTn0o9+mnKsJUw66PPjSdJ43T0+P767v8ZvHd7++1P8CAAD/ + /wMALC97wOAHAAA= + http_version: + recorded_at: Sat, 17 Sep 2016 21:44:48 GMT +recorded_with: VCR 3.0.3 diff --git a/spec/models/solidus_paypal_braintree/gateway_spec.rb b/spec/models/solidus_paypal_braintree/gateway_spec.rb index 84119b61..692d318a 100644 --- a/spec/models/solidus_paypal_braintree/gateway_spec.rb +++ b/spec/models/solidus_paypal_braintree/gateway_spec.rb @@ -154,7 +154,7 @@ end end - context "and it is not voidable", vcr: { cassette_name: 'gateway/cancel/refunds' } do + context "and it is not voidable", vcr: { cassette_name: 'gateway/cancel/refunds' } do let(:transaction_id) { settled_id } include_examples "successful response" @@ -165,7 +165,7 @@ end end - context "when the transaction is not found", vcr: { cassette_name: 'gateway/cancel/missing' } do + context "when the transaction is not found", vcr: { cassette_name: 'gateway/cancel/missing' } do it 'raises an error', aggregate_failures: true do expect{ cancel }.to raise_error Braintree::NotFoundError end @@ -224,7 +224,9 @@ describe '.generate_token' do subject { gateway.generate_token } - it { is_expected.to be_a(String).and be_present } + context 'connection enabled', vcr: { cassette_name: 'braintree/generate_token' } do + it { is_expected.to be_a(String).and be_present } + end context 'when token generation is disabled' do around do |ex| From 11f13ea4917b099125dca96c0b7443900f64d42d Mon Sep 17 00:00:00 2001 From: Clarke Brunsdon Date: Sat, 17 Sep 2016 15:34:38 -0700 Subject: [PATCH 7/8] Put vcr back into checkout controller --- .../checkouts_controller_spec.rb | 2 +- spec/fixtures/cassettes/checkout/update.yml | 79 +++++++++++++++++++ 2 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 spec/fixtures/cassettes/checkout/update.yml diff --git a/spec/controllers/solidus_paypal_braintree/checkouts_controller_spec.rb b/spec/controllers/solidus_paypal_braintree/checkouts_controller_spec.rb index 84e72534..e99839dc 100644 --- a/spec/controllers/solidus_paypal_braintree/checkouts_controller_spec.rb +++ b/spec/controllers/solidus_paypal_braintree/checkouts_controller_spec.rb @@ -4,7 +4,7 @@ RSpec.describe SolidusPaypalBraintree::CheckoutsController, type: :controller do include_context 'order ready for payment' - describe 'PATCH update' do + describe 'PATCH update', vcr: { cassette_name: 'checkout/update' } do subject(:patch_update) { patch :update, params } let(:params) do diff --git a/spec/fixtures/cassettes/checkout/update.yml b/spec/fixtures/cassettes/checkout/update.yml new file mode 100644 index 00000000..5792d343 --- /dev/null +++ b/spec/fixtures/cassettes/checkout/update.yml @@ -0,0 +1,79 @@ +--- +http_interactions: +- request: + method: post + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/customers + body: + encoding: UTF-8 + string: | + + + fake-paypal-future-nonce + + headers: + Accept-Encoding: + - gzip + Accept: + - application/xml + User-Agent: + - Braintree Ruby Gem 2.65.0 + X-Apiversion: + - '4' + Authorization: + - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ== + Content-Type: + - application/xml + response: + status: + code: 201 + message: Created + headers: + Date: + - Sat, 17 Sep 2016 22:27:21 GMT + Content-Type: + - application/xml; charset=utf-8 + Transfer-Encoding: + - chunked + X-Frame-Options: + - SAMEORIGIN + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Authentication: + - basic_auth + X-User: + - 3v249hqtptsg744y + Vary: + - Accept-Encoding + Content-Encoding: + - gzip + Etag: + - W/"4e04f7da31e3a010265691e383b0001b" + Cache-Control: + - max-age=0, private, must-revalidate + X-Request-Id: + - ad6e0bbd-426e-492b-97d4-83a833e0a81b + X-Runtime: + - '0.228061' + Strict-Transport-Security: + - max-age=31536000; includeSubDomains + body: + encoding: ASCII-8BIT + string: !binary |- + H4sIAEnD3VcAA6RTy5KbMBC8+yso7rIMqSyxS8Y55Qs2l1y2BjSAdvWgJLG2 + /z4SGHvXOIfUHtXdMyP1tNjhpGTyjtYJo/dptt6kCeracKHbffr7+Rf5kR7K + FasH541CW66ShAleZnmxfdpuNoyGQ8QCV3egPQnnwvJ2m78WlSqat+/dN0Y/ + slHdCOs80aAw0ULuU28HTOlISfgXUxvVgz4vcFQg5ALtO6OXPRo4LbAjVk74 + B/MsgkdOwCf+3OM+5eHohcK0zDfZE9lsSVY85/kuL3Z59ofRW8FYP/T8/+pv + BdP80XPSCJTcXa/EhSc1WO4uTcFaOM9vhnMPkkBdm0H7z4ooWEgmMMCVkDKs + nEBrERWOm7o3ZBR+0ZSpxyVM5FOQPqKzkmMDg5xHVcZIBJ2W8U6MXsireMxB + +Qoa19zgTzyB6iWuQ2wYnbhZKRS0SAYry8773u0oBefQu3VlQWgfLGjDnY9w + jsU0WBYdeVHoO8NfpGkNnWxc97o9oH4X1ugo2TvQvDKn8CuuE+aZbqhcbUXv + w0d7sLtR480b6jI/+tOxZXQ6zdwX0zS925H4DTVKIrTwIvL33jYgXTD3kfTa + J7w+7kk35mFGpFAiTh4cEmP5uNKlkNFlFu8xN4LAucWwoIVtt9CUq78AAAD/ + /wMAdlthgcoEAAA= + http_version: + recorded_at: Sat, 17 Sep 2016 22:27:21 GMT +recorded_with: VCR 3.0.3 From 5388ced779b192daf9fe13ea63b27a052001039f Mon Sep 17 00:00:00 2001 From: Clarke Brunsdon Date: Sat, 17 Sep 2016 15:34:58 -0700 Subject: [PATCH 8/8] Disable web requests for anything not in cassette --- spec/spec_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index d9a90baf..6af12b4d 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -41,7 +41,7 @@ c.ignore_localhost = true c.configure_rspec_metadata! c.default_cassette_options = { match_requests_on: [:method, :uri, :body], allow_unused_http_interactions: false } - c.allow_http_connections_when_no_cassette = true + c.allow_http_connections_when_no_cassette = false end require 'braintree'