solidus_braintree 1.4.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (204) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +12 -0
  3. data/.gem_release.yml +5 -0
  4. data/.github_changelog_generator +2 -0
  5. data/.gitignore +20 -11
  6. data/.rspec +1 -1
  7. data/.rubocop.yml +79 -0
  8. data/CHANGELOG.md +178 -18
  9. data/Gemfile +31 -23
  10. data/LICENSE +26 -0
  11. data/README.md +387 -26
  12. data/Rakefile +4 -19
  13. data/app/assets/config/solidus_braintree_manifest.js +1 -0
  14. data/app/assets/images/solidus_braintree/venmo/venmo_active_blue_button_280x48.svg +19 -0
  15. data/app/assets/images/solidus_braintree/venmo/venmo_active_blue_button_320x48.svg +19 -0
  16. data/app/assets/images/solidus_braintree/venmo/venmo_active_blue_button_375x48.svg +19 -0
  17. data/app/assets/images/solidus_braintree/venmo/venmo_active_white_button_280x48.svg +19 -0
  18. data/app/assets/images/solidus_braintree/venmo/venmo_active_white_button_320x48.svg +19 -0
  19. data/app/assets/images/solidus_braintree/venmo/venmo_active_white_button_375x48.svg +19 -0
  20. data/app/assets/images/solidus_braintree/venmo/venmo_blue_acceptance_mark.svg +15 -0
  21. data/app/assets/images/solidus_braintree/venmo/venmo_blue_button_280x48.svg +19 -0
  22. data/app/assets/images/solidus_braintree/venmo/venmo_blue_button_320x48.svg +19 -0
  23. data/app/assets/images/solidus_braintree/venmo/venmo_blue_button_375x48.svg +19 -0
  24. data/app/assets/images/solidus_braintree/venmo/venmo_blue_logo.svg +18 -0
  25. data/app/assets/images/solidus_braintree/venmo/venmo_white_acceptance_mark.svg +20 -0
  26. data/app/assets/images/solidus_braintree/venmo/venmo_white_button_280x48.svg +19 -0
  27. data/app/assets/images/solidus_braintree/venmo/venmo_white_button_320x48.svg +19 -0
  28. data/app/assets/images/solidus_braintree/venmo/venmo_white_button_375x48.svg +19 -0
  29. data/app/assets/images/solidus_braintree/venmo/venmo_white_logo.svg +18 -0
  30. data/app/assets/javascripts/solidus_braintree/apple_pay_button.js +179 -0
  31. data/app/assets/javascripts/solidus_braintree/checkout.js +108 -0
  32. data/app/assets/javascripts/solidus_braintree/client.js +239 -0
  33. data/app/assets/javascripts/solidus_braintree/constants.js +89 -0
  34. data/app/assets/javascripts/solidus_braintree/frontend.js +14 -0
  35. data/app/assets/javascripts/solidus_braintree/hosted_form.js +46 -0
  36. data/app/assets/javascripts/solidus_braintree/paypal_button.js +178 -0
  37. data/app/assets/javascripts/solidus_braintree/paypal_messaging.js +22 -0
  38. data/app/assets/javascripts/solidus_braintree/promise.js +20 -0
  39. data/app/assets/javascripts/solidus_braintree/venmo_button.js +86 -0
  40. data/app/assets/javascripts/spree/backend/solidus_braintree.js +96 -0
  41. data/app/assets/javascripts/spree/frontend/paypal_button.js +34 -0
  42. data/app/assets/javascripts/spree/frontend/solidus_braintree.js +1 -0
  43. data/app/assets/stylesheets/spree/backend/solidus_braintree.scss +28 -0
  44. data/app/assets/stylesheets/spree/frontend/solidus_braintree.scss +51 -0
  45. data/app/decorators/controllers/solidus_braintree/admin_payments_controller_decorator.rb +11 -0
  46. data/app/decorators/controllers/solidus_braintree/checkout_controller_decorator.rb +11 -0
  47. data/app/decorators/controllers/solidus_braintree/client_tokens_controller.rb +41 -0
  48. data/app/decorators/controllers/solidus_braintree/orders_controller_decorator.rb +11 -0
  49. data/app/decorators/models/solidus_braintree/spree/store_decorator.rb +20 -0
  50. data/app/decorators/models/solidus_braintree/spree/user_decorator.rb +13 -0
  51. data/app/helpers/solidus_braintree/braintree_admin_helper.rb +23 -0
  52. data/app/helpers/solidus_braintree/braintree_checkout_helper.rb +60 -0
  53. data/app/models/application_record.rb +5 -0
  54. data/app/models/solidus_braintree/address.rb +64 -0
  55. data/app/models/solidus_braintree/avs_result.rb +69 -0
  56. data/app/models/solidus_braintree/configuration.rb +39 -0
  57. data/app/models/solidus_braintree/customer.rb +8 -0
  58. data/app/models/solidus_braintree/gateway.rb +433 -0
  59. data/app/models/solidus_braintree/response.rb +80 -0
  60. data/app/models/solidus_braintree/source.rb +135 -0
  61. data/app/models/solidus_braintree/transaction.rb +31 -0
  62. data/app/models/solidus_braintree/transaction_address.rb +88 -0
  63. data/app/models/solidus_braintree/transaction_import.rb +98 -0
  64. data/app/overrides/spree/payments/payment/add_paypal_funding_source_to_payment.rb +9 -0
  65. data/app/views/spree/api/payments/source_views/_braintree.json.jbuilder +1 -1
  66. data/app/views/spree/checkout/existing_payment/_braintree.html.erb +10 -0
  67. data/app/views/spree/shared/_apple_pay_button.html.erb +27 -0
  68. data/app/views/spree/shared/_braintree_errors.html.erb +16 -0
  69. data/app/views/spree/shared/_braintree_head_scripts.html.erb +26 -0
  70. data/app/views/spree/shared/_braintree_hosted_fields.html.erb +43 -0
  71. data/app/views/spree/shared/_paypal_cart_button.html.erb +38 -0
  72. data/app/views/spree/shared/_paypal_messaging.html.erb +13 -0
  73. data/app/views/spree/shared/_venmo_button.html.erb +33 -0
  74. data/bin/console +4 -1
  75. data/bin/rails +5 -5
  76. data/bin/rails-engine +13 -0
  77. data/bin/rails-sandbox +16 -0
  78. data/bin/rake +7 -0
  79. data/bin/sandbox +103 -0
  80. data/bin/setup +5 -4
  81. data/config/locales/en.yml +94 -2
  82. data/config/locales/it.yml +56 -0
  83. data/config/routes.rb +12 -3
  84. data/db/migrate/20160830061749_create_solidus_paypal_braintree_sources.rb +16 -0
  85. data/db/migrate/20160906201711_create_solidus_paypal_braintree_customers.rb +13 -0
  86. data/db/migrate/20161114231422_create_solidus_paypal_braintree_configurations.rb +11 -0
  87. data/db/migrate/20161125172005_add_braintree_configuration_to_stores.rb +7 -0
  88. data/db/migrate/20170203191030_add_credit_card_to_braintree_configuration.rb +6 -0
  89. data/db/migrate/20170505193712_add_null_constraint_to_sources.rb +38 -0
  90. data/db/migrate/20170508085402_add_not_null_constraint_to_sources_payment_type.rb +14 -0
  91. data/db/migrate/20190705115327_add_paypal_button_preferences_to_braintree_configurations.rb +5 -0
  92. data/db/migrate/20190911141712_add_3d_secure_to_braintree_configuration.rb +5 -0
  93. data/db/migrate/20211222170950_add_paypal_funding_source_to_solidus_paypal_braintree_sources.rb +5 -0
  94. data/db/migrate/20220104150301_add_venmo_to_braintree_configuration.rb +5 -0
  95. data/db/migrate/20230109080950_rename_solidus_paypal_braintree_source_type.rb +31 -0
  96. data/lib/controllers/backend/solidus_braintree/configurations_controller.rb +48 -0
  97. data/lib/controllers/frontend/solidus_braintree/checkouts_controller.rb +31 -0
  98. data/lib/controllers/frontend/solidus_braintree/transactions_controller.rb +67 -0
  99. data/lib/generators/solidus_braintree/install/install_generator.rb +54 -18
  100. data/lib/generators/solidus_braintree/install/templates/initializer.rb +6 -0
  101. data/lib/solidus_braintree/country_mapper.rb +37 -0
  102. data/lib/solidus_braintree/engine.rb +55 -10
  103. data/lib/solidus_braintree/extension_configuration.rb +23 -0
  104. data/lib/solidus_braintree/request_protection.rb +21 -0
  105. data/lib/solidus_braintree/testing_support/factories.rb +53 -0
  106. data/lib/solidus_braintree/version.rb +3 -1
  107. data/lib/solidus_braintree.rb +14 -2
  108. data/lib/solidus_paypal_braintree.rb +6 -0
  109. data/lib/views/backend/solidus_braintree/configurations/list.html.erb +63 -0
  110. data/lib/views/backend/spree/admin/payments/source_forms/_braintree.html.erb +16 -0
  111. data/lib/views/backend/spree/admin/payments/source_views/_braintree.html.erb +39 -0
  112. data/lib/views/backend/spree/admin/shared/preference_fields/_preference_select.html.erb +13 -0
  113. data/lib/views/backend_v1.2/spree/admin/payments/source_forms/_braintree.html.erb +16 -0
  114. data/lib/views/backend_v2.4/spree/admin/shared/preference_fields/_hash.html.erb +12 -0
  115. data/lib/views/frontend/solidus_braintree/payments/_payment.html.erb +12 -0
  116. data/lib/views/frontend/spree/checkout/payment/_braintree.html.erb +23 -0
  117. data/lib/views/frontend/spree/shared/_paypal_checkout_button.html.erb +32 -0
  118. data/solidus_braintree.gemspec +39 -38
  119. data/spec/controllers/solidus_braintree/checkouts_controller_spec.rb +99 -0
  120. data/spec/controllers/solidus_braintree/client_tokens_controller_spec.rb +55 -0
  121. data/spec/controllers/solidus_braintree/configurations_controller_spec.rb +73 -0
  122. data/spec/controllers/solidus_braintree/transactions_controller_spec.rb +183 -0
  123. data/spec/features/backend/configuration_spec.rb +23 -0
  124. data/spec/features/backend/new_payment_spec.rb +137 -0
  125. data/spec/features/frontend/braintree_credit_card_checkout_spec.rb +191 -0
  126. data/spec/features/frontend/paypal_checkout_spec.rb +166 -0
  127. data/spec/features/frontend/venmo_checkout_spec.rb +194 -0
  128. data/spec/fixtures/cassettes/admin/invalid_credit_card.yml +63 -0
  129. data/spec/fixtures/cassettes/admin/resubmit_credit_card.yml +352 -0
  130. data/spec/fixtures/cassettes/admin/valid_credit_card.yml +412 -0
  131. data/spec/fixtures/cassettes/braintree/create_profile.yml +71 -0
  132. data/spec/fixtures/cassettes/braintree/generate_token.yml +63 -0
  133. data/spec/fixtures/cassettes/braintree/token.yml +63 -0
  134. data/spec/fixtures/cassettes/checkout/invalid_credit_card.yml +63 -0
  135. data/spec/fixtures/cassettes/checkout/resubmit_credit_card.yml +216 -0
  136. data/spec/fixtures/cassettes/checkout/update.yml +71 -0
  137. data/spec/fixtures/cassettes/checkout/valid_credit_card.yml +171 -0
  138. data/spec/fixtures/cassettes/checkout/valid_venmo_transaction.yml +599 -0
  139. data/spec/fixtures/cassettes/gateway/authorize/credit_card/address.yml +86 -0
  140. data/spec/fixtures/cassettes/gateway/authorize/merchant_account/EUR.yml +154 -0
  141. data/spec/fixtures/cassettes/gateway/authorize/paypal/EUR.yml +90 -0
  142. data/spec/fixtures/cassettes/gateway/authorize/paypal/address.yml +90 -0
  143. data/spec/fixtures/cassettes/gateway/authorize.yml +86 -0
  144. data/spec/fixtures/cassettes/gateway/authorized_transaction.yml +73 -0
  145. data/spec/fixtures/cassettes/gateway/cancel/missing.yml +63 -0
  146. data/spec/fixtures/cassettes/gateway/cancel/refunds.yml +272 -0
  147. data/spec/fixtures/cassettes/gateway/cancel/void.yml +201 -0
  148. data/spec/fixtures/cassettes/gateway/capture.yml +141 -0
  149. data/spec/fixtures/cassettes/gateway/complete.yml +157 -0
  150. data/spec/fixtures/cassettes/gateway/credit.yml +208 -0
  151. data/spec/fixtures/cassettes/gateway/customer.yml +79 -0
  152. data/spec/fixtures/cassettes/gateway/purchase.yml +87 -0
  153. data/spec/fixtures/cassettes/gateway/settled_transaction.yml +140 -0
  154. data/spec/fixtures/cassettes/gateway/void.yml +137 -0
  155. data/spec/fixtures/cassettes/source/bin.yml +295 -0
  156. data/spec/fixtures/cassettes/source/card_type.yml +267 -0
  157. data/spec/fixtures/cassettes/source/last4.yml +267 -0
  158. data/spec/fixtures/cassettes/transaction/import/valid/capture.yml +224 -0
  159. data/spec/fixtures/cassettes/transaction/import/valid.yml +71 -0
  160. data/spec/fixtures/views/spree/orders/edit.html.erb +50 -0
  161. data/spec/helpers/solidus_braintree/braintree_admin_helper_spec.rb +17 -0
  162. data/spec/helpers/solidus_braintree/braintree_checkout_helper_spec.rb +70 -0
  163. data/spec/models/solidus_braintree/address_spec.rb +71 -0
  164. data/spec/models/solidus_braintree/avs_result_spec.rb +317 -0
  165. data/spec/models/solidus_braintree/gateway_spec.rb +742 -0
  166. data/spec/models/solidus_braintree/response_spec.rb +280 -0
  167. data/spec/models/solidus_braintree/source_spec.rb +539 -0
  168. data/spec/models/solidus_braintree/transaction_address_spec.rb +235 -0
  169. data/spec/models/solidus_braintree/transaction_import_spec.rb +302 -0
  170. data/spec/models/solidus_braintree/transaction_spec.rb +86 -0
  171. data/spec/models/spree/store_spec.rb +14 -0
  172. data/spec/requests/spree/api/orders_controller_spec.rb +36 -0
  173. data/spec/spec_helper.rb +32 -0
  174. data/spec/support/capybara.rb +7 -0
  175. data/spec/support/gateway_helpers.rb +29 -0
  176. data/spec/support/order_ready_for_payment.rb +37 -0
  177. data/spec/support/vcr.rb +42 -0
  178. data/spec/support/views.rb +1 -0
  179. metadata +276 -224
  180. data/LICENSE.txt +0 -21
  181. data/app/controllers/spree/api/braintree_client_token_controller.rb +0 -13
  182. data/app/decorators/lib/solidus_braintree/spree/permitted_attributes_decorator.rb +0 -9
  183. data/app/decorators/models/solidus_braintree/spree/credit_card_decorator.rb +0 -11
  184. data/app/decorators/models/solidus_braintree/spree/payment_decorator.rb +0 -10
  185. data/app/helpers/braintree_view_helpers.rb +0 -20
  186. data/app/models/concerns/solidus_braintree/add_name_validation_concern.rb +0 -8
  187. data/app/models/concerns/solidus_braintree/inject_device_data_concern.rb +0 -18
  188. data/app/models/concerns/solidus_braintree/payment_braintree_nonce_concern.rb +0 -8
  189. data/app/models/concerns/solidus_braintree/permitted_attributes_concern.rb +0 -11
  190. data/app/models/concerns/solidus_braintree/skip_require_card_numbers_concern.rb +0 -14
  191. data/app/models/concerns/solidus_braintree/use_data_field_concern.rb +0 -23
  192. data/app/models/solidus/gateway/braintree_gateway.rb +0 -306
  193. data/app/overrides/spree/checkout/_confirm/braintree_security.html.erb.deface +0 -9
  194. data/app/views/spree/admin/payments/source_forms/_braintree.html.erb +0 -38
  195. data/app/views/spree/admin/payments/source_views/_braintree.html.erb +0 -30
  196. data/app/views/spree/checkout/payment/_braintree.html.erb +0 -55
  197. data/app/views/spree/checkout/payment/_braintree_initialization.html.erb +0 -12
  198. data/config/initializers/braintree.rb +0 -3
  199. data/db/migrate/20150910170527_add_data_to_credit_card.rb +0 -5
  200. data/db/migrate/20160426221931_add_braintree_device_data_to_order.rb +0 -5
  201. data/lib/assets/javascripts/spree/backend/braintree/solidus_braintree.js +0 -59
  202. data/lib/assets/javascripts/spree/frontend/braintree/solidus_braintree.js +0 -144
  203. data/lib/assets/javascripts/vendor/braintree.js +0 -8
  204. data/lib/assets/stylesheets/spree/frontend/solidus_braintree.scss +0 -26
