solidus_paypal_braintree 0.2.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. checksums.yaml +5 -5
  2. data/.circleci/config.yml +40 -0
  3. data/.gem_release.yml +5 -0
  4. data/.github/stale.yml +17 -0
  5. data/.gitignore +18 -0
  6. data/.rspec +2 -0
  7. data/.rubocop.yml +76 -0
  8. data/CHANGELOG.md +258 -0
  9. data/Gemfile +41 -0
  10. data/LICENSE +2 -2
  11. data/README.md +208 -48
  12. data/Rakefile +4 -28
  13. data/app/assets/config/solidus_paypal_braintree_manifest.js +1 -0
  14. data/app/assets/images/solidus_paypal_braintree/venmo/venmo_active_blue_button_280x48.svg +19 -0
  15. data/app/assets/images/solidus_paypal_braintree/venmo/venmo_active_blue_button_320x48.svg +19 -0
  16. data/app/assets/images/solidus_paypal_braintree/venmo/venmo_active_blue_button_375x48.svg +19 -0
  17. data/app/assets/images/solidus_paypal_braintree/venmo/venmo_active_white_button_280x48.svg +19 -0
  18. data/app/assets/images/solidus_paypal_braintree/venmo/venmo_active_white_button_320x48.svg +19 -0
  19. data/app/assets/images/solidus_paypal_braintree/venmo/venmo_active_white_button_375x48.svg +19 -0
  20. data/app/assets/images/solidus_paypal_braintree/venmo/venmo_blue_acceptance_mark.svg +15 -0
  21. data/app/assets/images/solidus_paypal_braintree/venmo/venmo_blue_button_280x48.svg +19 -0
  22. data/app/assets/images/solidus_paypal_braintree/venmo/venmo_blue_button_320x48.svg +19 -0
  23. data/app/assets/images/solidus_paypal_braintree/venmo/venmo_blue_button_375x48.svg +19 -0
  24. data/app/assets/images/solidus_paypal_braintree/venmo/venmo_blue_logo.svg +18 -0
  25. data/app/assets/images/solidus_paypal_braintree/venmo/venmo_white_acceptance_mark.svg +20 -0
  26. data/app/assets/images/solidus_paypal_braintree/venmo/venmo_white_button_280x48.svg +19 -0
  27. data/app/assets/images/solidus_paypal_braintree/venmo/venmo_white_button_320x48.svg +19 -0
  28. data/app/assets/images/solidus_paypal_braintree/venmo/venmo_white_button_375x48.svg +19 -0
  29. data/app/assets/images/solidus_paypal_braintree/venmo/venmo_white_logo.svg +18 -0
  30. data/app/assets/javascripts/solidus_paypal_braintree/checkout.js +32 -3
  31. data/app/assets/javascripts/solidus_paypal_braintree/client.js +58 -5
  32. data/app/assets/javascripts/solidus_paypal_braintree/constants.js +36 -5
  33. data/app/assets/javascripts/solidus_paypal_braintree/frontend.js +2 -0
  34. data/app/assets/javascripts/solidus_paypal_braintree/hosted_form.js +15 -5
  35. data/app/assets/javascripts/solidus_paypal_braintree/paypal_button.js +90 -26
  36. data/app/assets/javascripts/solidus_paypal_braintree/paypal_messaging.js +22 -0
  37. data/app/assets/javascripts/solidus_paypal_braintree/venmo_button.js +86 -0
  38. data/app/assets/javascripts/spree/backend/solidus_paypal_braintree.js +2 -2
  39. data/app/assets/javascripts/spree/frontend/paypal_button.js +15 -13
  40. data/app/assets/stylesheets/spree/frontend/solidus_paypal_braintree.css +12 -0
  41. data/app/decorators/controllers/solidus_paypal_braintree/admin_payments_controller_decorator.rb +11 -0
  42. data/app/decorators/controllers/solidus_paypal_braintree/checkout_controller_decorator.rb +11 -0
  43. data/app/decorators/controllers/solidus_paypal_braintree/client_tokens_controller.rb +41 -0
  44. data/app/decorators/controllers/solidus_paypal_braintree/orders_controller_decorator.rb +11 -0
  45. data/app/decorators/models/solidus_paypal_braintree/spree/store_decorator.rb +20 -0
  46. data/app/decorators/models/solidus_paypal_braintree/spree/user_decorator.rb +13 -0
  47. data/app/helpers/solidus_paypal_braintree/braintree_admin_helper.rb +23 -0
  48. data/app/helpers/solidus_paypal_braintree/braintree_checkout_helper.rb +60 -0
  49. data/app/models/application_record.rb +2 -0
  50. data/app/models/solidus_paypal_braintree/address.rb +64 -0
  51. data/app/models/solidus_paypal_braintree/avs_result.rb +69 -0
  52. data/app/models/solidus_paypal_braintree/configuration.rb +39 -3
  53. data/app/models/solidus_paypal_braintree/customer.rb +7 -3
  54. data/app/models/solidus_paypal_braintree/gateway.rb +150 -43
  55. data/app/models/solidus_paypal_braintree/response.rb +49 -21
  56. data/app/models/solidus_paypal_braintree/source.rb +70 -10
  57. data/app/models/solidus_paypal_braintree/transaction.rb +3 -2
  58. data/app/models/solidus_paypal_braintree/transaction_address.rb +36 -15
  59. data/app/models/solidus_paypal_braintree/transaction_import.rb +18 -12
  60. data/app/overrides/spree/payments/payment/add_paypal_funding_source_to_payment.rb +9 -0
  61. data/app/views/spree/api/payments/source_views/_paypal_braintree.json.jbuilder +3 -0
  62. data/app/views/spree/checkout/existing_payment/_paypal_braintree.html.erb +10 -0
  63. data/app/views/spree/shared/_apple_pay_button.html.erb +27 -0
  64. data/app/views/spree/shared/_braintree_errors.html.erb +16 -0
  65. data/app/views/spree/shared/_braintree_hosted_fields.html.erb +25 -8
  66. data/app/views/spree/shared/_paypal_braintree_head_scripts.html.erb +26 -0
  67. data/app/views/spree/shared/_paypal_cart_button.html.erb +38 -0
  68. data/app/views/spree/shared/_paypal_messaging.html.erb +13 -0
  69. data/app/views/spree/shared/_venmo_button.html.erb +33 -0
  70. data/bin/console +17 -0
  71. data/bin/rails +15 -0
  72. data/bin/setup +8 -0
  73. data/config/locales/en.yml +66 -0
  74. data/config/locales/it.yml +56 -0
  75. data/config/routes.rb +2 -0
  76. data/db/migrate/20160906201711_create_solidus_paypal_braintree_customers.rb +3 -1
  77. data/db/migrate/20161125172005_add_braintree_configuration_to_stores.rb +5 -7
  78. data/db/migrate/20170505193712_add_null_constraint_to_sources.rb +3 -1
  79. data/db/migrate/20190705115327_add_paypal_button_preferences_to_braintree_configurations.rb +5 -0
  80. data/db/migrate/20190911141712_add_3d_secure_to_braintree_configuration.rb +5 -0
  81. data/db/migrate/20211222170950_add_paypal_funding_source_to_solidus_paypal_braintree_sources.rb +5 -0
  82. data/db/migrate/20220104150301_add_venmo_to_braintree_configuration.rb +5 -0
  83. data/lib/controllers/backend/solidus_paypal_braintree/configurations_controller.rb +23 -5
  84. data/lib/controllers/frontend/solidus_paypal_braintree/checkouts_controller.rb +25 -21
  85. data/lib/controllers/frontend/solidus_paypal_braintree/transactions_controller.rb +56 -50
  86. data/lib/generators/solidus_paypal_braintree/install/install_generator.rb +7 -6
  87. data/lib/solidus_paypal_braintree/country_mapper.rb +4 -2
  88. data/lib/solidus_paypal_braintree/engine.rb +34 -22
  89. data/lib/solidus_paypal_braintree/factories.rb +41 -6
  90. data/lib/solidus_paypal_braintree/request_protection.rb +21 -0
  91. data/lib/solidus_paypal_braintree/version.rb +3 -1
  92. data/lib/solidus_paypal_braintree.rb +5 -1
  93. data/lib/views/backend/solidus_paypal_braintree/configurations/list.html.erb +38 -5
  94. data/lib/views/backend/spree/admin/payments/source_forms/_paypal_braintree.html.erb +2 -2
  95. data/lib/views/backend/spree/admin/payments/source_views/_paypal_braintree.html.erb +7 -2
  96. data/lib/views/backend/spree/admin/shared/preference_fields/_preference_select.html.erb +13 -0
  97. data/lib/views/backend_v1.2/spree/admin/payments/source_forms/_paypal_braintree.html.erb +2 -2
  98. data/lib/views/backend_v2.4/spree/admin/shared/preference_fields/_hash.html.erb +12 -0
  99. data/lib/views/frontend/solidus_paypal_braintree/payments/_payment.html.erb +12 -0
  100. data/lib/views/frontend/spree/checkout/payment/_paypal_braintree.html.erb +10 -77
  101. data/lib/views/frontend/spree/shared/_paypal_checkout_button.html.erb +32 -0
  102. data/solidus_paypal_braintree.gemspec +43 -0
  103. data/spec/controllers/solidus_paypal_braintree/checkouts_controller_spec.rb +99 -0
  104. data/spec/controllers/solidus_paypal_braintree/client_tokens_controller_spec.rb +55 -0
  105. data/spec/controllers/solidus_paypal_braintree/configurations_controller_spec.rb +73 -0
  106. data/spec/controllers/solidus_paypal_braintree/transactions_controller_spec.rb +183 -0
  107. data/spec/features/backend/configuration_spec.rb +23 -0
  108. data/spec/features/backend/new_payment_spec.rb +137 -0
  109. data/spec/features/frontend/braintree_credit_card_checkout_spec.rb +191 -0
  110. data/spec/features/frontend/paypal_checkout_spec.rb +166 -0
  111. data/spec/features/frontend/venmo_checkout_spec.rb +189 -0
  112. data/spec/fixtures/cassettes/admin/invalid_credit_card.yml +63 -0
  113. data/spec/fixtures/cassettes/admin/resubmit_credit_card.yml +352 -0
  114. data/spec/fixtures/cassettes/admin/valid_credit_card.yml +412 -0
  115. data/spec/fixtures/cassettes/braintree/create_profile.yml +71 -0
  116. data/spec/fixtures/cassettes/braintree/generate_token.yml +63 -0
  117. data/spec/fixtures/cassettes/braintree/token.yml +63 -0
  118. data/spec/fixtures/cassettes/checkout/invalid_credit_card.yml +63 -0
  119. data/spec/fixtures/cassettes/checkout/resubmit_credit_card.yml +216 -0
  120. data/spec/fixtures/cassettes/checkout/update.yml +71 -0
  121. data/spec/fixtures/cassettes/checkout/valid_credit_card.yml +156 -0
  122. data/spec/fixtures/cassettes/checkout/valid_venmo_transaction.yml +599 -0
  123. data/spec/fixtures/cassettes/gateway/authorize/credit_card/address.yml +86 -0
  124. data/spec/fixtures/cassettes/gateway/authorize/merchant_account/EUR.yml +154 -0
  125. data/spec/fixtures/cassettes/gateway/authorize/paypal/EUR.yml +90 -0
  126. data/spec/fixtures/cassettes/gateway/authorize/paypal/address.yml +90 -0
  127. data/spec/fixtures/cassettes/gateway/authorize.yml +86 -0
  128. data/spec/fixtures/cassettes/gateway/authorized_transaction.yml +73 -0
  129. data/spec/fixtures/cassettes/gateway/cancel/missing.yml +63 -0
  130. data/spec/fixtures/cassettes/gateway/cancel/refunds.yml +272 -0
  131. data/spec/fixtures/cassettes/gateway/cancel/void.yml +201 -0
  132. data/spec/fixtures/cassettes/gateway/capture.yml +141 -0
  133. data/spec/fixtures/cassettes/gateway/complete.yml +157 -0
  134. data/spec/fixtures/cassettes/gateway/credit.yml +208 -0
  135. data/spec/fixtures/cassettes/gateway/purchase.yml +87 -0
  136. data/spec/fixtures/cassettes/gateway/settled_transaction.yml +140 -0
  137. data/spec/fixtures/cassettes/gateway/void.yml +137 -0
  138. data/spec/fixtures/cassettes/source/card_type.yml +267 -0
  139. data/spec/fixtures/cassettes/source/last4.yml +267 -0
  140. data/spec/fixtures/cassettes/transaction/import/valid/capture.yml +224 -0
  141. data/spec/fixtures/cassettes/transaction/import/valid.yml +71 -0
  142. data/spec/fixtures/views/spree/orders/edit.html.erb +50 -0
  143. data/spec/helpers/solidus_paypal_braintree/braintree_admin_helper_spec.rb +17 -0
  144. data/spec/helpers/solidus_paypal_braintree/braintree_checkout_helper_spec.rb +70 -0
  145. data/spec/models/solidus_paypal_braintree/address_spec.rb +71 -0
  146. data/spec/models/solidus_paypal_braintree/avs_result_spec.rb +317 -0
  147. data/spec/models/solidus_paypal_braintree/gateway_spec.rb +692 -0
  148. data/spec/models/solidus_paypal_braintree/response_spec.rb +280 -0
  149. data/spec/models/solidus_paypal_braintree/source_spec.rb +499 -0
  150. data/spec/models/solidus_paypal_braintree/transaction_address_spec.rb +235 -0
  151. data/spec/models/solidus_paypal_braintree/transaction_import_spec.rb +300 -0
  152. data/spec/models/solidus_paypal_braintree/transaction_spec.rb +85 -0
  153. data/spec/models/spree/store_spec.rb +14 -0
  154. data/spec/requests/spree/api/orders_controller_spec.rb +36 -0
  155. data/spec/spec_helper.rb +29 -0
  156. data/spec/support/capybara.rb +7 -0
  157. data/spec/support/factories.rb +2 -0
  158. data/spec/support/gateway_helpers.rb +29 -0
  159. data/spec/support/order_ready_for_payment.rb +37 -0
  160. data/spec/support/vcr.rb +42 -0
  161. data/spec/support/views.rb +1 -0
  162. metadata +226 -166
  163. data/app/controllers/solidus_paypal_braintree/client_tokens_controller.rb +0 -21
  164. data/app/helpers/braintree_admin_helper.rb +0 -18
  165. data/app/models/spree/store_decorator.rb +0 -11
  166. data/app/overrides/admin_navigation_menu.rb +0 -6
  167. data/config/initializers/braintree.rb +0 -1
  168. data/lib/views/backend/solidus_paypal_braintree/configurations/_admin_tab.html.erb +0 -3
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/client_token
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <client-token>
11
+ <version type="integer">2</version>
12
+ </client-token>
13
+ headers:
14
+ Accept-Encoding:
15
+ - gzip
16
+ Accept:
17
+ - application/xml
18
+ User-Agent:
19
+ - Braintree Ruby Gem 2.98.0
20
+ X-Apiversion:
21
+ - '5'
22
+ Content-Type:
23
+ - application/xml
24
+ Authorization:
25
+ - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ==
26
+ response:
27
+ status:
28
+ code: 201
29
+ message: Created
30
+ headers:
31
+ Server:
32
+ - nginx
33
+ Date:
34
+ - Fri, 13 Sep 2019 14:28:19 GMT
35
+ Content-Type:
36
+ - application/xml; charset=utf-8
37
+ Transfer-Encoding:
38
+ - chunked
39
+ X-Authentication:
40
+ - server_to_server
41
+ Braintree-Service-Origin:
42
+ - clientauth
43
+ Vary:
44
+ - Accept-Encoding
45
+ Content-Encoding:
46
+ - gzip
47
+ Etag:
48
+ - W/"8d61b38a37820d4ee67ecf0606a04804"
49
+ Cache-Control:
50
+ - max-age=0, private, must-revalidate
51
+ X-Request-Id:
52
+ - eddeb5a6-81dd-4969-a4b7-fdd5c2eecc84
53
+ X-Runtime:
54
+ - '0.116279'
55
+ Strict-Transport-Security:
56
+ - max-age=31536000; includeSubDomains
57
+ body:
58
+ encoding: ASCII-8BIT
59
+ string: !binary |-
60
+ H4sIAIOne10AA3xWXXObOBR976/o9H13+QiZeCbtTp0AtmrkWIAk9AaIlg8J09jGhl+/F5xOmtnsPnjGg6R7z733nCPd/33R6mNfPB+qffv5k/mn8elj0eZ7WbU/Pn+KI++Pu09/f/lwn6uqaI9/HPdN0X758PHjfZ+qU/GlGJAlOBpTtjit6/2weUCl5GSf2agrtGdM34lWJ2HRIV+hLmt31bZCqoj3Z0HLZRovurA5soB6XeTib6mPVomlntK48ynvUBA7Xcgxyjg5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YAj/iyzNz/WbtysEk5Pme+50TaO4oQOKCwIZhZZdbFuGrpyu2QzZ69hHnobBQPiU7GQgnBPBEStfxGosYpaPkgG3SL2e4mNckTtpdPMP8IaiH5Kh6IcXmidD3k7VJI13xIYvBku6yTsXwIGtlkNnFTnQ+R/uFE4XrCOqRclIn9ln/b6q4XHDTJlwfxooV89XWajZnDHbNjctLzccL9Zu6PE2/pTQK+n/nxzM2NTfp8mPQDWrLoezwf4buRD//jFRNW/bLPpMPU27UuDblajhNW8A+VWMdecpg99Bp+h9dzBDRIa+n+ll87Zuafp5iHzF/Y4YQdYoK2TBGCjzDHSjnqgbeTVraZ4YAOJHDuAGcF8A2rd/WtF1roS5fpeO4VrMM5ooRrqnz2CMdY150GrxinPL/rYPeWB8BV4An/5RG7ceaKVoAX7nnDa6czc94V9kAvFdzDDcQ28pZO2F69wPVqmANgIUhcPegt/4DjEOsEHEC5tXjMLKKmeVKK3au3vWK/Ylu/rx2IBe8C6MXdhL8XOpm1nK+AQxQ0Ec56GKXvGXLySKgxs/Dzy30y4RuKGPdi9lgEr4VpdtjMW+izxs7OWjRX/cCNN/vx77jINKcO7iSVV9McXtd+9x3ol5JT/95wLT7lNpxnMO/V7pQCfsA9Sr48w/sKekW24I82/H8GHt8yeIuBpssJd8Y8qGe6v7xBzJhA43z29kn3dWYLwIPkd258vv/r+pb7cP/X21fePwAAAP//AwBus4iyHAoAAA==
61
+ http_version:
62
+ recorded_at: Fri, 13 Sep 2019 14:28:19 GMT
63
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,216 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/client_token
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <client-token>
11
+ <version type="integer">2</version>
12
+ </client-token>
13
+ headers:
14
+ Accept-Encoding:
15
+ - gzip
16
+ Accept:
17
+ - application/xml
18
+ User-Agent:
19
+ - Braintree Ruby Gem 2.98.0
20
+ X-Apiversion:
21
+ - '5'
22
+ Content-Type:
23
+ - application/xml
24
+ Authorization:
25
+ - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ==
26
+ response:
27
+ status:
28
+ code: 201
29
+ message: Created
30
+ headers:
31
+ Server:
32
+ - nginx
33
+ Date:
34
+ - Fri, 13 Sep 2019 14:28:11 GMT
35
+ Content-Type:
36
+ - application/xml; charset=utf-8
37
+ Transfer-Encoding:
38
+ - chunked
39
+ X-Authentication:
40
+ - server_to_server
41
+ Braintree-Service-Origin:
42
+ - clientauth
43
+ Vary:
44
+ - Accept-Encoding
45
+ Content-Encoding:
46
+ - gzip
47
+ Etag:
48
+ - W/"e7d0dd7b5c696ed0765000bf8c614567"
49
+ Cache-Control:
50
+ - max-age=0, private, must-revalidate
51
+ X-Request-Id:
52
+ - 19fb0cfa-a09b-4512-9d5a-5e680362c624
53
+ X-Runtime:
54
+ - '0.062178'
55
+ Strict-Transport-Security:
56
+ - max-age=31536000; includeSubDomains
57
+ body:
58
+ encoding: ASCII-8BIT
59
+ string: !binary |-
60
+ H4sIAHune10AA3xW25KbOBB9z1ek8r67XIapcdUkW8EGbGLksQyS0BtCJGAkTMb4Al+/DZ7UZGpn98FVLtTqPuo+50iPf1+1+nguno/Vofn8yfzT+PSxaPKDrJofnz8lsf/Hw6e/v3x4zFVVNN0f3aEumi8fPn58PGfqVHwp+tDiLBwyOjut9od+PQ9LyfBB2GFbaN8Yv2OtTtwifb4MW9Fsq00VqiI5XDgp3SyZtbu6oxHx29hD37IgXKaWesqSNiCsDaPEaXcMhYLhC61RiGr1c8ckIoG04xqHUW0mlOF9VHOT1vKb1GSx29cnztQ3EZDVlkKuOrnGum0iz7nHTD0Rjww7al6iwI93MQ9Fwg+xgf0xFx9IRAynjVnbSM/xtqzMtsNXI66lj7xrQpjMBKkvVJtUJDMvi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u9j/cOJd6sRa58xXqb2W/5tqoczZ6BJ5h75ixby5ddxNmYOd8yWylHP3Yj7zdwXI2/JXQq+L4Jk4ubaxue8H/UDWrLIezwf4Du41v94xYhVv8SZpB97u9KlIZfuMGIF/1Cp1Z0lg9lDr+F3fN2HQYNkL73f6mvHFMFlzHkUwczejdghJ2jL5DvwEepYGQvPwNtRKxthOKADCZw7wl4OfEPqXX3rmeb62gqdTL2CddiHFfdMlU8e4RirfavBK4axzu862L7lAXAVeMJ+ecR2mLiiFeCFe97wm3HPVHeJfNBLBfdwDbmNvCEjtlcv8Pw9zAGw4JDfPOgt/4DjkOsEHAhza7YQFlbjPAlB3s3bXrHfsK3e1w7kgncB9OJhxH/mOp20nC+BQwQ0sZv0MMjAN+TokXBGYaHnl/tkxNcXCTrzyWNDkkycQWbeQJ81crbWrL7ph8R48uPfceFxTi3cSSqvxjm8rv3uO9AvJcf+veFacspt2E9h3svtKQP8gHuQzL3A+wp6hTfgjzb8fwYe31N4i4GmyxG3oD6cZ7y//J5PmEDjbPL2Ufd7YXPAE8rvzPj8+NftLffh8a+3r7x/AAAA//8DAInNZKUcCgAA
61
+ http_version:
62
+ recorded_at: Fri, 13 Sep 2019 14:28:11 GMT
63
+ - request:
64
+ method: post
65
+ uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/customers
66
+ body:
67
+ encoding: UTF-8
68
+ string: |
69
+ <?xml version="1.0" encoding="UTF-8"?>
70
+ <customer>
71
+ <payment-method-nonce>fake-valid-nonce</payment-method-nonce>
72
+ </customer>
73
+ headers:
74
+ Accept-Encoding:
75
+ - gzip
76
+ Accept:
77
+ - application/xml
78
+ User-Agent:
79
+ - Braintree Ruby Gem 2.98.0
80
+ X-Apiversion:
81
+ - '5'
82
+ Content-Type:
83
+ - application/xml
84
+ Authorization:
85
+ - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ==
86
+ response:
87
+ status:
88
+ code: 201
89
+ message: Created
90
+ headers:
91
+ Date:
92
+ - Fri, 13 Sep 2019 14:28:15 GMT
93
+ Content-Type:
94
+ - application/xml; charset=utf-8
95
+ Transfer-Encoding:
96
+ - chunked
97
+ X-Frame-Options:
98
+ - SAMEORIGIN
99
+ X-Xss-Protection:
100
+ - 1; mode=block
101
+ X-Content-Type-Options:
102
+ - nosniff
103
+ X-Authentication:
104
+ - basic_auth
105
+ X-User:
106
+ - 3v249hqtptsg744y
107
+ Vary:
108
+ - Accept-Encoding
109
+ Content-Encoding:
110
+ - gzip
111
+ Etag:
112
+ - W/"46a5014f3ea6f99a716ecd2081c38fed"
113
+ Cache-Control:
114
+ - max-age=0, private, must-revalidate
115
+ X-Runtime:
116
+ - '0.359746'
117
+ X-Request-Id:
118
+ - 01-1568384893.548-92.223.152.178-12976568
119
+ Content-Security-Policy:
120
+ - frame-ancestors 'self'
121
+ X-Broxyid:
122
+ - 01-1568384893.548-92.223.152.178-12976568
123
+ Strict-Transport-Security:
124
+ - max-age=31536000; includeSubDomains
125
+ body:
126
+ encoding: ASCII-8BIT
127
+ string: !binary |-
128
+ H4sIAH+ne10AA6xWy3LiOhDd5yso7x1jMINJGWdzK1TdqsksbsjcZDMlW22sQZY8kkwgXz+S8YuHGVKZHX36tNRune4muN9mdLABIQlnc8u9HVoDYDHHhK3m1vLpwfat+/AmiAupeAYivBkMAoJDfzIcT75Mx27gaMuA2hmniClb21OBV7PRz2mUTZP1JB0HTtdr2AkRUtkMZTBghM4tJQqwnNJFUZ8n5lmO2O4EhwwReoLmKWenZyRoe4K9QSSJOnOfAKQA20gN1C6HuYW1qUgGVjgaujN7OLPd8ZPr3Y38O9d7DZw2oIwvcnx9/ETHtwH7+8ui2wkBiuU+pRXlEaKmii/j53e8mKnX//9Nvv2zfPv6vhw9vn/dBk7LqT4CE2XHSGBZpYGEQDvLeA/9e0RjEaFUC8BGGAuQssarpxf1m1dYrQ37UBdduCX3P3xF6H3++rbzIqi8UgkAVSfeQ4KtAoZNnS/SKI8RJarvKgEr3TM9zpxLpd9ANxKEM88dTgOnC3U/p2BK7ErYRjRP0aj3w4+Z42uYrNBvQOI/UC8V/HNdUJ3yoV7wTnqhPMPp0aXWKwu9oTvyfcNhDW5EbZvrwmcikc6ssbuMlFOsZdpXAqM4M74IouGSrRl/Y/qkFmtp+1LyxCZSFojF0OWfOpvAzxf4Az3YUo2+lZZwuPyvw2zQmo8hIqr9kr3ZOhNU0DrxiHMKiFmhqaChls6WXAj9OrZunIKaD+gceuypQ2CbE1HmY2ecqTR0R4FzAp5h7wAJXb7R8IBeogdswMe5J4hKqKI6mbRTNV48TKLvzwVeuBQv0s3rw+zni+t78dPj+7eFPBrAZXAKiKpUi60jiQ5W00iGVmAXgoapUrm8cxwkJSh5GwlEmBltK12dN7S71fpzcrTLgKkfGaiU4x+Ur7iz0Tq/zdnqHtiGCM4MYS4RwxHXm6E9v7lRi9F0VITYuk3tAK2p5WD2Qtf3tbAqo/bpVASnnf6ogYYgIEe6II9c+6rfrY/jIi7/GrTxLVbTZBHJWJDcPOThJmtbVfE1sND/NZb+OnD2Vu0rGPlVlPMwKhtCV4bo1SpClEwmU2+WTGaJm+Cxj7/ESexqIPEmfpRowfWGNmf/hem2AZZxW+J1jyAbfydC6DT27Xq2IuWo6G73A6Ccn0E1S+Hsn4PjQXuy/j8yeC6v/suL/9Lav2LpX7XyLy78C+v+ymV/7aq/dtFfveb/uOT/ygb6dAsETkdtjQHabOUU3vwGAAD//wMAeAHVi7EMAAA=
129
+ http_version:
130
+ recorded_at: Fri, 13 Sep 2019 14:28:15 GMT
131
+ - request:
132
+ method: post
133
+ uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions
134
+ body:
135
+ encoding: UTF-8
136
+ string: |
137
+ <?xml version="1.0" encoding="UTF-8"?>
138
+ <transaction>
139
+ <amount>20.00</amount>
140
+ <order-id>R9999999-123ABC</order-id>
141
+ <channel>Solidus</channel>
142
+ <options>
143
+ <store-in-vault-on-success type="boolean">true</store-in-vault-on-success>
144
+ </options>
145
+ <payment-method-token>8q3s8k</payment-method-token>
146
+ <billing>
147
+ <first-name>John</first-name>
148
+ <last-name>Doe</last-name>
149
+ <street-address>10 Lovely Street Northwest</street-address>
150
+ <locality>Herndon</locality>
151
+ <postal-code>21088-0255</postal-code>
152
+ <region>AL</region>
153
+ <country-code-alpha2>US</country-code-alpha2>
154
+ </billing>
155
+ <customer-id>850356731</customer-id>
156
+ <type>sale</type>
157
+ </transaction>
158
+ headers:
159
+ Accept-Encoding:
160
+ - gzip
161
+ Accept:
162
+ - application/xml
163
+ User-Agent:
164
+ - Braintree Ruby Gem 2.98.0
165
+ X-Apiversion:
166
+ - '5'
167
+ Content-Type:
168
+ - application/xml
169
+ Authorization:
170
+ - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ==
171
+ response:
172
+ status:
173
+ code: 201
174
+ message: Created
175
+ headers:
176
+ Date:
177
+ - Fri, 13 Sep 2019 14:28:16 GMT
178
+ Content-Type:
179
+ - application/xml; charset=utf-8
180
+ Transfer-Encoding:
181
+ - chunked
182
+ X-Frame-Options:
183
+ - SAMEORIGIN
184
+ X-Xss-Protection:
185
+ - 1; mode=block
186
+ X-Content-Type-Options:
187
+ - nosniff
188
+ X-Authentication:
189
+ - basic_auth
190
+ X-User:
191
+ - 3v249hqtptsg744y
192
+ Vary:
193
+ - Accept-Encoding
194
+ Content-Encoding:
195
+ - gzip
196
+ Etag:
197
+ - W/"8fadd5629939edff8c11e1987c47190a"
198
+ Cache-Control:
199
+ - max-age=0, private, must-revalidate
200
+ X-Runtime:
201
+ - '0.441886'
202
+ X-Request-Id:
203
+ - 01-1568384895.986-92.223.152.178-12976952
204
+ Content-Security-Policy:
205
+ - frame-ancestors 'self'
206
+ X-Broxyid:
207
+ - 01-1568384895.986-92.223.152.178-12976952
208
+ Strict-Transport-Security:
209
+ - max-age=31536000; includeSub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2hOoBLqgBR1BlwqB4MXcuA5KKxawZxxZldqtcap+mm4xxW8OOVxgA0cPBufMXbqrheeeds4cyE1Bbp0D6CjkbrJkmJIl+iPy2Ne1hdMfVVPq/U8D7fQ3p/nRzf+orvHrQqsx3v3M3wumFTrYgt9/SEJ2k9wvP+fhYh3fZJsdvvz8eP19M0A3g0EZvPoXAAD//wMA2yV3fGEWAAA=
214
+ http_version:
215
+ recorded_at: Fri, 13 Sep 2019 14:28:17 GMT
216
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,71 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/customers
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <customer>
11
+ <payment-method-nonce>fake-paypal-billing-agreement-nonce</payment-method-nonce>
12
+ </customer>
13
+ headers:
14
+ Accept-Encoding:
15
+ - gzip
16
+ Accept:
17
+ - application/xml
18
+ User-Agent:
19
+ - Braintree Ruby Gem 2.98.0
20
+ X-Apiversion:
21
+ - '5'
22
+ Content-Type:
23
+ - application/xml
24
+ Authorization:
25
+ - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ==
26
+ response:
27
+ status:
28
+ code: 201
29
+ message: Created
30
+ headers:
31
+ Date:
32
+ - Fri, 13 Sep 2019 14:23:31 GMT
33
+ Content-Type:
34
+ - application/xml; charset=utf-8
35
+ Transfer-Encoding:
36
+ - chunked
37
+ X-Frame-Options:
38
+ - SAMEORIGIN
39
+ X-Xss-Protection:
40
+ - 1; mode=block
41
+ X-Content-Type-Options:
42
+ - nosniff
43
+ X-Authentication:
44
+ - basic_auth
45
+ X-User:
46
+ - 3v249hqtptsg744y
47
+ Vary:
48
+ - Accept-Encoding
49
+ Content-Encoding:
50
+ - gzip
51
+ Etag:
52
+ - W/"1def9e79aa7d52374b638f665c50d5ef"
53
+ Cache-Control:
54
+ - max-age=0, private, must-revalidate
55
+ X-Runtime:
56
+ - '0.296888'
57
+ X-Request-Id:
58
+ - 01-1568384611.188-92.223.152.178-12918506
59
+ Content-Security-Policy:
60
+ - frame-ancestors 'self'
61
+ X-Broxyid:
62
+ - 01-1568384611.188-92.223.152.178-12918506
63
+ Strict-Transport-Security:
64
+ - max-age=31536000; includeSubDomains
65
+ body:
66
+ encoding: ASCII-8BIT
67
+ string: !binary |-
68
+ H4sIAGOme10AA6RUTW/iMBC991eg3I0JH6JBIexKFUh7aC9sd9sLmsST4OLYke3Q0l+/TkKgJfSw6tHz3ny9mXG4eMtFb4/acCXnnt8feD2UiWJcZnPv93pJbr1FdBMmpbEqRx3d9HohZ9FtMJxMg2AwDql7VUYHJluQlrj3VLMsGL5M43ya7ibbUUg/ohU75dpYIiHHnuRi7lldokdrSMBXSKLyAuShY8ccuOhYi62S3RgpvHVsrxgbbq/k0wgWGQHbs4cC5x5zT8tz9KLhwA/IICD+aO2PZ8PRbOQ/h/TsUPuXBfs//7NDk78WnaQcBTNNSZlQMYhKxafR4ztbBfb576/04W53uF8nk4f1z0FIz5xjE4xbkoBm5lgGaA2HViU4FI4MSaJKaT8zKkKH0hidOeZCuC0hkGnEHJvZNtzNEducsA1nIb3q0Yb7pthNjOOWks8b+tHcUhmmUIo2V6yUQJBeVE0/pEfwRK4XLHoBiX2m8EfTZN+tY0gbqCWepU9Wy0n857FkK1+w1Xb/vAxek+Wtf3/H9NNIXUypduY5ZEhKLaKttYWZUQrGoDX9WAOX1mmWuYZf4VBlpq6IWtgc7VaxjVCZosfCCpktUO65VrKizA1IFqs3d6qnDG1OU8Ym0byw7vyvrEfNsWqHMpqMp7vkPaTNq8W+ueJN34ZUf4NEp4bkllf45VxSEMYN5hr1FMd1X8/48o4/gjJVV2HBc16VVRokSrOv42jcOwHqhjtwSLuncmkztREY0+iG25H8vKzRzT8AAAD//wMA+PYWapwFAAA=
69
+ http_version:
70
+ recorded_at: Fri, 13 Sep 2019 14:23:32 GMT
71
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,156 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/customers
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <customer>
11
+ <payment-method-nonce>fake-valid-nonce</payment-method-nonce>
12
+ </customer>
13
+ headers:
14
+ Accept-Encoding:
15
+ - gzip
16
+ Accept:
17
+ - application/xml
18
+ User-Agent:
19
+ - Braintree Ruby Gem 2.98.0
20
+ X-Apiversion:
21
+ - '5'
22
+ Content-Type:
23
+ - application/xml
24
+ Authorization:
25
+ - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ==
26
+ response:
27
+ status:
28
+ code: 201
29
+ message: Created
30
+ headers:
31
+ Date:
32
+ - Fri, 13 Sep 2019 14:28:49 GMT
33
+ Content-Type:
34
+ - application/xml; charset=utf-8
35
+ Transfer-Encoding:
36
+ - chunked
37
+ X-Frame-Options:
38
+ - SAMEORIGIN
39
+ X-Xss-Protection:
40
+ - 1; mode=block
41
+ X-Content-Type-Options:
42
+ - nosniff
43
+ X-Authentication:
44
+ - basic_auth
45
+ X-User:
46
+ - 3v249hqtptsg744y
47
+ Vary:
48
+ - Accept-Encoding
49
+ Content-Encoding:
50
+ - gzip
51
+ Etag:
52
+ - W/"5f82ed8f3b447dd005c8921f319d2f5c"
53
+ Cache-Control:
54
+ - max-age=0, private, must-revalidate
55
+ X-Runtime:
56
+ - '0.430171'
57
+ X-Request-Id:
58
+ - 01-1568384928.656-92.223.152.178-12982788
59
+ Content-Security-Policy:
60
+ - frame-ancestors 'self'
61
+ X-Broxyid:
62
+ - 01-1568384928.656-92.223.152.178-12982788
63
+ Strict-Transport-Security:
64
+ - max-age=31536000; includeSub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El4QOnur8ZWM/FdW8zCuGkJXhujVKiKUzmbzaZDOgtRN8cTHX5I0cTWQTmd+nGrBDYa2Z/+C6bYBlnNb4vWAIFt/L0LoNPbterYi1ajob/cDoJqfYT1L4eyfg+NBe7L+PzJ4Lq/+y4v/0tq/YulftfIvLvwL6/7KZX/tqr920V+95n+65H/JBvp0C4ROT22tAdrs5BTd/A8AAP//AwAnpmPksQwAAA==
69
+ http_version:
70
+ recorded_at: Fri, 13 Sep 2019 14:28:50 GMT
71
+ - request:
72
+ method: post
73
+ uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions
74
+ body:
75
+ encoding: UTF-8
76
+ string: |
77
+ <?xml version="1.0" encoding="UTF-8"?>
78
+ <transaction>
79
+ <amount>20.00</amount>
80
+ <order-id>R9999999-123ABC</order-id>
81
+ <channel>Solidus</channel>
82
+ <options>
83
+ <store-in-vault-on-success type="boolean">true</store-in-vault-on-success>
84
+ </options>
85
+ <payment-method-token>7dtr29</payment-method-token>
86
+ <billing>
87
+ <first-name>John</first-name>
88
+ <last-name>Doe</last-name>
89
+ <street-address>10 Lovely Street Northwest</street-address>
90
+ <locality>Herndon</locality>
91
+ <postal-code>21088-0255</postal-code>
92
+ <region>AL</region>
93
+ <country-code-alpha2>US</country-code-alpha2>
94
+ </billing>
95
+ <customer-id>567121984</customer-id>
96
+ <type>sale</type>
97
+ </transaction>
98
+ headers:
99
+ Accept-Encoding:
100
+ - gzip
101
+ Accept:
102
+ - application/xml
103
+ User-Agent:
104
+ - Braintree Ruby Gem 2.98.0
105
+ X-Apiversion:
106
+ - '5'
107
+ Content-Type:
108
+ - application/xml
109
+ Authorization:
110
+ - Basic bXdqa2t4d2NwMzJja2huZjphOTI5OGY0M2IzMGM2OTlkYjMwNzJjYzRhMDBmN2Y0OQ==
111
+ response:
112
+ status:
113
+ code: 201
114
+ message: Created
115
+ headers:
116
+ Date:
117
+ - Fri, 13 Sep 2019 14:28:51 GMT
118
+ Content-Type:
119
+ - application/xml; charset=utf-8
120
+ Transfer-Encoding:
121
+ - chunked
122
+ X-Frame-Options:
123
+ - SAMEORIGIN
124
+ X-Xss-Protection:
125
+ - 1; mode=block
126
+ X-Content-Type-Options:
127
+ - nosniff
128
+ X-Authentication:
129
+ - basic_auth
130
+ X-User:
131
+ - 3v249hqtptsg744y
132
+ Vary:
133
+ - Accept-Encoding
134
+ Content-Encoding:
135
+ - gzip
136
+ Etag:
137
+ - W/"1d24081e67d1d1a64caabfc2d92689e6"
138
+ Cache-Control:
139
+ - max-age=0, private, must-revalidate
140
+ X-Runtime:
141
+ - '0.405298'
142
+ X-Request-Id:
143
+ - 01-1568384930.852-92.223.152.178-12983242
144
+ Content-Security-Policy:
145
+ - frame-ancestors 'self'
146
+ X-Broxyid:
147
+ - 01-1568384930.852-92.223.152.178-12983242
148
+ Strict-Transport-Security:
149
+ - max-age=31536000; includeSubDomains
150
+ body:
151
+ encoding: ASCII-8BIT
152
+ string: !binary |-
153
+ H4sIAKOne10AA6xYWXPbNhB+z6/Q6J0mqSORMjRTt2mcZGJ3JnHc2C8ZkABF2BTAAqAs5dd3QfAUQdmdqZ7EvbhY7PEtg3f7bTbZESEpZ+dT/8ybTgiLOaZscz79fvPBWU3fha8CJRCTKFYgFb6aTAKKQ+9hdljKBQpceNA0qZAqZIgKlXJBfxEcuBVJc9UhJ6FEGQnc8q+mxYUQ8LaDQyV34KUk/P7tfeAOyVoYbXnBVDjzzjwvcKsnzdgSEaeIKQfFsSY64I9UZBvxTAWujVt6W0SOhTdhNDufKlGQqWusI7AlXiTKBQZJsP91bX6OP5tf/P5H4Dac8tSCIEWwg9RER+J8iuFR0S2ZwuH8teOB3vzGX7ydrd4u/XuIR6NQ6hc5/m/6rUIVdak4nEc/mKtcvn7jz/z1alHfJZATKqRyGNqS43MCM0PjvJhvc8QOFg7ZIppZ6E8kklTZbOUpZzZ6gvYW6ibjEcp0mO/mt7/w5Vrd//icXN/cza9uPu3/utlA3rQyOhRuNxZBRLMM8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