spree_braintree_vzero 3.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. checksums.yaml +7 -0
  2. data/.codeclimate.yml +15 -0
  3. data/.gitignore +19 -0
  4. data/.rspec +1 -0
  5. data/.travis.yml +63 -0
  6. data/Appraisals +45 -0
  7. data/CONTRIBUTING.md +28 -0
  8. data/Gemfile +14 -0
  9. data/LICENSE +26 -0
  10. data/README.md +83 -0
  11. data/Rakefile +21 -0
  12. data/app/assets/images/credit_cards/icons/jcb.png +0 -0
  13. data/app/assets/javascripts/spree/backend/payments.js +19 -0
  14. data/app/assets/javascripts/spree/backend/spree_braintree_vzero.js +81 -0
  15. data/app/assets/javascripts/spree/frontend/spree_braintree_vzero.js +68 -0
  16. data/app/assets/stylesheets/spree/backend/spree_braintree_vzero.css +5 -0
  17. data/app/controllers/spree/admin/payments_controller_decorator.rb +43 -0
  18. data/app/controllers/spree/api/v1/braintree_client_token_controller.rb +31 -0
  19. data/app/controllers/spree/checkout_controller_decorator.rb +38 -0
  20. data/app/controllers/spree/orders_controller_decorator.rb +62 -0
  21. data/app/controllers/spree/user_sessions_controller_decorator.rb +15 -0
  22. data/app/helpers/spree/admin/decorated_navigation_helper.rb +10 -0
  23. data/app/helpers/spree/admin/payment_methods_helper.rb +101 -0
  24. data/app/helpers/spree/braintree_helper.rb +27 -0
  25. data/app/models/braintree/successful_result_decorator.rb +21 -0
  26. data/app/models/spree/address_decorator.rb +18 -0
  27. data/app/models/spree/braintree_checkout.rb +105 -0
  28. data/app/models/spree/gateway/braintree_vzero_base.rb +168 -0
  29. data/app/models/spree/gateway/braintree_vzero_base/address.rb +33 -0
  30. data/app/models/spree/gateway/braintree_vzero_base/braintree_user.rb +25 -0
  31. data/app/models/spree/gateway/braintree_vzero_base/purchase_data.rb +48 -0
  32. data/app/models/spree/gateway/braintree_vzero_base/transaction.rb +39 -0
  33. data/app/models/spree/gateway/braintree_vzero_base/utils.rb +108 -0
  34. data/app/models/spree/gateway/braintree_vzero_drop_in_ui.rb +24 -0
  35. data/app/models/spree/gateway/braintree_vzero_hosted_fields.rb +28 -0
  36. data/app/models/spree/gateway/braintree_vzero_paypal_express.rb +36 -0
  37. data/app/models/spree/order_decorator.rb +153 -0
  38. data/app/models/spree/payment_decorator.rb +10 -0
  39. data/app/models/spree/payment_processing_decorator.rb +61 -0
  40. data/app/models/spree/preferences/preferable_decorator.rb +54 -0
  41. data/app/overrides/spree/admin/orders/customer_details/_form.rb +8 -0
  42. data/app/overrides/spree/admin/payment_methods/_form.rb +10 -0
  43. data/app/overrides/spree/admin/shared/_order_summary.rb +23 -0
  44. data/app/overrides/spree/admin/shared/_refunds.rb +13 -0
  45. data/app/overrides/spree/checkout/_new_user.rb +6 -0
  46. data/app/overrides/spree/checkout/_payment.rb +20 -0
  47. data/app/overrides/spree/checkout/registration.rb +6 -0
  48. data/app/overrides/spree/orders/edit.rb +6 -0
  49. data/app/overrides/spree/shared/_order_details.rb +13 -0
  50. data/app/overrides/spree/shared/_payment.rb +28 -0
  51. data/app/views/spree/admin/payment_methods/_braintree_vzero_form.html.erb +83 -0
  52. data/app/views/spree/admin/payments/source_forms/_braintree_vzero_dropin_ui.html.erb +1 -0
  53. data/app/views/spree/admin/payments/source_forms/_braintree_vzero_hosted_fields.html.erb +1 -0
  54. data/app/views/spree/admin/payments/source_forms/_braintree_vzero_paypal_express.html.erb +1 -0
  55. data/app/views/spree/admin/payments/source_forms/braintree_vzero/_payments.html.erb +87 -0
  56. data/app/views/spree/admin/payments/source_views/_braintree_vzero_dropin_ui.html.erb +1 -0
  57. data/app/views/spree/admin/payments/source_views/_braintree_vzero_hosted_fields.html.erb +1 -0
  58. data/app/views/spree/admin/payments/source_views/_braintree_vzero_paypal_express.html.erb +1 -0
  59. data/app/views/spree/admin/payments/source_views/braintree_vzero/_payment.html.erb +17 -0
  60. data/app/views/spree/braintree_vzero/_paypal_checkout.html.erb +87 -0
  61. data/app/views/spree/checkout/payment/_braintree_vzero_dropin_ui.html.erb +4 -0
  62. data/app/views/spree/checkout/payment/_braintree_vzero_hosted_fields.html.erb +4 -0
  63. data/app/views/spree/checkout/payment/_braintree_vzero_paypal_express.html.erb +4 -0
  64. data/app/views/spree/checkout/payment/braintree_vzero/_buttons.html.erb +11 -0
  65. data/app/views/spree/checkout/payment/braintree_vzero/_dropin_on_error_callback.js.erb +3 -0
  66. data/app/views/spree/checkout/payment/braintree_vzero/_dropin_on_ready_callback.js.erb +1 -0
  67. data/app/views/spree/checkout/payment/braintree_vzero/_hosted_fields_on_field_event_callback.js.erb +12 -0
  68. data/app/views/spree/checkout/payment/braintree_vzero/_hosted_fields_styles.js.erb +29 -0
  69. data/app/views/spree/checkout/payment/braintree_vzero/_payment.html.erb +84 -0
  70. data/app/views/spree/checkout/payment/braintree_vzero/_three_d_secure.html.erb +218 -0
  71. data/app/views/spree/shared/braintree_vzero/_dropin.js.erb +70 -0
  72. data/app/views/spree/shared/braintree_vzero/_hosted.js.erb +66 -0
  73. data/app/views/spree/shared/braintree_vzero/_paypal.js.erb +39 -0
  74. data/bin/rails +7 -0
  75. data/config/initializers/extend_spree_permitted_checkout_attributes.rb +5 -0
  76. data/config/initializers/prepend_helpers.rb +1 -0
  77. data/config/locales/en.yml +79 -0
  78. data/config/routes.rb +7 -0
  79. data/db/migrate/20150904143013_create_spree_braintree_checkouts.rb +9 -0
  80. data/db/migrate/20151002094655_add_braintree_id_to_spree_addresses.rb +5 -0
  81. data/db/migrate/20151018123907_add_braintree_token_and_nonce_to_spree_payments.rb +6 -0
  82. data/db/migrate/20151027135109_add_paypal_email_to_spree_braintree_checkout.rb +5 -0
  83. data/db/migrate/20151028095515_add_advanced_fraud_data_to_spree_braintree_checkout.rb +5 -0
  84. data/db/migrate/20151202095956_add_risk_id_and_risk_decision_to_spree_braintree_checkouts.rb +6 -0
  85. data/db/migrate/20151211100203_add_braintree_last_digits_and_braintree_card_type_to_spree_braintree_checkouts.rb +6 -0
  86. data/db/migrate/20160112153422_add_admin_payment_to_spree_braintree_checkout.rb +5 -0
  87. data/gemfiles/spree_3_5.gemfile +12 -0
  88. data/gemfiles/spree_3_5_spree_auth_devise.gemfile +13 -0
  89. data/gemfiles/spree_3_7.gemfile +12 -0
  90. data/gemfiles/spree_3_7_spree_auth_devise.gemfile +13 -0
  91. data/gemfiles/spree_4_0.gemfile +11 -0
  92. data/gemfiles/spree_4_0_spree_auth_devise.gemfile +12 -0
  93. data/gemfiles/spree_master.gemfile +11 -0
  94. data/gemfiles/spree_master_spree_auth_devise.gemfile +12 -0
  95. data/lib/generators/spree_braintree_vzero/install/install_generator.rb +34 -0
  96. data/lib/spree_braintree_vzero.rb +6 -0
  97. data/lib/spree_braintree_vzero/engine.rb +28 -0
  98. data/lib/spree_braintree_vzero/factories.rb +10 -0
  99. data/lib/spree_braintree_vzero/railtie.rb +8 -0
  100. data/lib/spree_braintree_vzero/version.rb +17 -0
  101. data/lib/tasks/spree_braintree_vzero.rake +6 -0
  102. data/spec/controllers/spree/api/v1/braintree_client_token_controller_spec.rb +49 -0
  103. data/spec/controllers/spree/checkout_controller_spec.rb +85 -0
  104. data/spec/controllers/spree/orders_controller_spec.rb +97 -0
  105. data/spec/factories/braintree_checkout_factory.rb +7 -0
  106. data/spec/factories/braintree_gateway_factory.rb +35 -0
  107. data/spec/factories/payment_factory_decorator.rb +28 -0
  108. data/spec/features/spree/admin/log_entries_spec.rb +63 -0
  109. data/spec/models/gateway/braintree_vzero_base/address_spec.rb +28 -0
  110. data/spec/models/gateway/braintree_vzero_base/purchase_data_spec.rb +57 -0
  111. data/spec/models/gateway/braintree_vzero_base_spec.rb +346 -0
  112. data/spec/models/gateway/braintree_vzero_dropin_ui_spec.rb +35 -0
  113. data/spec/models/gateway/braintree_vzero_hosted_fields_spec.rb +35 -0
  114. data/spec/models/spree/order_spec.rb +186 -0
  115. data/spec/spec_helper.rb +100 -0
  116. data/spec/support/vcr.rb +10 -0
  117. data/spec/vcr/Log_entries/with_a_failed_log_entry/shows_a_failed_attempt.yml +91 -0
  118. data/spec/vcr/Log_entries/with_a_successful_log_entry/shows_a_successful_attempt.yml +113 -0
  119. data/spec/vcr/Spree_Api_V1_BraintreeClientTokenController/POST_create/guest_checkout/returns_proper_json_data_when_gateway_not_specified.yml +90 -0
  120. data/spec/vcr/Spree_Api_V1_BraintreeClientTokenController/POST_create/guest_checkout/returns_proper_json_data_when_gateway_specified.yml +90 -0
  121. data/spec/vcr/Spree_Api_V1_BraintreeClientTokenController/POST_create/user_checkout/returns_proper_json_data_when_gateway_not_specified.yml +191 -0
  122. data/spec/vcr/Spree_Api_V1_BraintreeClientTokenController/POST_create/user_checkout/returns_proper_json_data_when_gateway_specified.yml +191 -0
  123. data/spec/vcr/Spree_CheckoutController/_update/braintree_payment/advanced_fraud_data_in_source_should_be_updated.yml +71 -0
  124. data/spec/vcr/Spree_CheckoutController/_update/braintree_payment/when_token_credit_card_data_in_source_should_be_updated_from_Braintree_Vault.yml +139 -0
  125. data/spec/vcr/Spree_CheckoutController/_update/braintree_paypal_express_payment/amount_in_payment_should_be_updated.yml +280 -0
  126. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_capture/captures_authorized_amount/updates_Payment_state.yml +206 -0
  127. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_credit/with_refundable_state/should_be_a_success.yml +211 -0
  128. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_credit/with_unrefundable_state/should_not_be_a_success.yml +177 -0
  129. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/data_from_admin_panel/should_include_only_essential_data.yml +78 -0
  130. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/does_not_store_Transaction_in_Vault_by_default.yml +111 -0
  131. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/returns_false_with_invalid_nonce.yml +88 -0
  132. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/returns_false_with_invalid_token.yml +88 -0
  133. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/returns_success_with_valid_token.yml +113 -0
  134. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/returns_suceess_with_valid_nonce.yml +111 -0
  135. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/using_Vault/saves_Braintree_Address_id_to_Spree_Address_when_address_is_being_saved.yml +130 -0
  136. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/using_Vault/saves_unique_Braintree_Addresses_ids.yml +143 -0
  137. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/using_Vault/sends_empty_address_id_when_address_is_already_in_vault.yml +553 -0
  138. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/using_Vault/stores_Transaction.yml +181 -0
  139. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/with_3DSecure_option_turned_on/performs_3DSecure_check.yml +112 -0
  140. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/with_3DSecure_option_turned_on/returns_error.yml +112 -0
  141. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/with_advanced_fraud_tool_enabled/returns_fraud_data.yml +111 -0
  142. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/with_advanced_fraud_tool_enabled/returns_success.yml +111 -0
  143. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_settle/settles_authorized_amount/does_not_update_Order_payment_state.yml +204 -0
  144. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_settle/settles_authorized_amount/prepares_Checkout_for_status_updating.yml +204 -0
  145. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_settle/settles_authorized_amount/submits_Transaction_for_settlement.yml +377 -0
  146. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_settle/settles_authorized_amount/updates_Payment_state.yml +203 -0
  147. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_update_states/does_not_update_completed_Checkout_on_subsequent_runs.yml +202 -0
  148. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_update_states/updates_Order_payment_state_when_Checkout_is_updated.yml +202 -0
  149. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_update_states/updates_Payment_state_when_Checkout_is_updated.yml +202 -0
  150. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_update_states/updates_payment_State.yml +202 -0
  151. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_void/with_unvoidable_state/should_not_change_payment_source_state.yml +178 -0
  152. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_void/with_voidable_state/should_change_payment_source_state_to_voided.yml +199 -0
  153. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/generates_token_for_User_registered_in_Braintree.yml +356 -0
  154. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/generates_token_for_new_User.yml +189 -0
  155. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/generates_token_without_User.yml +89 -0
  156. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/with_invalid_credentials/raises_Braintree_error.yml +62 -0
  157. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase_Address/_create/creates_Braintree_Address.yml +84 -0
  158. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase_Address/_create/deletes_Braintree_Address.yml +141 -0
  159. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase_Address/_create/finds_Braintree_Address.yml +148 -0
  160. data/spec/vcr/Spree_Gateway_BraintreeVzeroBase_Address/_create/updates_Braintree_Address.yml +154 -0
  161. data/spec/vcr/Spree_Order/complete_with_braintree_vzero_standard_payment/with_auto_capture/should_complete_payment.yml +116 -0
  162. data/spec/vcr/Spree_Order/complete_with_braintree_vzero_standard_payment/with_auto_capture/should_update_payment_s_response_code.yml +111 -0
  163. data/spec/vcr/Spree_Order/complete_with_braintree_vzero_standard_payment/with_auto_capture/should_update_payment_s_source_state_and_transaction_id.yml +111 -0
  164. data/spec/vcr/Spree_Order/complete_with_braintree_vzero_standard_payment/without_auto_capture/should_pend_payment.yml +111 -0
  165. data/spec/vcr/Spree_Order/complete_with_braintree_vzero_standard_payment/without_auto_capture/should_update_payment_s_response_code.yml +111 -0
  166. data/spec/vcr/Spree_Order/complete_with_braintree_vzero_standard_payment/without_auto_capture/should_update_payment_s_source_state_and_transaction_id.yml +110 -0
  167. data/spree_braintree_vzero.gemspec +52 -0
  168. data/vendor/assets/javascripts/maskedinput/jquery.maskedinput.min.js +7 -0
  169. metadata +643 -0
