workarea-braintree 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. checksums.yaml +7 -0
  2. data/.editorconfig +20 -0
  3. data/.github/ISSUE_TEMPLATE/bug_report.md +37 -0
  4. data/.github/ISSUE_TEMPLATE/documentation-request.md +17 -0
  5. data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  6. data/.gitignore +17 -0
  7. data/CHANGELOG.md +37 -0
  8. data/CODE_OF_CONDUCT.md +3 -0
  9. data/CONTRIBUTING.md +3 -0
  10. data/Gemfile +11 -0
  11. data/LICENSE +52 -0
  12. data/README.md +43 -0
  13. data/Rakefile +50 -0
  14. data/app/models/workarea/payment/authorize/credit_card.decorator +72 -0
  15. data/app/models/workarea/payment/capture/credit_card.decorator +14 -0
  16. data/app/models/workarea/payment/purchase/credit_card.decorator +52 -0
  17. data/app/models/workarea/payment/refund/credit_card.decorator +14 -0
  18. data/app/models/workarea/payment/store_credit_card.decorator +13 -0
  19. data/bin/rails +18 -0
  20. data/config/initializers/workarea.rb +1 -0
  21. data/lib/active_merchant/billing/bogus_braintree_gateway.rb +284 -0
  22. data/lib/tasks/braintree.rake +25 -0
  23. data/lib/workarea/braintree.rb +26 -0
  24. data/lib/workarea/braintree/engine.rb +8 -0
  25. data/lib/workarea/braintree/version.rb +5 -0
  26. data/test/dummy/Rakefile +6 -0
  27. data/test/dummy/app/assets/config/manifest.js +4 -0
  28. data/test/dummy/app/assets/javascripts/application.js +13 -0
  29. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  30. data/test/dummy/app/controllers/application_controller.rb +3 -0
  31. data/test/dummy/app/helpers/application_helper.rb +2 -0
  32. data/test/dummy/app/jobs/application_job.rb +2 -0
  33. data/test/dummy/app/mailers/application_mailer.rb +4 -0
  34. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  35. data/test/dummy/app/views/layouts/mailer.html.erb +13 -0
  36. data/test/dummy/app/views/layouts/mailer.text.erb +1 -0
  37. data/test/dummy/bin/bundle +3 -0
  38. data/test/dummy/bin/rails +4 -0
  39. data/test/dummy/bin/rake +4 -0
  40. data/test/dummy/bin/setup +34 -0
  41. data/test/dummy/bin/update +29 -0
  42. data/test/dummy/config.ru +5 -0
  43. data/test/dummy/config/application.rb +23 -0
  44. data/test/dummy/config/boot.rb +5 -0
  45. data/test/dummy/config/cable.yml +9 -0
  46. data/test/dummy/config/environment.rb +5 -0
  47. data/test/dummy/config/environments/development.rb +56 -0
  48. data/test/dummy/config/environments/production.rb +86 -0
  49. data/test/dummy/config/environments/test.rb +44 -0
  50. data/test/dummy/config/initializers/application_controller_renderer.rb +6 -0
  51. data/test/dummy/config/initializers/assets.rb +11 -0
  52. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  53. data/test/dummy/config/initializers/cookies_serializer.rb +5 -0
  54. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  55. data/test/dummy/config/initializers/inflections.rb +16 -0
  56. data/test/dummy/config/initializers/mime_types.rb +4 -0
  57. data/test/dummy/config/initializers/new_framework_defaults.rb +23 -0
  58. data/test/dummy/config/initializers/session_store.rb +3 -0
  59. data/test/dummy/config/initializers/workarea.rb +5 -0
  60. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  61. data/test/dummy/config/locales/en.yml +23 -0
  62. data/test/dummy/config/puma.rb +47 -0
  63. data/test/dummy/config/routes.rb +5 -0
  64. data/test/dummy/config/secrets.yml +22 -0
  65. data/test/dummy/config/spring.rb +6 -0
  66. data/test/dummy/db/seeds.rb +2 -0
  67. data/test/dummy/log/.keep +0 -0
  68. data/test/dummy/public/404.html +67 -0
  69. data/test/dummy/public/422.html +67 -0
  70. data/test/dummy/public/500.html +66 -0
  71. data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
  72. data/test/dummy/public/apple-touch-icon.png +0 -0
  73. data/test/dummy/public/favicon.ico +0 -0
  74. data/test/models/workarea/payment/authorize/credit_card_test.decorator +92 -0
  75. data/test/models/workarea/payment/capture/credit_card_test.decorator +25 -0
  76. data/test/models/workarea/payment/credit_card_integration_test.decorator +8 -0
  77. data/test/models/workarea/payment/purchase/credit_card_test.decorator +78 -0
  78. data/test/models/workarea/payment/refund/credit_card_test.decorator +25 -0
  79. data/test/models/workarea/payment/store_credit_card_test.decorator +23 -0
  80. data/test/support/workarea/braintree_support_vcr_config.rb +23 -0
  81. data/test/test_helper.rb +16 -0
  82. data/test/vcr_cassettes/braintree/authorize_failure.yml +98 -0
  83. data/test/vcr_cassettes/braintree/authorize_success.yml +89 -0
  84. data/test/vcr_cassettes/braintree/capture_success.yml +64 -0
  85. data/test/vcr_cassettes/braintree/purchase_failure.yml +97 -0
  86. data/test/vcr_cassettes/braintree/purchase_success.yml +89 -0
  87. data/test/vcr_cassettes/braintree/refund_success.yml +64 -0
  88. data/test/vcr_cassettes/braintree/store_credit_card-sets_token_on_the_card.yml +86 -0
  89. data/test/vcr_cassettes/braintree/store_without_token.yml +82 -0
  90. data/test/vcr_cassettes/braintree/void_success.yml +60 -0
  91. data/test/vcr_cassettes/credit_card/auth_capture.yml +419 -0
  92. data/test/vcr_cassettes/credit_card/auth_void.yml +415 -0
  93. data/test/vcr_cassettes/credit_card/purchase_void.yml +415 -0
  94. data/test/vcr_cassettes/credit_card/store_auth.yml +227 -0
  95. data/test/vcr_cassettes/credit_card/store_purchase.yml +227 -0
  96. data/workarea-braintree.gemspec +20 -0
  97. metadata +166 -0