@@ -0,0 +1,154 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <transaction>
11
+ <amount>10.00</amount>
12
+ <channel>Solidus</channel>
13
+ <options>
14
+ <store-in-vault-on-success type="boolean">true</store-in-vault-on-success>
15
+ <paypal>
16
+ <payee-email>paypal+europe@example.com</payee-email>
17
+ </paypal>
18
+ </options>
19
+ <merchant-account-id>stembolt_EUR</merchant-account-id>
20
+ <payment-method-nonce>fake-valid-nonce</payment-method-nonce>
21
+ <shipping>
22
+ <first-name>Bruce</first-name>
23
+ <last-name>Wayne</last-name>
24
+ <street-address>42 Spruce Lane Apt 312</street-address>
25
+ <locality>Gotham</locality>
26
+ <postal-code>90210</postal-code>
27
+ <region>CA</region>
28
+ <country-code-alpha2>US</country-code-alpha2>
29
+ </shipping>
30
+ <type>sale</type>
31
+ </transaction>
32
+ headers:
33
+ Accept-Encoding:
34
+ - gzip
35
+ Accept:
36
+ - application/xml
37
+ User-Agent:
38
+ - Braintree Ruby Gem 2.98.0
39
+ X-Apiversion:
40
+ - '5'
41
+ Content-Type:
42
+ - application/xml
43
+ Authorization:
44
+ - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ==
45
+ response:
46
+ status:
47
+ code: 201
48
+ message: Created
49
+ headers:
50
+ Date:
51
+ - Fri, 13 Sep 2019 14:27:18 GMT
52
+ Content-Type:
53
+ - application/xml; charset=utf-8
54
+ Transfer-Encoding:
55
+ - chunked
56
+ X-Frame-Options:
57
+ - SAMEORIGIN
58
+ X-Xss-Protection:
59
+ - 1; mode=block
60
+ X-Content-Type-Options:
61
+ - nosniff
62
+ X-Authentication:
63
+ - basic_auth
64
+ X-User:
65
+ - 3v249hqtptsg744y
66
+ Vary:
67
+ - Accept-Encoding
68
+ Content-Encoding:
69
+ - gzip
70
+ Etag:
71
+ - W/"b7263541ccba70a329264729c82af05d"
72
+ Cache-Control:
73
+ - max-age=0, private, must-revalidate
74
+ X-Runtime:
75
+ - '0.529816'
76
+ X-Request-Id:
77
+ - 02-1568384837.829-92.223.152.178-13019098
78
+ Content-Security-Policy:
79
+ - frame-ancestors 'self'
80
+ X-Broxyid:
81
+ - 02-1568384837.829-92.223.152.178-13019098
82
+ Strict-Transport-Security:
83
+ - max-age=31536000; includeSubDomains
84
+ body:
85
+ encoding: ASCII-8BIT
86
+ string: !binary |-
87
+ H4sIAEane10AA6xYW3ebOBB+76/w8TsBfNnYPYRuum3S7dnkbJtLk7zkCCSMEpCoJBy7v35H3AxGOOk5+2bPfBpJo7l8g/dhkyajNRGScnYydo+c8YiwkGPKVifjm+szazH+4L/zlEBMolAByn83GnkU+/N1PHPYy0/Phj9aJhVSufRRrmIu6C+CPbsSaa3aZsSXKCGeXfzUsjAXAnbbWlRyCzYl/ueb757dF2swSnnOlO86R47j2dU/rUiJCGPElIXCUAstOI9UJA14oh4LgyZEceI8sAy6EaPJyViJnIztcgcE9sSboFxgQBoUoSBIEWwhNdL3Pxlj+KtoSsb+xHGXlrO03Om1O3s/OX7vLh7AC82CYn2e4d9bv1tQ+VoqDjfQf8oHnLjufDqZzdz6BUEcUSGVxVBK9i8AygQN60KeZohtDRqSIpoY5C8kkFSZbGUxZyZ5hDYG6SrhAUr0k95Pb3/h86V6uPsaXTx93lxeX2wvP33bePYOo11ht33hBTRJINobv5g2/v+9IpUgBCIJY0GkNLltowjD+v0GIQkPUUKVybwgK0hVk2855GRSZtVy5jrHnt0W1ceG6Bbb4VuVar3CQkkWo8mbUNPXUCyHR6FhL3fs1hvB1aKcYVOKNRpZpQgSAm07SvBnq5SZjGRIKArukESphKQE0ry7wmR8V/NeM98yGyAVxkZMTLPszSHpfxR5CFW1JdkLTP8H2jJA7AS/F53+bDK6yvQuo38QZOZppkZTd6LLewf224Hrn3MVoxROVgva0ev/derZ1U9D8DoT13kteP0bBiUGj66gDxE54tHotIgwBDWgDRuMa//magdtywdjHFacmpZMDwS8v5g5e2tqTRH+7YCoCrkVUZJgWYXfWlpECC4scHjGmS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3hIansrwg/QQPV603YqulZlAGRzMspTDf6siY96prk2UOgLhVrOaXL2NpsbBD0uq2Cv71mqyF5jKgXLp73drm782yzxrimsCahRCbwoqVy1BBFrTRYa06gYqiCFlQEnSoEnBdx4wQqrUjAnNEaBwYH1aH8qavFkL4+ZHdm9h3dGJylO3Vnk2N3sbvMHm6IcusYQAcpdx0l3ZAs2B+Rhz6xTZx2qxpa3v4a0XR/c5gf/NhwcK3xg0azoj/7mT9RDC/Y0Rb85WscsMv4fvo9Cybz6PLugV9++pjj6ecOu+k0Sv/dfwAAAP//AwBpDrXEXBYAAA==
88
+ http_version:
89
+ recorded_at: Fri, 13 Sep 2019 14:27:19 GMT
90
+ - request:
91
+ method: get
92
+ uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/5vh40nwq
93
+ body:
94
+ encoding: US-ASCII
95
+ string: ''
96
+ headers:
97
+ Accept-Encoding:
98
+ - gzip
99
+ Accept:
100
+ - application/xml
101
+ User-Agent:
102
+ - Braintree Ruby Gem 2.98.0
103
+ X-Apiversion:
104
+ - '5'
105
+ Content-Type:
106
+ - application/xml
107
+ Authorization:
108
+ - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ==
109
+ response:
110
+ status:
111
+ code: 200
112
+ message: OK
113
+ headers:
114
+ Date:
115
+ - Fri, 13 Sep 2019 14:27:20 GMT
116
+ Content-Type:
117
+ - application/xml; charset=utf-8
118
+ Transfer-Encoding:
119
+ - chunked
120
+ X-Frame-Options:
121
+ - SAMEORIGIN
122
+ X-Xss-Protection:
123
+ - 1; mode=block
124
+ X-Content-Type-Options:
125
+ - nosniff
126
+ X-Authentication:
127
+ - basic_auth
128
+ X-User:
129
+ - 3v249hqtptsg744y
130
+ Vary:
131
+ - Accept-Encoding
132
+ Content-Encoding:
133
+ - gzip
134
+ Etag:
135
+ - W/"e52a19fc2edb6c5b72a8c0125098607b"
136
+ Cache-Control:
137
+ - max-age=0, private, must-revalidate
138
+ X-Runtime:
139
+ - '0.162793'
140
+ X-Request-Id:
141
+ - 01-1568384839.628-92.223.152.178-12966562
142
+ Content-Security-Policy:
143
+ - frame-ancestors 'self'
144
+ X-Broxyid:
145
+ - 01-1568384839.628-92.223.152.178-12966562
146
+ Strict-Transport-Security:
147
+ - max-age=31536000; includeSubDomains
148
+ body:
149
+ encoding: ASCII-8BIT
150
+ string: !binary |-
151
+ H4sIAEine10AA6xYW3ebOBB+76/w8TsBfNnYPYRuum3S7dnkbJtLk7zkCCSMEpCoJBy7v35H3AxGOOk5+2bPfBpJo7l8g/dhkyajNRGScnYydo+c8YiwkGPKVifjm+szazH+4L/zlEBMolAByn83GnkU+/N1PHPYy0/Phj9aJhVSufRRrmIu6C+CPbsSaa3aZsSXKCGeXfzUsjAXAnbbWlRyCzYl/ueb757dF2swSnnOlO86R47j2dU/rUiJCGPElIXCUAstOI9UJA14oh4LgyZEceI8sAy6EaPJyViJnIztcgcE9sSboFxgQBoUoSBIEWwhNdL3Pxlj+KtoSsb+xHGXlrO03Om1O3s/OX7vLh7AC82CYn2e4d9bv1tQ+VoqDjfQf8oHnLjufDqZzdz6BUEcUSGVxVBK9i8AygQN60KeZohtDRqSIpoY5C8kkFSZbGUxZyZ5hDYG6SrhAUr0k95Pb3/h86V6uPsaXTx93lxeX2wvP33bePYOo11ht33hBTRJINobv5g2/v+9IpUgBCIJY0GkNLltowjD+v0GIQkPUUKVybwgK0hVk2855GRSZtVy5jrHnt0W1ceG6Bbb4VuVar3CQkkWo8mbUNPXUCyHR6FhL3fs1hvB1aKcYVOKNRpZpQgSAm07SvBnq5SZjGRIKArukESphKQE0ry7wmR8V/NeM98yGyAVxkZMTLPszSHpfxR5CFW1JdkLTP8H2jJA7AS/F53+bDK6yvQuo38QZOZppkZTd6LLewf224Hrn3MVoxROVgva0ev/derZ1U9D8DoT13kteP0bBiUGj66gDxE54tHotIgwBDWgDRuMa//magdtywdjHFacmpZMDwS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hZKMvDf1AmI+hpyIIVyCTJoN5GBooPDzLwN31zbNcc+3hIansrwg/QQPV603YqulZlAGRzMspTDf6siY96prk2UOgLhVrOaXL2NpsbBD0uq2Cv71mqyF5jKgXLp73drm782yzxrimsCahRCbwoqVy1BBFrTRYa06gYqiCFlQEnSoEnBdx4wQqrUjAnNEaBwYH1aH8qavFkL4+ZHdm9h3dGJylO3Vnk2N3sbvMHm6IcusYQAcpdx0l3ZAs2B+Rhz6xTZx2qxpa3v4a0XR/c5gf/NhwcK3xg0azoj/7mT9RDC/Y0Rb85WscsMv4fvo9Cybz6PLugV9++pjj6ecOu+k0Sv/dfwAAAP//AwBpDrXEXBYAAA==
152
+ http_version:
153
+ recorded_at: Fri, 13 Sep 2019 14:27:20 GMT
154
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,90 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <transaction>
11
+ <amount>10.00</amount>
12
+ <channel>Solidus</channel>
13
+ <options>
14
+ <store-in-vault-on-success type="boolean">true</store-in-vault-on-success>
15
+ <paypal>
16
+ <payee-email>paypal+europe@example.com</payee-email>
17
+ </paypal>
18
+ </options>
19
+ <merchant-account-id>stembolt_EUR</merchant-account-id>
20
+ <payment-method-nonce>fake-valid-nonce</payment-method-nonce>
21
+ <shipping>
22
+ <first-name>Bruce</first-name>
23
+ <last-name>Wayne</last-name>
24
+ <street-address>42 Spruce Lane Apt 312</street-address>
25
+ <locality>Gotham</locality>
26
+ <postal-code>90210</postal-code>
27
+ <region>CA</region>
28
+ <country-code-alpha2>US</country-code-alpha2>
29
+ </shipping>
30
+ <type>sale</type>
31
+ </transaction>
32
+ headers:
33
+ Accept-Encoding:
34
+ - gzip
35
+ Accept:
36
+ - application/xml
37
+ User-Agent:
38
+ - Braintree Ruby Gem 2.98.0
39
+ X-Apiversion:
40
+ - '5'
41
+ Content-Type:
42
+ - application/xml
43
+ Authorization:
44
+ - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ==
45
+ response:
46
+ status:
47
+ code: 201
48
+ message: Created
49
+ headers:
50
+ Date:
51
+ - Fri, 13 Sep 2019 14:27:23 GMT
52
+ Content-Type:
53
+ - application/xml; charset=utf-8
54
+ Transfer-Encoding:
55
+ - chunked
56
+ X-Frame-Options:
57
+ - SAMEORIGIN
58
+ X-Xss-Protection:
59
+ - 1; mode=block
60
+ X-Content-Type-Options:
61
+ - nosniff
62
+ X-Authentication:
63
+ - basic_auth
64
+ X-User:
65
+ - 3v249hqtptsg744y
66
+ Vary:
67
+ - Accept-Encoding
68
+ Content-Encoding:
69
+ - gzip
70
+ Etag:
71
+ - W/"77e1e2d6d635e062ee34868bb7aca21a"
72
+ Cache-Control:
73
+ - max-age=0, private, must-revalidate
74
+ X-Runtime:
75
+ - '0.511733'
76
+ X-Request-Id:
77
+ - 01-1568384842.114-92.223.152.178-12966962
78
+ Content-Security-Policy:
79
+ - frame-ancestors 'self'
80
+ X-Broxyid:
81
+ - 01-1568384842.114-92.223.152.178-12966962
82
+ Strict-Transport-Security:
83
+ - max-age=31536000; includeSubDomains
84
+ body:
85
+ encoding: ASCII-8BIT
86
+ string: !binary |-
87
+ H4sIAEune10AA6xYS3PbNhC+51dodIf5kGRLGZmp28RuM40PcZzEuXhAAhRhkwADgLKVX98FXyJFUHZmevCMtfthASz28S3X756zdLKlUjHBz6feiTudUB4JwvjmfHr75RItp++CN2stMVc40oAK3kwma0aCn/GZyqLcWzvww8iUxrpQAS50IiT7RcnaqUVGq3c5DRRO6dop/zWyqJASdtshpgSCTWnw4fbz2hmKDRhnouA68NwT11079S+jyKiMEsw1wlFkhAjOozTNQpHq+9KgDVGeuAiRRTfhLD2falnQqVPtgMGefBVUSAJIiyKS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XVz1pVSHg4iMJNkRqy2UEdatqWY1g0NNg9tCOrz4t3UqQdRCOo3adUAcUQ+id/3GN60n6pFTEyWswj2t11qGzcJUgRlUPC/gR72SHrjK4uF+G3rwW58lJylWx/XK4e7rzl7I5/2F3zuwPyafK8nh5M5Fqio+DsZ0HrVIVV8LQMir0McLxYnM1X8WIVezGZLclpFEceCOL5YhnGEOujSyvLW8ozgRR5HEnlVl+z5H4q1/MdShjEvdz1WFBLG0oEBUN1hJj8hxkFFFn+yrmlxbcWjg6WlUtHZsPKoQo80KbWH81oaJILXKYa95ijdribElA6aYBzBkcayqsLO4c3biW1l6oinGI7FyxCFUmWj3LFjr4tmSURRjmQA0EQEC1k/GkJowMkHEtqKxaOfLCP6UQImo6F6BKmyuC16mhlRTTxNlL+xsY7KFjDs/WNAjM0HwfgXiMh3OqrZgTTOqdpcCNSRgoFIV0LKiYut6aFxpSONT+zt3hC1ZMOtOCLsJCqIvOEahhzGw7cV9kfqDMJ2LfvYwYfRV4Jp8/m0tAPpP0YZiqCcAUyaTNYRJGFwsOzjNzd3DwvDNceH5Kq/orJAzRQs96GrZseYhyIZFFNYabRVzXp3tSktTMG6lOxjlP6jK3LxkZBL9sq+dtLtlqSx6l+EvLxYJfv39eOXWNdU1pTUCJTeNFKOWmJolFarLUn0AlUQQQVwaQKBefFwjqBKhRLmDM648DooDqWP021GNM3h+zPzIFrGoO78mbe3D/z/f1lDnBjlNvEAD5KuZso6Ydkyf6oOvaJzXe7rWpsefdrRNv97WF+9GPD0bXWDxrtiuHsZ/9EMb5gT1vI3x+TkF8nd7PPeegv4ujb3SzyvYfo/Yceu+k1yuDNfwAAAP//AwAsXzNOXBYAAA==
88
+ http_version:
89
+ recorded_at: Fri, 13 Sep 2019 14:27:23 GMT
90
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,90 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <transaction>
11
+ <amount>10.00</amount>
12
+ <channel>Solidus</channel>
13
+ <options>
14
+ <store-in-vault-on-success type="boolean">true</store-in-vault-on-success>
15
+ <paypal>
16
+ <payee-email>paypal+europe@example.com</payee-email>
17
+ </paypal>
18
+ </options>
19
+ <merchant-account-id>stembolt_EUR</merchant-account-id>
20
+ <payment-method-nonce>fake-valid-nonce</payment-method-nonce>
21
+ <shipping>
22
+ <first-name>Bruce</first-name>
23
+ <last-name>Wayne</last-name>
24
+ <street-address>42 Spruce Lane Apt 312</street-address>
25
+ <locality>Gotham</locality>
26
+ <postal-code>90210</postal-code>
27
+ <region>CA</region>
28
+ <country-code-alpha2>US</country-code-alpha2>
29
+ </shipping>
30
+ <type>sale</type>
31
+ </transaction>
32
+ headers:
33
+ Accept-Encoding:
34
+ - gzip
35
+ Accept:
36
+ - application/xml
37
+ User-Agent:
38
+ - Braintree Ruby Gem 2.98.0
39
+ X-Apiversion:
40
+ - '5'
41
+ Content-Type:
42
+ - application/xml
43
+ Authorization:
44
+ - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ==
45
+ response:
46
+ status:
47
+ code: 201
48
+ message: Created
49
+ headers:
50
+ Date:
51
+ - Fri, 13 Sep 2019 14:27:24 GMT
52
+ Content-Type:
53
+ - application/xml; charset=utf-8
54
+ Transfer-Encoding:
55
+ - chunked
56
+ X-Frame-Options:
57
+ - SAMEORIGIN
58
+ X-Xss-Protection:
59
+ - 1; mode=block
60
+ X-Content-Type-Options:
61
+ - nosniff
62
+ X-Authentication:
63
+ - basic_auth
64
+ X-User:
65
+ - 3v249hqtptsg744y
66
+ Vary:
67
+ - Accept-Encoding
68
+ Content-Encoding:
69
+ - gzip
70
+ Etag:
71
+ - W/"fdbf84ba963bfcc3556d33a5f62d0b7f"
72
+ Cache-Control:
73
+ - max-age=0, private, must-revalidate
74
+ X-Runtime:
75
+ - '0.456705'
76
+ X-Request-Id:
77
+ - 01-1568384843.516-92.223.152.178-12967200
78
+ Content-Security-Policy:
79
+ - frame-ancestors 'self'
80
+ X-Broxyid:
81
+ - 01-1568384843.516-92.223.152.178-12967200
82
+ Strict-Transport-Security:
83
+ - max-age=31536000; includeSubDomains
84
+ body:
85
+ encoding: ASCII-8BIT
86
+ string: !binary |-
87
+ H4sIAEyne10AA6xYbXPTOBD+zq/I5LtqO3GuCZOa6x20wBxwQ1sofOnIlhyL2pKR5LTh19/Kb7FjOS0z9y3ZfbSSVvvyrNevHrN0sqVSMcHPpt6JO51QHgnC+OZsenN9gZbTV8GLtZaYKxxpQAUvJpM1I8H83uehr3+uHfhjZEpjXagAFzoRkv2iZO3UIqPVu5wGCqd07ZQ/jSwqpITddogpgWBTGry5+bx2hmIDxpkouA4898R11079zygyKqMEc41wFBkhgvMoTbNQpPquNGhDlCcuQmTRTThLz6ZaFnTqVDtgsCefBRWSANKiiCTFmhKE9cTc/2xK4K9mGZ0GM9dbIXeFvPm157+cnb6c+d/BC+2Ccn2Rk99bv19Q+1ppATcwf6oHXC6XC2/hLf3mBUEcM6k04jijhxcAZYrHdZHIcsx3Fg3NMEst8gcaKqZttvJEcJs8xo8W6SYVIU7Nk36bf/lFLlf6++37+NPrjf/x+o334XoD0bLHGFc4XV+sQ5amEO2tX2wb//9eUVpSCpFEiKRK2dz2qCkn5v1GIamIcMq0zbykG0hVm28F5GRaZdXK99zTtdMVNceG6Ja78VtVarMC4TRP8OxZqPlTKF7Ao7BokDtO543ganHBiS3FWo2qUwRLiXc9JfizU8psRnIsNQN3KKp1SjMKad5fYTO+r3lPme+YDbGOEismYXn+7JAM/pJFBFW1IzkIzOAr3nFA7AW/F52BP5tc5WaXyT8YMvM815O5NzPlvQf77cANLoVOcAYnawTd6A3+Pl879U9L8Lozz30qeIMbDiWGTK6gD1E1EfHkvIwwDDWgCxuN6+Dmag/tykdjH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Afv2fczgo8gz4fTRXBr6gbQfw0xFEK5AJm0GiyiyUHh4lpG7m5vnheHa40NS1V8x+QEN1Ky3YeumhxgHIllUU5hp9FVNujM1ae2MgfpUrOOUPmPrsrFR0NO2Sv72lK2W5HGqH4S8P9jl9nbt2DXWNaU1BSUyhRetlJOWKBqlxVp7Ap1AFURQEUyqUHBeLKwTqEKxhDmjMw6MDqpj+dNUizF9c8j+zBy4pjG4K2/u+bPTmb+/zAFujHKbGMBHKXcTJf2QLNkfVcc+sc3cbqsaW979GtF2f3uYH/3YcHSt9YNGu2I4+9k/UYwv2NMW8vZ9EvKPybf55zycLeIPM+WG2TuXvH3TYze9Rhm8+A8AAP//AwA3X0TnXBYAAA==
88
+ http_version:
89
+ recorded_at: Fri, 13 Sep 2019 14:27:24 GMT
90
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,86 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <transaction>
11
+ <amount>10.00</amount>
12
+ <channel>Solidus</channel>
13
+ <options>
14
+ <store-in-vault-on-success type="boolean">true</store-in-vault-on-success>
15
+ </options>
16
+ <payment-method-nonce>fake-valid-nonce</payment-method-nonce>
17
+ <shipping>
18
+ <first-name>Bruce</first-name>
19
+ <last-name>Wayne</last-name>
20
+ <street-address>42 Spruce Lane Apt 312</street-address>
21
+ <locality>Gotham</locality>
22
+ <postal-code>90210</postal-code>
23
+ <region>CA</region>
24
+ <country-code-alpha2>US</country-code-alpha2>
25
+ </shipping>
26
+ <type>sale</type>
27
+ </transaction>
28
+ headers:
29
+ Accept-Encoding:
30
+ - gzip
31
+ Accept:
32
+ - application/xml
33
+ User-Agent:
34
+ - Braintree Ruby Gem 2.98.0
35
+ X-Apiversion:
36
+ - '5'
37
+ Content-Type:
38
+ - application/xml
39
+ Authorization:
40
+ - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ==
41
+ response:
42
+ status:
43
+ code: 201
44
+ message: Created
45
+ headers:
46
+ Date:
47
+ - Fri, 13 Sep 2019 14:27:17 GMT
48
+ Content-Type:
49
+ - application/xml; charset=utf-8
50
+ Transfer-Encoding:
51
+ - chunked
52
+ X-Frame-Options:
53
+ - SAMEORIGIN
54
+ X-Xss-Protection:
55
+ - 1; mode=block
56
+ X-Content-Type-Options:
57
+ - nosniff
58
+ X-Authentication:
59
+ - basic_auth
60
+ X-User:
61
+ - 3v249hqtptsg744y
62
+ Vary:
63
+ - Accept-Encoding
64
+ Content-Encoding:
65
+ - gzip
66
+ Etag:
67
+ - W/"d5257db6ada80984d58fcdd80b08a656"
68
+ Cache-Control:
69
+ - max-age=0, private, must-revalidate
70
+ X-Runtime:
71
+ - '0.578117'
72
+ X-Request-Id:
73
+ - 01-1568384836.096-92.223.152.178-12965922
74
+ Content-Security-Policy:
75
+ - frame-ancestors 'self'
76
+ X-Broxyid:
77
+ - 01-1568384836.096-92.223.152.178-12965922
78
+ Strict-Transport-Security:
79
+ - max-age=31536000; includeSubDomains
80
+ body:
81
+ encoding: ASCII-8BIT
82
+ string: !binary |-
83
+ H4sIAEWne10AA6xYyXLbOBC95ytUutNcJNtSimbGMyl7khr7EMeO7UsKJEARNglwAFBLvn4a3ESKoOxUzU3qfmgAjV5e0/+0zdLJmghJObuYuifOdEJYxDFlq4vp/fcrazH9FHzwlUBMokgBKvgwmfgUB+4a42wrN74Nf7RMKqQKGaBCJVzQXwT7di3SWrXLSSBRSny7/KllUSEE7LazqOQWbEqC+7vPvj0UazDKeMFU4DonjuPb9T+tyIiIEsSUhaJICy04j1QkC3mqfNukLU9bhJZBN2E0vZgqUZCpXVlHYEu8C8oFBqRBEQmCFMEWUhN994sphr+KZmQaeI67tJyl5c6+u/OP3vlH9+wZPNAuKNcXOX7/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le95ietF9qeWxpLWIR6e46VDbu4riIyiFhf4K97JB1RtdXp+GPhwJfuym+TtbPV8uXJ3cp8OdvM3L9dEA+dZ7X04OOXEN0FIz+W5A6VWEVPC2FYi8CFJ+ens+X8ekydmM8W+CzKI5cEMTz00UYQ6yPLq0srwnLuCXx60gqt/qaJfdTuZ7trIRC3ItdjwW1tKFEEDBUR4jOf5hRQJHl75x7Wnxr4ehQWbl0ZC6sHCrBA21q/dGMhTq5wGWycY8+aoe7SQ6lkwQop3Ckoby6sH1441ZSe6kqwikyc8EilJGg+ShX7OjbklkSYSsHcsCxBUTL0v40hNEBEo4llBELRz7YR3ciC5qOgehiKsvgNepIZYU38TZS/sbGOyhYw7P1jQIz1B8G4F4jIdzqq2YE0zojaXDHU4oLCSFdCyomLta6hcaEjDU/vTffWNWTDrTgi7AQsiLzmCgYcxsO3FeZH6gzCZi372MGH0TeCSdbfWnoB8J8DD0VQbgCmTQZLKLIQOHhWUburm+eF5prjw9JVX9F+AUaqF5vwtZNz6IMiGRRTWG60Vc16aeuSb49BupTsY5T+oyty8ZGQW/bKvnbW7ZakseI2nDxerDL46NvmzXGNaU1CSUyhRetlJOWKGqlwVp7ApVAFbSgIuhUIeC8mBsnUGnFAuaMzjgwOqiO5U9TLcb0zSH7M3Pg6MbgLN2ZO/fO3bP9ZQ5wY5RbxwA6SrmbKOmHZMn+iDz2ic1zuq1qbHn3a0Tb/c1hfvRjw9G1xg8a7Yrh7Gf+RDG+YE9b8N9fk5DdJk+zb3noncY3j8+vz9fuPJpFPXbTa5TBh/8AAAD//wMAiSznw1gWAAA=
84
+ http_version:
85
+ recorded_at: Fri, 13 Sep 2019 14:27:17 GMT
86
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,73 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <transaction>
11
+ <amount type="integer">40</amount>
12
+ <payment-method-nonce>fake-valid-nonce</payment-method-nonce>
13
+ <type>sale</type>
14
+ </transaction>
15
+ headers:
16
+ Accept-Encoding:
17
+ - gzip
18
+ Accept:
19
+ - application/xml
20
+ User-Agent:
21
+ - Braintree Ruby Gem 2.98.0
22
+ X-Apiversion:
23
+ - '5'
24
+ Content-Type:
25
+ - application/xml
26
+ Authorization:
27
+ - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ==
28
+ response:
29
+ status:
30
+ code: 201
31
+ message: Created
32
+ headers:
33
+ Date:
34
+ - Fri, 13 Sep 2019 14:27:33 GMT
35
+ Content-Type:
36
+ - application/xml; charset=utf-8
37
+ Transfer-Encoding:
38
+ - chunked
39
+ X-Frame-Options:
40
+ - SAMEORIGIN
41
+ X-Xss-Protection:
42
+ - 1; mode=block
43
+ X-Content-Type-Options:
44
+ - nosniff
45
+ X-Authentication:
46
+ - basic_auth
47
+ X-User:
48
+ - 3v249hqtptsg744y
49
+ Vary:
50
+ - Accept-Encoding
51
+ Content-Encoding:
52
+ - gzip
53
+ Etag:
54
+ - W/"9f163d0d605e2cf0f374d80596165c7f"
55
+ Cache-Control:
56
+ - max-age=0, private, must-revalidate
57
+ X-Runtime:
58
+ - '0.517267'
59
+ X-Request-Id:
60
+ - 02-1568384852.825-92.223.152.178-13021928
61
+ Content-Security-Policy:
62
+ - frame-ancestors 'self'
63
+ X-Broxyid:
64
+ - 02-1568384852.825-92.223.152.178-13021928
65
+ Strict-Transport-Security:
66
+ - max-age=31536000; includeSubDomains
67
+ body:
68
+ encoding: ASCII-8BIT
69
+ string: !binary |-
70
+ H4sIAFWne10AA+RYS4/bNhC+768wfOfKryK7gVZp0CJoCzSHJFske1lQ4thiliJVkvLa/fUdipIsWZR3eykK9GbNfBySw3l84/jdoRCzPWjDlbybL68X8xnITDEud3fz+y8fyM38XX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cZ0yFpRBbmXw6YQbSYWlVW+K0VGbQ33WsbN2lWJXVzPt0gpPMg3ZCpZh0wTbZcm4XmgF1JfmfFTSZiBbw7TjW8lFSuhQHWShi2NNE6nX6hmIOU68ZcUjOMVL1cUAhuvZbIwANNW/q8hWpOiqK8pX0vcN3Fi7OVt5HE+OR95BBmtwlw4/tdOTSAYcF004G7qg94mMUljpIaMnxSGO5v3B0fuNO0njJF01Bw0SqSk2meTlJtHr6rsjVLJKU2NgVI8hliPNnsBwOkHgsbYNYPPLZPq5zEGwSAZbIuKmjMagDb0W1lW6iYE3NOVhixmcbGkUG5uZjvNdECHd63zxwaJUwtopvvnfdbgsw1afctuqZ+NccadENaaWNJ8EMLI56pi1iA1X4bXoMOrz9EDP6S+CVcDg4B2Dx1uFjuGkCIxV5X8hglWUBgowvMnF3d/OysnBpuPDNkLLv2O3c+hC26VCES+R8lZ9eXFf25ejRlaM4mgINWVPPKUNy1SdOk6CXbdVU6yVbHR+TYJ+Vfjrb5evXOAprgmtqawaro8AX9cpZx+mcMmCtO4HNsQASLAYuSwCdt1XByc2QrcaR4MJU0w14U/nTFoopfXvI4ayZLFxPWNwu18vN6s16fbrMGW6KHbsYoBfZcRslw5CsqRqYS38yrRb9LjW1vD/Fd109HOYXh/SLa4N/BExyiKnRfnpBp0nYL7/lqfyYf1t/KtPVD9uH7590WtwfH76+j6MT7GrQI5OrvwEAAP//AwDB+fqkWhUAAA==
71
+ http_version:
72
+ recorded_at: Fri, 13 Sep 2019 14:27:34 GMT
73
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/fake_transaction_id
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip
12
+ Accept:
13
+ - application/xml
14
+ User-Agent:
15
+ - Braintree Ruby Gem 2.98.0
16
+ X-Apiversion:
17
+ - '5'
18
+ Content-Type:
19
+ - application/xml
20
+ Authorization:
21
+ - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ==
22
+ response:
23
+ status:
24
+ code: 404
25
+ message: Not Found
26
+ headers:
27
+ Date:
28
+ - Fri, 13 Sep 2019 14:27:48 GMT
29
+ Content-Type:
30
+ - application/xml; charset=utf-8
31
+ Transfer-Encoding:
32
+ - chunked
33
+ X-Frame-Options:
34
+ - SAMEORIGIN
35
+ X-Xss-Protection:
36
+ - 1; mode=block
37
+ X-Content-Type-Options:
38
+ - nosniff
39
+ X-Authentication:
40
+ - basic_auth
41
+ Vary:
42
+ - Accept-Encoding
43
+ Content-Encoding:
44
+ - gzip
45
+ Cache-Control:
46
+ - no-cache
47
+ X-Runtime:
48
+ - '0.030577'
49
+ X-Request-Id:
50
+ - 01-1568384868.074-92.223.152.178-12971830
51
+ Content-Security-Policy:
52
+ - frame-ancestors 'self'
53
+ X-Broxyid:
54
+ - 01-1568384868.074-92.223.152.178-12971830
55
+ Strict-Transport-Security:
56
+ - max-age=31536000; includeSubDomains
57
+ body:
58
+ encoding: ASCII-8BIT
59
+ string: !binary |-
60
+ H4sIAGSne10AAwAAAP//AwAAAAAAAAAAAA==
61
+ http_version:
62
+ recorded_at: Fri, 13 Sep 2019 14:27:48 GMT
63
+ recorded_with: VCR 5.0.0