@@ -0,0 +1,111 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://yd57hn7c4r5bhp8g:1cc8b0097ef43165847630438f864834@api.sandbox.braintreegateway.com/merchants/yccdpmn3cvtjbgnr/transactions
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <transaction>
11
+ <customer>
12
+ </customer>
13
+ <payment-method-nonce>fake-valid-nonce</payment-method-nonce>
14
+ <amount>20.00</amount>
15
+ <order-id>R640839762</order-id>
16
+ <descriptor>
17
+ <name></name>
18
+ </descriptor>
19
+ <options>
20
+ <submit-for-settlement type="boolean">true</submit-for-settlement>
21
+ <add-billing-address-to-payment-method type="boolean">false</add-billing-address-to-payment-method>
22
+ <three-d-secure>
23
+ <required type="boolean">false</required>
24
+ </three-d-secure>
25
+ <store-in-vault type="boolean">false</store-in-vault>
26
+ </options>
27
+ <type>sale</type>
28
+ </transaction>
29
+ headers:
30
+ Accept-Encoding:
31
+ - gzip
32
+ Accept:
33
+ - application/xml
34
+ User-Agent:
35
+ - Braintree Ruby Gem 2.49.0
36
+ X-Apiversion:
37
+ - '4'
38
+ Content-Type:
39
+ - application/xml
40
+ response:
41
+ status:
42
+ code: 201
43
+ message: Created
44
+ headers:
45
+ Date:
46
+ - Tue, 20 Oct 2015 10:58:51 GMT
47
+ Content-Type:
48
+ - application/xml; charset=utf-8
49
+ Transfer-Encoding:
50
+ - chunked
51
+ Connection:
52
+ - close
53
+ X-Authentication:
54
+ - basic_auth
55
+ X-User:
56
+ - 97syg9czj6hrdzyn
57
+ Vary:
58
+ - Accept-Encoding
59
+ Content-Encoding:
60
+ - gzip
61
+ X-Ua-Compatible:
62
+ - IE=Edge,chrome=1
63
+ Etag:
64
+ - '"6fd8d6bd40c7af11541897f0dd67931b"'
65
+ Cache-Control:
66
+ - max-age=0, private, must-revalidate
67
+ X-Request-Id:
68
+ - 8578ad0f3b20bdf183c28eb7c2730c36
69
+ X-Runtime:
70
+ - '0.904455'
71
+ X-Frame-Options:
72
+ - SAMEORIGIN
73
+ Strict-Transport-Security:
74
+ - max-age=31536000; includeSubDomains
75
+ body:
76
+ encoding: ASCII-8BIT
77
+ string: !binary |-
78
+ H4sIAGseJlYAA+RYyXLbOBC95ytcusMk5SWKi6YrNVvNklTGseeQiwsiWyJG
79
+ JIABQFnK10+DBDcTtD2HWarmJnY/NNALuh8U3xzK4mQPSjPBrxfRabg4AZ6K
80
+ jPHt9eL+7nuyWtwkb2KjKNc0NYhK3pycxCxLLqVWqYwD/Gkl2lBT6URX65IZ
81
+ A9nDRqgHDcYUUAI3ceAAFmuOEhJNC4iD+qeVpZVSuPORMC0IHgCS7+5v42Aq
82
+ tmBaioqbZBmehmEcuC+rKEGlOeWG0DS1QoKn05KqnRZFZU+vtfwqRBz4gNaA
83
+ UBko+3F7eR6uzt69vVzGQSesD6qAon+EmhN7+OtFhp+GlbDA80QXJArJMryL
84
+ wquL1dVF9AVd6BbU6yuZ/bX1/QIXKG0EHt9+1Jk44ay4XhhVwSJwwg1T2hBO
85
+ S/AoCzqvS0UpKT96NFBSVnjkj7DWzPhsyVxwn3xDD0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/f7PLr3ne/ZsB
102
+ 6CSuKJomX1A/8avWOlVMzhLDgb5ryjXrJRKJiMgIci9iY+lt3yMkHksZLxaP
103
+ /GQfO+kIDjUPq82Yrq+nVweNFdF25pkGO/cuw5Y4PdvYKDJG+yBHv2ZubKdv
104
+ hh2+sDlMrWLO93Y6bwDm5qrdVjySJpsTLYZhXSndkPYMDD5Nddt0Ryp/bgaM
105
+ 37/9GDP5D+KVcDjYAOCwUf5j2NcPViryVJ/BKk09hB4zMuO79VxWBnyl4aYk
106
+ YRx5Z9W8oCwzaDrqg+2ocTAHGjO3gaNjgjckb7Ogl23VdO8lWx0nVEzvbJZp
107
+ 9zBLzqJPYfjtDx8//fzLXfvvVH07Umb/5GrJpi1tJ6nDOrIUmxx5BsFra+sZ
108
+ MCQbMc7EqCklb/4EAAD//wMAFKqA9UgTAAA=
109
+ http_version:
110
+ recorded_at: Tue, 20 Oct 2015 10:58:52 GMT
111
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,130 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://yd57hn7c4r5bhp8g:1cc8b0097ef43165847630438f864834@api.sandbox.braintreegateway.com/merchants/yccdpmn3cvtjbgnr/transactions
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <transaction>
11
+ <customer>
12
+ </customer>
13
+ <payment-method-nonce>fake-valid-nonce</payment-method-nonce>
14
+ <amount>20.00</amount>
15
+ <order-id>R443994184</order-id>
16
+ <shipping>
17
+ <company>Company</company>
18
+ <country-code-alpha2>US</country-code-alpha2>
19
+ <country-code-alpha3>USA</country-code-alpha3>
20
+ <country-code-numeric type="integer">840</country-code-numeric>
21
+ <country-name>United States of America</country-name>
22
+ <first-name>John</first-name>
23
+ <last-name>Doe</last-name>
24
+ <locality>Herndon</locality>
25
+ <postal-code>35005</postal-code>
26
+ <region>AL</region>
27
+ <street-address>10 Lovely Street</street-address>
28
+ <extended-address>Northwest</extended-address>
29
+ </shipping>
30
+ <descriptor>
31
+ <name></name>
32
+ </descriptor>
33
+ <options>
34
+ <submit-for-settlement type="boolean">true</submit-for-settlement>
35
+ <add-billing-address-to-payment-method type="boolean">true</add-billing-address-to-payment-method>
36
+ <three-d-secure>
37
+ <required type="boolean">false</required>
38
+ </three-d-secure>
39
+ <store-in-vault type="boolean">true</store-in-vault>
40
+ <store-shipping-address-in-vault type="boolean">true</store-shipping-address-in-vault>
41
+ </options>
42
+ <type>sale</type>
43
+ </transaction>
44
+ headers:
45
+ Accept-Encoding:
46
+ - gzip
47
+ Accept:
48
+ - application/xml
49
+ User-Agent:
50
+ - Braintree Ruby Gem 2.49.0
51
+ X-Apiversion:
52
+ - '4'
53
+ Content-Type:
54
+ - application/xml
55
+ response:
56
+ status:
57
+ code: 201
58
+ message: Created
59
+ headers:
60
+ Date:
61
+ - Tue, 20 Oct 2015 10:59:12 GMT
62
+ Content-Type:
63
+ - application/xml; charset=utf-8
64
+ Transfer-Encoding:
65
+ - chunked
66
+ Connection:
67
+ - close
68
+ X-Authentication:
69
+ - basic_auth
70
+ X-User:
71
+ - 97syg9czj6hrdzyn
72
+ Vary:
73
+ - Accept-Encoding
74
+ Content-Encoding:
75
+ - gzip
76
+ X-Ua-Compatible:
77
+ - IE=Edge,chrome=1
78
+ Etag:
79
+ - '"8146100ba72eeec1928ba29f84c4a07c"'
80
+ Cache-Control:
81
+ - max-age=0, private, must-revalidate
82
+ X-Request-Id:
83
+ - 780a5f8db79dad98fa9eb9a3084e4b02
84
+ X-Runtime:
85
+ - '1.781883'
86
+ X-Frame-Options:
87
+ - SAMEORIGIN
88
+ Strict-Transport-Security:
89
+ - max-age=31536000; includeSubDomains
90
+ body:
91
+ encoding: ASCII-8BIT
92
+ string: !binary |-
93
+ H4sIAIAeJlYAA8RYS2/cOAy+91cM5u7YnnGaaeGoCLa76C66RbdtikUvgWxx
94
+ YjW25JXkefTXl/Jr7LGc5FLsKWPyEyWSn0gq8ZtD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
129
+ recorded_at: Tue, 20 Oct 2015 10:59:12 GMT
130
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,143 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://yd57hn7c4r5bhp8g:1cc8b0097ef43165847630438f864834@api.sandbox.braintreegateway.com/merchants/yccdpmn3cvtjbgnr/transactions
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <transaction>
11
+ <customer>
12
+ </customer>
13
+ <payment-method-nonce>fake-valid-nonce</payment-method-nonce>
14
+ <amount>20.00</amount>
15
+ <order-id>R425973250</order-id>
16
+ <billing>
17
+ <company>Company</company>
18
+ <country-code-alpha2>US</country-code-alpha2>
19
+ <country-code-alpha3>USA</country-code-alpha3>
20
+ <country-code-numeric type="integer">840</country-code-numeric>
21
+ <country-name>United States of America</country-name>
22
+ <first-name>bar</first-name>
23
+ <last-name>Doe</last-name>
24
+ <locality>Herndon</locality>
25
+ <postal-code>35005</postal-code>
26
+ <region>AL</region>
27
+ <street-address>10 Lovely Street</street-address>
28
+ <extended-address>Northwest</extended-address>
29
+ </billing>
30
+ <shipping>
31
+ <company>Company</company>
32
+ <country-code-alpha2>US</country-code-alpha2>
33
+ <country-code-alpha3>USA</country-code-alpha3>
34
+ <country-code-numeric type="integer">840</country-code-numeric>
35
+ <country-name>United States of America</country-name>
36
+ <first-name>foo</first-name>
37
+ <last-name>Doe</last-name>
38
+ <locality>Herndon</locality>
39
+ <postal-code>35005</postal-code>
40
+ <region>AL</region>
41
+ <street-address>10 Lovely Street</street-address>
42
+ <extended-address>Northwest</extended-address>
43
+ </shipping>
44
+ <descriptor>
45
+ <name></name>
46
+ </descriptor>
47
+ <options>
48
+ <submit-for-settlement type="boolean">true</submit-for-settlement>
49
+ <add-billing-address-to-payment-method type="boolean">true</add-billing-address-to-payment-method>
50
+ <three-d-secure>
51
+ <required type="boolean">false</required>
52
+ </three-d-secure>
53
+ <store-in-vault type="boolean">true</store-in-vault>
54
+ <store-shipping-address-in-vault type="boolean">true</store-shipping-address-in-vault>
55
+ </options>
56
+ <type>sale</type>
57
+ </transaction>
58
+ headers:
59
+ Accept-Encoding:
60
+ - gzip
61
+ Accept:
62
+ - application/xml
63
+ User-Agent:
64
+ - Braintree Ruby Gem 2.49.0
65
+ X-Apiversion:
66
+ - '4'
67
+ Content-Type:
68
+ - application/xml
69
+ response:
70
+ status:
71
+ code: 201
72
+ message: Created
73
+ headers:
74
+ Date:
75
+ - Tue, 20 Oct 2015 10:58:55 GMT
76
+ Content-Type:
77
+ - application/xml; charset=utf-8
78
+ Transfer-Encoding:
79
+ - chunked
80
+ Connection:
81
+ - close
82
+ X-Authentication:
83
+ - basic_auth
84
+ X-User:
85
+ - 97syg9czj6hrdzyn
86
+ Vary:
87
+ - Accept-Encoding
88
+ Content-Encoding:
89
+ - gzip
90
+ X-Ua-Compatible:
91
+ - IE=Edge,chrome=1
92
+ Etag:
93
+ - '"96dba2adc20f9c372a72b187eac42375"'
94
+ Cache-Control:
95
+ - max-age=0, private, must-revalidate
96
+ X-Request-Id:
97
+ - 0c619b70c729e2edc41662a4e907600c
98
+ X-Runtime:
99
+ - '0.766829'
100
+ X-Frame-Options:
101
+ - SAMEORIGIN
102
+ Strict-Transport-Security:
103
+ - max-age=31536000; includeSubDomains
104
+ body:
105
+ encoding: ASCII-8BIT
106
+ string: !binary |-
107
+ H4sIAG8eJlYAA+xY3ZObNhB/z1/h8bsO8Efi3nBkbtqmmWmS6SS5ttOXG4EW
108
+ oxokIgmfnb++KxAYDCTpQ6cP7dOZ3Z9W+72rC1+einxxBKW5FHfL4MZfLkAk
109
+ knGxv1s+fHxFdsuX0bPQKCo0TQyiomeLRchZtC3Wp9Mm9PCnpWhDTaUjXcUF
110
+ NwbYYyrVowZjcihAmNBzAIs15xIiTXMIvfqnpSWVUnjzmXAtCSoA0Y8P70Nv
111
+ TLZgWshKmGjl3/h+6LkvyyhAJRkVhtAksUSC2um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u3U
128
+ eCwAs5U95nIvvSPaf1OK/UsQR66ksIA7TQWL5QkHRifftU0FJcUp8k7aBGx+
129
+ N5wMaG4y1Nh2yoOQT9iLe7QGxCDm5sJvPh2rUhg4zMJ9lduNtYe65nQjyO7h
130
+ OGcv0B7N6UvPSuY9REtw7tO6wmaIY1QcLpgBddhqZUosl4oEht25z2hdJVmV
131
+ 1G+Dy+0XWgOqBP9UgSsmJKPzObZjFSVxHLBgvU5itlmnGwrsOYs3L9gq2cSb
132
+ 1XPMxtmjjeQjiEISzQ4zxdbx3QY9LDb3IiMZx8xU58G60s34GgEoyMXQVig+
133
+ RZBRlN/4POnwnQT30rtsQ/3HX42Ye781DtXogYKmHB2kW2dYxXorlZbYyiCi
134
+ JYIm6I153ti+f9jkb3n9/psO6CguKZqpkNPpHbWKdaJ4ObvD9vhdD68XdFLi
135
+ tiIZwXWPWF9OdL0rJKqlzCQWVb66x45GglNwYgFnXNfVPMmDRopsy2umH8+9
136
+ WrGDjnUbCsVV1f6/Au2aqdiO30zHjAoBY6kY86Md5ynA3CC218on0kRzxEU3
137
+ xJXSzfuCgcGHe7ttD1nTsek9TqavH2JG/6L5RjicrANwNqlpNexDDTMVF9sp
138
+ gVVid6KJiMzYbi0vK7v3j1PDDVXCBS6qVfPYs4tE01EfbUcNvTnQcNXrGTrc
139
+ CPvb3izo67Lq/fBrsrolUnF9sFGmvf+kBL/4/s9v1x9+Wv/We00ySLiun1nN
140
+ dmpT21Fqtw4khSbDtYRg2dp8BnRJKoeRGDSl6NlfAAAA//8DAHuMcOZnFAAA
141
+ http_version:
142
+ recorded_at: Tue, 20 Oct 2015 10:58:56 GMT
143
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,553 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://yd57hn7c4r5bhp8g:1cc8b0097ef43165847630438f864834@api.sandbox.braintreegateway.com/merchants/yccdpmn3cvtjbgnr/customers/2
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.49.0
16
+ X-Apiversion:
17
+ - '4'
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Date:
24
+ - Tue, 20 Oct 2015 14:13:42 GMT
25
+ Content-Type:
26
+ - application/xml; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - close
31
+ X-Authentication:
32
+ - basic_auth
33
+ X-User:
34
+ - 97syg9czj6hrdzyn
35
+ Vary:
36
+ - Accept-Encoding
37
+ Content-Encoding:
38
+ - gzip
39
+ X-Ua-Compatible:
40
+ - IE=Edge,chrome=1
41
+ Etag:
42
+ - '"311c1ccc5056648b596300bcad915b60"'
43
+ Cache-Control:
44
+ - max-age=0, private, must-revalidate
45
+ X-Request-Id:
46
+ - 058b3ac5d51ec9ee875c7952ad65b88f
47
+ X-Runtime:
48
+ - '0.243413'
49
+ X-Frame-Options:
50
+ - SAMEORIGIN
51
+ Strict-Transport-Security:
52
+ - max-age=31536000; includeSubDomains
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: !binary |-
56
+ H4sIABZMJlYAA+ybXXObOBSG7/srPN5rAgJMMOPQZtvZ2d3p9qbJ7kxvOgLJ
57
+ tmKQqMBOnF+/Eth8GEgIdlp3Si4S6+hIBvToPTpImb19CIPRBvOYMHo1Bhfa
58
+ eISpzxChi6vx7c0fij1+676Z+es4YSHm7pvRaEaQq89U8VsWhNFfQpooorz1
59
+ fRSF1PA3yZ23oHymlmul95zwOFEoDLELZ2qpJCsDWKorCrLKZ2EE6XZESXA1
60
+ Tvgaj9XUjkNIAjck4kuCixDyFcH3xH98F0fic8yCdSLuK77w2UzNXGWjaMko
61
+ rnU1hw812z32YpLUfX2OYYKRApNRso3w1RiJYkJCPHZ1DUwUoClAvwG6o186
62
+ xuWXmVo0SNuvI/Sy9kWD7PvT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:13:42 GMT
97
+ - request:
98
+ method: post
99
+ uri: https://yd57hn7c4r5bhp8g:1cc8b0097ef43165847630438f864834@api.sandbox.braintreegateway.com/merchants/yccdpmn3cvtjbgnr/transactions
100
+ body:
101
+ encoding: UTF-8
102
+ string: |
103
+ <?xml version="1.0" encoding="UTF-8"?>
104
+ <transaction>
105
+ <customer-id>2</customer-id>
106
+ <payment-method-nonce>fake-valid-nonce</payment-method-nonce>
107
+ <amount>20.00</amount>
108
+ <order-id>R678494479</order-id>
109
+ <billing>
110
+ <company>Company</company>
111
+ <country-code-alpha2>US</country-code-alpha2>
112
+ <country-code-alpha3>USA</country-code-alpha3>
113
+ <country-code-numeric type="integer">840</country-code-numeric>
114
+ <country-name>United States of America</country-name>
115
+ <first-name>bar</first-name>
116
+ <last-name>Doe</last-name>
117
+ <locality>Herndon</locality>
118
+ <postal-code>35005</postal-code>
119
+ <region>AL</region>
120
+ <street-address>10 Lovely Street</street-address>
121
+ <extended-address>Northwest</extended-address>
122
+ </billing>
123
+ <shipping>
124
+ <company>Company</company>
125
+ <country-code-alpha2>US</country-code-alpha2>
126
+ <country-code-alpha3>USA</country-code-alpha3>
127
+ <country-code-numeric type="integer">840</country-code-numeric>
128
+ <country-name>United States of America</country-name>
129
+ <first-name>foo</first-name>
130
+ <last-name>Doe</last-name>
131
+ <locality>Herndon</locality>
132
+ <postal-code>35005</postal-code>
133
+ <region>AL</region>
134
+ <street-address>10 Lovely Street</street-address>
135
+ <extended-address>Northwest</extended-address>
136
+ </shipping>
137
+ <descriptor>
138
+ <name></name>
139
+ </descriptor>
140
+ <options>
141
+ <submit-for-settlement type="boolean">true</submit-for-settlement>
142
+ <add-billing-address-to-payment-method type="boolean">true</add-billing-address-to-payment-method>
143
+ <three-d-secure>
144
+ <required type="boolean">false</required>
145
+ </three-d-secure>
146
+ <store-in-vault type="boolean">true</store-in-vault>
147
+ <store-shipping-address-in-vault type="boolean">true</store-shipping-address-in-vault>
148
+ </options>
149
+ <type>sale</type>
150
+ </transaction>
151
+ headers:
152
+ Accept-Encoding:
153
+ - gzip
154
+ Accept:
155
+ - application/xml
156
+ User-Agent:
157
+ - Braintree Ruby Gem 2.49.0
158
+ X-Apiversion:
159
+ - '4'
160
+ Content-Type:
161
+ - application/xml
162
+ response:
163
+ status:
164
+ code: 201
165
+ message: Created
166
+ headers:
167
+ Date:
168
+ - Tue, 20 Oct 2015 14:13:45 GMT
169
+ Content-Type:
170
+ - application/xml; charset=utf-8
171
+ Transfer-Encoding:
172
+ - chunked
173
+ Connection:
174
+ - close
175
+ X-Authentication:
176
+ - basic_auth
177
+ X-User:
178
+ - 97syg9czj6hrdzyn
179
+ Vary:
180
+ - Accept-Encoding
181
+ Content-Encoding:
182
+ - gzip
183
+ X-Ua-Compatible:
184
+ - IE=Edge,chrome=1
185
+ Etag:
186
+ - '"b6072be1bc290217b3c1b2e8f30f1511"'
187
+ Cache-Control:
188
+ - max-age=0, private, must-revalidate
189
+ X-Request-Id:
190
+ - f035fdeeaff0c1fad594b2eff2e4a450
191
+ X-Runtime:
192
+ - '2.163829'
193
+ X-Frame-Options:
194
+ - SAMEORIGIN
195
+ Strict-Transport-Security:
196
+ - max-age=31536000; includeSubDomains
197
+ body:
198
+ encoding: ASCII-8BIT
199
+ string: !binary |-
200
+ H4sIABlMJlYAA+xYS3PbNhC+51dodKdJSrSjZGimbvrIdNJMJ4k70148ILEy
201
+ EZEAC4B65Nd3QYAUKZKOL50e2pOF3Q/L3cXu4oPjN8eyWOxBKib47TK8CpYL
202
+ 4JmgjD/eLu8//+Rtlm+SF7GWhCuSaUQlLxaLmNFkF+U6/RL7+NNIlCa6Vomq
203
+ 05JpDfRhK+SDAq0LKIHr2HcAg9WnChJFCoj95qeRZbWU+OWTx5Tw0AFIfrz/
204
+ GPtjsQGTUtRcJ6vgKghi362MogSZ5YRrj2SZEXronaqI3ClR1MZ7paqvQsT+
205
+ FNAYEJKCNIuPNy830asoevkq9jth46gEgvF5RC+M87dLikvNSliiP+G1Fwbe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yAdhCtD+tpocSKFz9NhMyh0XB5zFPZkFUUiZ
223
+ Puvt0qlqiQeHVfhYF4bM9lCXmu4KMhQd79kztCdz/pKTFEUP0Qpc+pSqcRji
224
+ Ncp3Z8xAOhy1YusZLeEZDKdzX9GmStA6a54N56+fZRZUc/ZXDa6ZUIzJZziO
225
+ ZZKlaUjD9TpLabTeRgToDU2jl3SVRWm0usFqnN1qLe+Bl8JTdDfTbJ3eMehh
226
+ s7nHmpczrEx5GtCV7o5vEICG3BmaDsVXCirK6pkvlw7fWXCPwDMb6r8LG8Tc
227
+ 084mVGEGSrJlmCDVJsM41qNUSuAow/dNhaAJuQ3PH8f3D4f8nIfxv5mATuKK
228
+ wt4KBZnmqHWqMsmqWQ7b03czvCHoXoVsRVAP6Z5ncjkx9S6Q6JbUk1h0+eI7
229
+ 5mr08BacIOCUqaabJ3VgrYi2vWbm8dyrFSfo2LehUaSq5l8ZGNdMx3Z6ezvm
230
+ hHMYW8Uz35vrfAswdxGbz4qDZ09zpMU0pLVU9n1BQeNjvWXbQ9X02fQeJ9Of
231
+ H2JG/715JhyOJgF4N8lpN8xDDSsVie2UwToznGjiRGZiN5FXteH949Jwl6rH
232
+ OBLV2j72DJGwE/XBTNTYnwMNqV4v0CEj7LO9WdC3bTX88Fu2OhIpmdqZUybn
233
+ N+Q6/O0mePf9Hx/ebn7vvSYpZEw1zyzLTk1pO0mT1oGlWOdISzxsW1PPgCnZ
234
+ iuFJDIZS8uJvAAAA//8DAMAgL++CFAAA
235
+ http_version:
236
+ recorded_at: Tue, 20 Oct 2015 14:13:45 GMT
237
+ - request:
238
+ method: get
239
+ uri: https://yd57hn7c4r5bhp8g:1cc8b0097ef43165847630438f864834@api.sandbox.braintreegateway.com/merchants/yccdpmn3cvtjbgnr/customers/2
240
+ body:
241
+ encoding: US-ASCII
242
+ string: ''
243
+ headers:
244
+ Accept-Encoding:
245
+ - gzip
246
+ Accept:
247
+ - application/xml
248
+ User-Agent:
249
+ - Braintree Ruby Gem 2.49.0
250
+ X-Apiversion:
251
+ - '4'
252
+ response:
253
+ status:
254
+ code: 200
255
+ message: OK
256
+ headers:
257
+ Date:
258
+ - Tue, 20 Oct 2015 14:13:46 GMT
259
+ Content-Type:
260
+ - application/xml; charset=utf-8
261
+ Transfer-Encoding:
262
+ - chunked
263
+ Connection:
264
+ - close
265
+ X-Authentication:
266
+ - basic_auth
267
+ X-User:
268
+ - 97syg9czj6hrdzyn
269
+ Vary:
270
+ - Accept-Encoding
271
+ Content-Encoding:
272
+ - gzip
273
+ X-Ua-Compatible:
274
+ - IE=Edge,chrome=1
275
+ Etag:
276
+ - '"98877f0146b7a34e93c119ce7a6453a0"'
277
+ Cache-Control:
278
+ - max-age=0, private, must-revalidate
279
+ X-Request-Id:
280
+ - cb4a8f1470503d69c5ceac5d48cf1541
281
+ X-Runtime:
282
+ - '0.233203'
283
+ X-Frame-Options:
284
+ - SAMEORIGIN
285
+ Strict-Transport-Security:
286
+ - max-age=31536000; includeSubDomains
287
+ body:
288
+ encoding: ASCII-8BIT
289
+ string: !binary |-
290
+ H4sIABpMJlYAA+ycXXObOBSG7/srPN5rAuIrmHFos+3s7O50e9N0d6Y3HQGy
291
+ rRgkVmAn7q9fCYwBYycEnMbZKhdJJB0JofOcVxysZPr2Po5Ga8RSTMnVGFxo
292
+ 4xEiAQ0xmV+Nv9z8pjjjt96babBKMxoj5r0ZjaY49PSpyr+LAq8MFpBkCi9v
293
+ giBMYmIE6+zWnxM2VeutwnqGWZopBMbIg1O1VhKNEay1VQXRFNA4gWQzIji6
294
+ GmdshcZqXo9iiCMvxvwi0UUM2RKjOxx8f5cm/PeURquM31d6EdCpWpiKTsmC
295
+ EtQaagbvW3V3yE9x1rYNGIIZChWYjbJNgq7GIS9mOEZjT9eApQBNAfoN0F39
296
+ 0jUuv07VqkPef5WET+tfdSiun7tDmWEUheluSiHOlACyMN0OChmDm7FobbYX
297
+ NbzOx1HEHa3AMGQoTcv6wsUpK328rSsZUAr/14uVUc2lPmT7L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015 14:13:46 GMT
332
+ - request:
333
+ method: get
334
+ uri: https://yd57hn7c4r5bhp8g:1cc8b0097ef43165847630438f864834@api.sandbox.braintreegateway.com/merchants/yccdpmn3cvtjbgnr/customers/2
335
+ body:
336
+ encoding: US-ASCII
337
+ string: ''
338
+ headers:
339
+ Accept-Encoding:
340
+ - gzip
341
+ Accept:
342
+ - application/xml
343
+ User-Agent:
344
+ - Braintree Ruby Gem 2.49.0
345
+ X-Apiversion:
346
+ - '4'
347
+ response:
348
+ status:
349
+ code: 200
350
+ message: OK
351
+ headers:
352
+ Date:
353
+ - Tue, 20 Oct 2015 14:13:48 GMT
354
+ Content-Type:
355
+ - application/xml; charset=utf-8
356
+ Transfer-Encoding:
357
+ - chunked
358
+ Connection:
359
+ - close
360
+ X-Authentication:
361
+ - basic_auth
362
+ X-User:
363
+ - 97syg9czj6hrdzyn
364
+ Vary:
365
+ - Accept-Encoding
366
+ Content-Encoding:
367
+ - gzip
368
+ X-Ua-Compatible:
369
+ - IE=Edge,chrome=1
370
+ Etag:
371
+ - '"6e1e78b63393a017135bcad13f43afb0"'
372
+ Cache-Control:
373
+ - max-age=0, private, must-revalidate
374
+ X-Request-Id:
375
+ - ffb2b4df56026686839e9ce054ae5cc0
376
+ X-Runtime:
377
+ - '0.216715'
378
+ X-Frame-Options:
379
+ - SAMEORIGIN
380
+ Strict-Transport-Security:
381
+ - max-age=31536000; includeSubDomains
382
+ body:
383
+ encoding: ASCII-8BIT
384
+ string: !binary |-
385
+ H4sIABxMJlYAA+ycXXObOBSG7/srPN5rAuIrmHFos+3s7O50e9N0d6Y3HQGy
386
+ rRgkVmAn7q9fCYwBYycEnMbZKhdJJB0JofOcVxysZPr2Po5Ga8RSTMnVGFxo
387
+ 4xEiAQ0xmV+Nv9z8pjjjt96babBKMxoj5r0ZjaY49PSpyr+LAq8MFpBkCi9v
388
+ giBMYmIE6+zWnxM2VeutwnqGWZopBMbIg1O1VhKNEay1VQXRFNA4gWQzIji6
389
+ GmdshcZ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U
422
+ WGfMj54I63serNdpsA5nwY6fBOt4DuxnZ/3RA0qDD2N0YJ3YA1ifUSpZl6y/
423
+ Ftabf+IjdV2y/oysP/CXJoNP1XdgPRmSlEpdl6y/ItbTIa/Upa5L1ruz/uA/
424
+ Rhn8TyA6sH5rSV2XrP/fWN8VEC9WGHtv/gMAAP//AwCDgqNEiE4AAA==
425
+ http_version:
426
+ recorded_at: Tue, 20 Oct 2015 14:13:48 GMT
427
+ - request:
428
+ method: get
429
+ uri: https://yd57hn7c4r5bhp8g:1cc8b0097ef43165847630438f864834@api.sandbox.braintreegateway.com/merchants/yccdpmn3cvtjbgnr/customers/2/addresses/sr
430
+ body:
431
+ encoding: US-ASCII
432
+ string: ''
433
+ headers:
434
+ Accept-Encoding:
435
+ - gzip
436
+ Accept:
437
+ - application/xml
438
+ User-Agent:
439
+ - Braintree Ruby Gem 2.49.0
440
+ X-Apiversion:
441
+ - '4'
442
+ response:
443
+ status:
444
+ code: 200
445
+ message: OK
446
+ headers:
447
+ Date:
448
+ - Tue, 20 Oct 2015 14:13:49 GMT
449
+ Content-Type:
450
+ - application/xml; charset=utf-8
451
+ Transfer-Encoding:
452
+ - chunked
453
+ Connection:
454
+ - close
455
+ X-Authentication:
456
+ - basic_auth
457
+ X-User:
458
+ - 97syg9czj6hrdzyn
459
+ Vary:
460
+ - Accept-Encoding
461
+ Content-Encoding:
462
+ - gzip
463
+ X-Ua-Compatible:
464
+ - IE=Edge,chrome=1
465
+ Etag:
466
+ - '"8c18e825256fa17dc27aba9a45effdd5"'
467
+ Cache-Control:
468
+ - max-age=0, private, must-revalidate
469
+ X-Request-Id:
470
+ - 71df5539d1ae01b5a10ee4ff66e308f9
471
+ X-Runtime:
472
+ - '0.037487'
473
+ X-Frame-Options:
474
+ - SAMEORIGIN
475
+ Strict-Transport-Security:
476
+ - max-age=31536000; includeSubDomains
477
+ body:
478
+ encoding: ASCII-8BIT
479
+ string: !binary |-
480
+ H4sIAB1MJlYAA5RSO2/CMBDe+yus7G5eRELIGKFWVQfUBVi6ufEBlhI7sh1K
481
+ /n3PgRAELJ3s73U635ktTnVFjmCdMnoepa9JRECXRiq9n0fbzQedRgv+woSU
482
+ FpzjL4QwJbmzLMYjoLJ13tRgKeKMxbcwyDtlnada1MB/BKZucJArMaB3Aywe
483
+ YV/a1I3QHX87n1j8QgTReQvg6dBYmpCVOULVkXUvsPjOEDJw8qAlyCv5Zaw/
484
+ /IJD+4PWt2dKUSnf8U+wWhqNHQ5MkC3scWx8uWLx5RrYxjgvKopDBJ4XSVKw
485
+ +JY6v6zV3nY9QUXVHETGt+vwwEf+uT9H//JZIH8M6BYXoko+nSR3iUG5jfTj
486
+ 32rlQeIshQdHzI4se6MY8+OWLKAJ5+aJ7xqYRxKhVzVEPEvSgqYJzZJNOpml
487
+ +WxSfGOFa6DPt438X34M4MeMr+v6AwAA//8DADSjQOHLAgAA
488
+ http_version:
489
+ recorded_at: Tue, 20 Oct 2015 14:13:49 GMT
490
+ - request:
491
+ method: get
492
+ uri: https://yd57hn7c4r5bhp8g:1cc8b0097ef43165847630438f864834@api.sandbox.braintreegateway.com/merchants/yccdpmn3cvtjbgnr/customers/2/addresses/j5
493
+ body:
494
+ encoding: US-ASCII
495
+ string: ''
496
+ headers:
497
+ Accept-Encoding:
498
+ - gzip
499
+ Accept:
500
+ - application/xml
501
+ User-Agent:
502
+ - Braintree Ruby Gem 2.49.0
503
+ X-Apiversion:
504
+ - '4'
505
+ response:
506
+ status:
507
+ code: 200
508
+ message: OK
509
+ headers:
510
+ Date:
511
+ - Tue, 20 Oct 2015 14:13:50 GMT
512
+ Content-Type:
513
+ - application/xml; charset=utf-8
514
+ Transfer-Encoding:
515
+ - chunked
516
+ Connection:
517
+ - close
518
+ X-Authentication:
519
+ - basic_auth
520
+ X-User:
521
+ - 97syg9czj6hrdzyn
522
+ Vary:
523
+ - Accept-Encoding
524
+ Content-Encoding:
525
+ - gzip
526
+ X-Ua-Compatible:
527
+ - IE=Edge,chrome=1
528
+ Etag:
529
+ - '"a0c87af1c0dad7668c243da238340de4"'
530
+ Cache-Control:
531
+ - max-age=0, private, must-revalidate
532
+ X-Request-Id:
533
+ - 8b30a4813fee70784e9e115d06b2c11b
534
+ X-Runtime:
535
+ - '0.097411'
536
+ X-Frame-Options:
537
+ - SAMEORIGIN
538
+ Strict-Transport-Security:
539
+ - max-age=31536000; includeSubDomains
540
+ body:
541
+ encoding: ASCII-8BIT
542
+ string: !binary |-
543
+ H4sIAB5MJlYAA5RSz2+CMBS++1c03BkFJDGm1pgtyw5mF/WyW2Of2gVa0hYn
544
+ //1eUYRMLzuV79fL61fY8lKV5AzWKaMXUfpCIwJ6b6TSx0W0277Hs2jJJ0xI
545
+ acE5PiGEKcm/C5bgEdC+cd5UYGPEGUvGMMgHZZ2PtaiAH4xhyQgHuRQ9ejPA
546
+ kgF2o01VC93y1+uJw29EEJ23AD7uF0spWZszlC3ZdAJL/hhCBi4etAR5Jz+N
547
+ 9acfcGh/0Lr1zF6Uyrf8A6yWRuOGPRNkC0esja/WLLl9BrY2zosyxhKB5wWl
548
+ 2NWYut6s0d62HRGLsj6JjO824YKP/HN/jv7Vs0D+GNANPoja89mU/kn0yjjS
549
+ 1b/TyoPELoUHR8yBrDqjGPLDK1lAE/bmiW9rWEQSoVcVRDyjaRGnNM7oNp3O
550
+ 03w+Lb5wwj3Q5Zta/i8/BPDHTO7P9QsAAP//AwC4xqbLywIAAA==
551
+ http_version:
552
+ recorded_at: Tue, 20 Oct 2015 14:13:50 GMT
553
+ recorded_with: VCR 2.9.3