@@ -0,0 +1,97 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.sandbox.braintreegateway.com/merchants/b/transactions
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <transaction>
11
+ <amount>5.00</amount>
12
+ <order-id nil="true"/>
13
+ <customer>
14
+ <id></id>
15
+ <email nil="true"/>
16
+ <phone nil="true"/>
17
+ <first-name>Ben</first-name>
18
+ <last-name>Crouse</last-name>
19
+ </customer>
20
+ <options>
21
+ <store-in-vault type="boolean">true</store-in-vault>
22
+ <submit-for-settlement type="boolean">true</submit-for-settlement>
23
+ <hold-in-escrow nil="true"/>
24
+ </options>
25
+ <custom-fields nil="true"/>
26
+ <merchant-account-id>a</merchant-account-id>
27
+ <credit-card>
28
+ <number>2</number>
29
+ <cvv>999</cvv>
30
+ <expiration-month>01</expiration-month>
31
+ <expiration-year>2018</expiration-year>
32
+ <cardholder-name>Ben Crouse</cardholder-name>
33
+ </credit-card>
34
+ <billing>
35
+ <street-address nil="true"/>
36
+ <extended-address nil="true"/>
37
+ <company nil="true"/>
38
+ <locality nil="true"/>
39
+ <region nil="true"/>
40
+ <postal-code nil="true"/>
41
+ </billing>
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.78.0 (ActiveMerchant 1.72.0)
51
+ X-Apiversion:
52
+ - '4'
53
+ Authorization:
54
+ - Basic dzN2NmQ5eXRnajRqNG56ODplYjFmODliZTlmMzYzZjYxZmZmM2Y5MDI0NDQ1NmViMg==
55
+ Content-Type:
56
+ - application/xml
57
+ response:
58
+ status:
59
+ code: 422
60
+ message: Unprocessable Entity
61
+ headers:
62
+ Date:
63
+ - Thu, 21 Sep 2017 20:31:10 GMT
64
+ Content-Type:
65
+ - application/xml; charset=utf-8
66
+ Transfer-Encoding:
67
+ - chunked
68
+ X-Frame-Options:
69
+ - SAMEORIGIN
70
+ - SAMEORIGIN
71
+ X-Xss-Protection:
72
+ - 1; mode=block
73
+ X-Content-Type-Options:
74
+ - nosniff
75
+ X-Authentication:
76
+ - basic_auth
77
+ X-User:
78
+ - nrkvc7nn7kyfbtm6
79
+ Vary:
80
+ - Accept-Encoding
81
+ Content-Encoding:
82
+ - gzip
83
+ Cache-Control:
84
+ - no-cache
85
+ X-Request-Id:
86
+ - 8c694bac-be26-4012-8704-9e2072254c3d
87
+ X-Runtime:
88
+ - '0.132328'
89
+ Strict-Transport-Security:
90
+ - max-age=31536000; includeSubDomains
91
+ body:
92
+ encoding: ASCII-8BIT
93
+ string: !binary |-
94
+ H4sIAI4hxFkAA7RW3W+bMBB/z19h8e4CnbpkEqHSKu1t0qRtz5XB18SSP5ht2vLf70ygEAKJmnVP2Pdh3/3u/Duy+1clyTNYJ4zeRulNEhHQpeFC77bR71/f6Ca6z1cZqwQFa42lFlxltIN8RUjWilxYvm2IbyrYRsxa1kRxp/KWacdKj5ccJPPmva7XDnuUYFCQf0nv1ussbtdjJfPeiqL20J3nGlUYGeUKbLln2j+ysjQ1fgXP4jfjoyMUOMd2kH/vXEjnQrgBR7TxxNVVZawnFWsUoEJo520dljdZ3LsPKcRHOXRb97YvhJSI8jTnJUTmMOlR2aSbZHOKyhlcKuM8k4/BYwGPESI/WmMSjIlwxMKfWljgc0mfpH0x8DR9V+CIOACWk3NsRHc59p+tPensrwj/pG7xpHBZiYcJT0tm+ccUc518ehcmulYF2MtYPLSBkhBoe0JAI/Q1NjpUHjgpGuL3KFSTJ/AhlV6nn/97VgcfomrnSQEkvaXpF8LFTnh3dblnypuVeIFBlM7XOx4dcuSQxRNCHN+aVcwy1ZPqHHMyFYqS390kCcJz2PQ6YzlYKhAKIbcR0hOMwpgJe94y5KOYkAu6am80LOiehHWeaqYg/wo6i0f7wUiyXvZgTe2QgwbJAmYhtyrA4EbnoIEFKjR9ZrX0eQgmiyfCkXVdKKzkE04xB95LCNTdO83qBt+9kTycCa605mUW3XgSXwc3fRIguZt16R8a7R4aFi5/gQLppQzteqq8wDmvlbAsBEGV0X6fJ0iuJ8JZ+waYzW+TdHPk0EoH+3BdAAI7rC8w6Qs41Z19P6ez78DrtOfphZ589aA58AtmpVEV082CVpqSSeGX1BZ2mPlS47eTkLaTcLYFprMh0EHumESA2uXS8x/e/L/9h6yWZvXqzCBcXT8YVlewL3LWzN/kXwAAAP//AwAtcV2yigoAAA==
95
+ http_version:
96
+ recorded_at: Thu, 21 Sep 2017 20:31:10 GMT
97
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,89 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.sandbox.braintreegateway.com/merchants/b/transactions
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <transaction>
11
+ <amount>5.00</amount>
12
+ <order-id nil="true"/>
13
+ <customer>
14
+ <id nil="true"/>
15
+ <email nil="true"/>
16
+ <phone nil="true"/>
17
+ <first-name>Ben</first-name>
18
+ <last-name>Crouse</last-name>
19
+ </customer>
20
+ <options>
21
+ <store-in-vault type="boolean">false</store-in-vault>
22
+ <submit-for-settlement type="boolean">true</submit-for-settlement>
23
+ <hold-in-escrow nil="true"/>
24
+ </options>
25
+ <custom-fields nil="true"/>
26
+ <merchant-account-id>a</merchant-account-id>
27
+ <credit-card>
28
+ <number>4111111111111111</number>
29
+ <cvv>999</cvv>
30
+ <expiration-month>01</expiration-month>
31
+ <expiration-year>2018</expiration-year>
32
+ <cardholder-name>Ben Crouse</cardholder-name>
33
+ </credit-card>
34
+ <type>sale</type>
35
+ </transaction>
36
+ headers:
37
+ Accept-Encoding:
38
+ - gzip
39
+ Accept:
40
+ - application/xml
41
+ User-Agent:
42
+ - Braintree Ruby Gem 2.78.0 (ActiveMerchant 1.72.0)
43
+ X-Apiversion:
44
+ - '4'
45
+ Authorization:
46
+ - Basic dzN2NmQ5eXRnajRqNG56ODplYjFmODliZTlmMzYzZjYxZmZmM2Y5MDI0NDQ1NmViMg==
47
+ Content-Type:
48
+ - application/xml
49
+ response:
50
+ status:
51
+ code: 422
52
+ message: Unprocessable Entity
53
+ headers:
54
+ Date:
55
+ - Thu, 21 Sep 2017 20:31:10 GMT
56
+ Content-Type:
57
+ - application/xml; charset=utf-8
58
+ Transfer-Encoding:
59
+ - chunked
60
+ X-Frame-Options:
61
+ - SAMEORIGIN
62
+ - SAMEORIGIN
63
+ X-Xss-Protection:
64
+ - 1; mode=block
65
+ X-Content-Type-Options:
66
+ - nosniff
67
+ X-Authentication:
68
+ - basic_auth
69
+ X-User:
70
+ - nrkvc7nn7kyfbtm6
71
+ Vary:
72
+ - Accept-Encoding
73
+ Content-Encoding:
74
+ - gzip
75
+ Cache-Control:
76
+ - no-cache
77
+ X-Request-Id:
78
+ - 48b67e41-0693-43dc-b5fb-0b41e8b480a9
79
+ X-Runtime:
80
+ - '0.160384'
81
+ Strict-Transport-Security:
82
+ - max-age=31536000; includeSubDomains
83
+ body:
84
+ encoding: ASCII-8BIT
85
+ string: !binary |-
86
+ H4sIAI4hxFkAA5xVTW/bMAy951cYvit2BgzIQVGBDdi5wLZzwdhMI0AfLim3zb+f5Max4zhJu5vE90g/fsny4d2a7BWJtXebfLUs8wxd5Wvtnjf53z+/xDp/UAsJjRZI5EkQcuMdo1pkmexMnI6nSxYODW5yIIJDXhyhQOAYqhA/8mG5SY/gVhsTJfT3efqA9vjYEm0xD1Tr1bpcy6I7n8MQAultG/AYlQ92602uGs8BzFPykMWJNHG2yAzPqB47cpbImeaM8KXVhPVSFj1jrLK4kHlT+Gr1JeEcCDE8QV3HLvF97b87fnbk/4f8o4FPfSsmjZNVDKaDqIDq280cel/M+Miq5eAt0ueDnDnIYjKCY+WyAQLLN2YVrG9dUN+XZRmr+nHpMU81ktB15rTZ5IFaHMmYkT3PTPlY0OYK1uy9wyvYThMH4cCi+oFOFqP7QDLQ236SbzkO9mC5UrOUW5PKwKM4kUAotBOv0JqgdmBSrIl1RG+3NrZyFx8OxhAMWoylSylEp1ls8N17U6eYyBX5t9nyFhOBx3qLnUZT86xLTK/agwsCqir1MXZOveE2Dm2VZv4SvDPJ740mSCKE9S7sVRlX9sI4yz8gkPpWrtZnDp114KfPpULEEes7nPUdnGI3FyitiWIw0a87XluLYRfuPnGLz70fcWNm/h7/AAAA//8DAOm4FlB6BgAA
87
+ http_version:
88
+ recorded_at: Thu, 21 Sep 2017 20:31:09 GMT
89
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,64 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.sandbox.braintreegateway.com/merchants/b/transactions/53433/refund
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <transaction>
11
+ <amount>5.00</amount>
12
+ </transaction>
13
+ headers:
14
+ Accept-Encoding:
15
+ - gzip
16
+ Accept:
17
+ - application/xml
18
+ User-Agent:
19
+ - Braintree Ruby Gem 2.78.0 (ActiveMerchant 1.72.0)
20
+ X-Apiversion:
21
+ - '4'
22
+ Authorization:
23
+ - Basic dzN2NmQ5eXRnajRqNG56ODplYjFmODliZTlmMzYzZjYxZmZmM2Y5MDI0NDQ1NmViMg==
24
+ Content-Type:
25
+ - application/xml
26
+ response:
27
+ status:
28
+ code: 404
29
+ message: Not Found
30
+ headers:
31
+ Date:
32
+ - Thu, 21 Sep 2017 20:31:09 GMT
33
+ Content-Type:
34
+ - application/xml; charset=utf-8
35
+ Transfer-Encoding:
36
+ - chunked
37
+ X-Frame-Options:
38
+ - SAMEORIGIN
39
+ - SAMEORIGIN
40
+ X-Xss-Protection:
41
+ - 1; mode=block
42
+ X-Content-Type-Options:
43
+ - nosniff
44
+ X-Authentication:
45
+ - basic_auth
46
+ Vary:
47
+ - Accept-Encoding
48
+ Content-Encoding:
49
+ - gzip
50
+ Cache-Control:
51
+ - no-cache
52
+ X-Request-Id:
53
+ - 86884bce-cf59-4d71-823b-595992b7e23c
54
+ X-Runtime:
55
+ - '0.023372'
56
+ Strict-Transport-Security:
57
+ - max-age=31536000; includeSubDomains
58
+ body:
59
+ encoding: ASCII-8BIT
60
+ string: !binary |-
61
+ H4sIAI0hxFkAAwAAAP//AwAAAAAAAAAAAA==
62
+ http_version:
63
+ recorded_at: Thu, 21 Sep 2017 20:31:09 GMT
64
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,86 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.sandbox.braintreegateway.com/merchants/b/customers
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <customer>
11
+ <first-name>Ben</first-name>
12
+ <last-name>Crouse</last-name>
13
+ <email nil="true"/>
14
+ <phone nil="true"/>
15
+ <id nil="true"/>
16
+ <device-data nil="true"/>
17
+ <credit-card>
18
+ <cardholder-name>Ben Crouse</cardholder-name>
19
+ <number>4111111111111111</number>
20
+ <cvv>999</cvv>
21
+ <expiration-month>01</expiration-month>
22
+ <expiration-year>2020</expiration-year>
23
+ <token nil="true"/>
24
+ <options>
25
+ </options>
26
+ </credit-card>
27
+ </customer>
28
+ headers:
29
+ Accept-Encoding:
30
+ - gzip
31
+ Accept:
32
+ - application/xml
33
+ User-Agent:
34
+ - Braintree Ruby Gem 2.94.0 (ActiveMerchant 1.97.0)
35
+ X-Apiversion:
36
+ - '5'
37
+ Content-Type:
38
+ - application/xml
39
+ Authorization:
40
+ - Basic dzN2NmQ5eXRnajRqNG56ODplYjFmODliZTlmMzYzZjYxZmZmM2Y5MDI0NDQ1NmViMg==
41
+ response:
42
+ status:
43
+ code: 201
44
+ message: Created
45
+ headers:
46
+ Date:
47
+ - Tue, 20 Aug 2019 20:35:28 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
+ - nrkvc7nn7kyfbtm6
62
+ Vary:
63
+ - Accept-Encoding
64
+ Content-Encoding:
65
+ - gzip
66
+ Etag:
67
+ - W/"42be34ed98c79bbf91f2d2547268068e"
68
+ Cache-Control:
69
+ - max-age=0, private, must-revalidate
70
+ X-Runtime:
71
+ - '0.418288'
72
+ X-Request-Id:
73
+ - 01-1566333327.800-73.188.172.250-2169283
74
+ Content-Security-Policy:
75
+ - frame-ancestors 'self'
76
+ X-Broxyid:
77
+ - 01-1566333327.800-73.188.172.250-2169283
78
+ Strict-Transport-Security:
79
+ - max-age=31536000; includeSubDomains
80
+ body:
81
+ encoding: ASCII-8BIT
82
+ string: !binary |-
83
+ H4sIAJBZXF0AA6RUTW/bMAy991cEvqu2k7RNCscFNqDdBnTAsLZrexloi461yJInyUmcXz/JiT/SdIdhOYXvPdKU9MjoZlvw0RqVZlIsvPA88EYoUkmZWC68x4dbMvNu4rMorbSRBar4bDSKGI0n04twPA7nYeTbyIGWTHMQhtj490Yl2VQousvr+WSnIn/IOnXGlDZEQIHxBxSRP4gdzaGNPipZaYz8HnF8KosSRD0SjC88oyr0/AbHAhg/QctcCjxBM9ieYBtMNDOn2lQhGKQEzMjUJS48akPDCvTicRDOSTAj4+BhHFxPLq7Hs9fI7xOa/Kqk/5bfJ+y/31w/yRhyqvctLblMgLv7fJk87ejd3Lw+f8nud9/C+4fP9f3Dahv5veZwCMoMSUFRfWgDlILac+wxv0csljART0P3i3z3v8WdiLga8RPTYM/bxUNFLjlF1T3zqH3Mt1yXIwtnFAY8fhQrITfWGQOsl1XCqJrIjDCtKxApDvWnZJf4f8+4r3GYBHI8BUP4RMplCsYOWPz4faDs0FZPMWGmP8k+7MkMKt42nkjJEYQXO5M6aUP24krZ1yIKlxV3BxgUfcu0KbgtmWr6IYUUJo8De6oT8B11jaDs9Y2DI3mDHqmRvu09A+7ccGA7de/a9O72IvnxVNG7kNO7fP16O//1Es4lfPq6SZ7lG4M3yTkCN7k12MASA6yVsQKWSCrF49yYUl/7PmiNRp8nCpj1D+LS3s4G6nPrP7+EukBhfhZockl/crmU/tr6/rwUyxsUa6akcIKFBkETaSevr9990ZrRLlWSgFj1rR2hrbTZddN4P3WHoOVsK0rywXy0QCdQWAIbvHgL9AJJq7TZxANNh7UyXSU6Vax0r3m8LvxOY+QKRZznuix2kb+PWq4S7HeFRFRF0kyFvR5m95eKg8k0uJhdQTZJwwlMLmdJks1TvLq6pOHlNLm0y+9vqV3t/1unTY01ikISTVd/cWXHDzKUbWM/s+/eSLMvhiv0CNANApQqtFY7KdAvhvjsDwAAAP//AwDJ6v6llgcAAA==
84
+ http_version:
85
+ recorded_at: Tue, 20 Aug 2019 20:35:28 GMT
86
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,82 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.sandbox.braintreegateway.com/merchants/b/customers
6
+ body:
7
+ encoding: UTF-8
8
+ string: |
9
+ <?xml version="1.0" encoding="UTF-8"?>
10
+ <customer>
11
+ <first-name>Ben</first-name>
12
+ <last-name>Crouse</last-name>
13
+ <email nil="true"/>
14
+ <phone nil="true"/>
15
+ <id nil="true"/>
16
+ <credit-card>
17
+ <cardholder-name>Ben Crouse</cardholder-name>
18
+ <number>4111111111111111</number>
19
+ <cvv>999</cvv>
20
+ <expiration-month>01</expiration-month>
21
+ <expiration-year>2018</expiration-year>
22
+ <token nil="true"/>
23
+ <options>
24
+ </options>
25
+ </credit-card>
26
+ </customer>
27
+ headers:
28
+ Accept-Encoding:
29
+ - gzip
30
+ Accept:
31
+ - application/xml
32
+ User-Agent:
33
+ - Braintree Ruby Gem 2.78.0 (ActiveMerchant 1.72.0)
34
+ X-Apiversion:
35
+ - '4'
36
+ Authorization:
37
+ - Basic dzN2NmQ5eXRnajRqNG56ODplYjFmODliZTlmMzYzZjYxZmZmM2Y5MDI0NDQ1NmViMg==
38
+ Content-Type:
39
+ - application/xml
40
+ response:
41
+ status:
42
+ code: 201
43
+ message: Created
44
+ headers:
45
+ Date:
46
+ - Thu, 21 Sep 2017 20:31:03 GMT
47
+ Content-Type:
48
+ - application/xml; charset=utf-8
49
+ Transfer-Encoding:
50
+ - chunked
51
+ X-Frame-Options:
52
+ - SAMEORIGIN
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
+ - nrkvc7nn7kyfbtm6
62
+ Vary:
63
+ - Accept-Encoding
64
+ Content-Encoding:
65
+ - gzip
66
+ Etag:
67
+ - W/"e7de1b63ea4edbea13ef72c1c6ff90ff"
68
+ Cache-Control:
69
+ - max-age=0, private, must-revalidate
70
+ X-Request-Id:
71
+ - 808b4f10-d5b5-4351-bd09-39b0d25f6c94
72
+ X-Runtime:
73
+ - '0.441587'
74
+ Strict-Transport-Security:
75
+ - max-age=31536000; includeSubDomains
76
+ body:
77
+ encoding: ASCII-8BIT
78
+ string: !binary |-
79
+ H4sIAIchxFkAA6RUy27bMBC85ysM3WlJseNHIDNAC/QHmvTQS7ASVxZhilRIyrby9SVl6+EoORTxyTszu1pyh5s8nUsxO6I2XMldEM+jYIYyU4zL/S54ef5FNsETvUuy2lhVoqZ3s1nCGY2jTbxdPcSrJHSRBx2ZFSAtcfHbSaf5Umr2XjTbxbtOwjHr1TnXxhIJJdIfKJNwFHtaQBf91Ko2mIQD4vlMlRXIZia52AVW1xiELY4lcDFBq0JJnKA5nCfYCVPD7VSbaQSLjICd2abCXcBcaHmJAb2P4jWJtuQ+fr6PHhfxY7T4m4RDQptfV+z/8oeEy/fb6yc5R8FM3xLjlmSgmbkWBa2hCTx7y18Qh6Vc0mXsf0no/3e4FxFfg/7hBlz3fTxWFEow1P3QZt1oPnJ9jir92DkI+iIPUp3cnEfYIKul1Q1ROeHG1CAzHOunZJ/4vaFcalx9TW49PYYnUqEysO650JffI2WPdnqGKbfDSS7hQOZQi67xVCmBIAPqLeelLTmIa+2mRTTua+EPMCr6kelS8Fxx3fZDSiVtQSM38gn4ibpB0P76NjfyFr1RI/vYew7Cu+HK9uoCQdjCeWQ01RHWyXgJeyS1FrSwtjKPYQjGoDXzVAN3FkDcuwOeoJk7C4UVNCVK+1qiLRR7FWqvwqOz7ryS+yeUR66V9IKdAclSdXZbqq/ff9H5yW05koI8DK3doJ20XT5Lenk416DjXCtaiZHFO6AXaKyAj4bWAYNAsTprV+NI02OdzNSpyTSv/EBuX3zYa6w6oKTbzDalG+Al6rha8rcaiazLtDW2ux7uFoqm0WIZPWzWkC+yeAGL1SZN822G6/WKxatl6p7Dl6l97e/tt7bGEWWpiGGHL4zV86MM7dq4PLtPb6R98uMteAOYFgHGNDqrTQoMb5ve/QMAAP//AwA40i8nJwcAAA==
80
+ http_version:
81
+ recorded_at: Thu, 21 Sep 2017 20:31:03 GMT
82
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,60 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://api.sandbox.braintreegateway.com/merchants/b/transactions/53433/void
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip
12
+ Accept:
13
+ - application/xml
14
+ User-Agent:
15
+ - Braintree Ruby Gem 2.78.0 (ActiveMerchant 1.72.0)
16
+ X-Apiversion:
17
+ - '4'
18
+ Authorization:
19
+ - Basic dzN2NmQ5eXRnajRqNG56ODplYjFmODliZTlmMzYzZjYxZmZmM2Y5MDI0NDQ1NmViMg==
20
+ Content-Type:
21
+ - application/xml
22
+ response:
23
+ status:
24
+ code: 404
25
+ message: Not Found
26
+ headers:
27
+ Date:
28
+ - Thu, 21 Sep 2017 20:31:08 GMT
29
+ Content-Type:
30
+ - application/xml; charset=utf-8
31
+ Transfer-Encoding:
32
+ - chunked
33
+ X-Frame-Options:
34
+ - SAMEORIGIN
35
+ - SAMEORIGIN
36
+ X-Xss-Protection:
37
+ - 1; mode=block
38
+ X-Content-Type-Options:
39
+ - nosniff
40
+ X-Authentication:
41
+ - basic_auth
42
+ Vary:
43
+ - Accept-Encoding
44
+ Content-Encoding:
45
+ - gzip
46
+ Cache-Control:
47
+ - no-cache
48
+ X-Request-Id:
49
+ - 6e78b7c2-bdc2-4dfa-bb1f-d4b26fb23467
50
+ X-Runtime:
51
+ - '0.022457'
52
+ Strict-Transport-Security:
53
+ - max-age=31536000; includeSubDomains
54
+ body:
55
+ encoding: ASCII-8BIT
56
+ string: !binary |-
57
+ H4sIAIwhxFkAAwAAAP//AwAAAAAAAAAAAA==
58
+ http_version:
59
+ recorded_at: Thu, 21 Sep 2017 20:31:08 GMT
60
+ recorded_with: VCR 2.9.3