solidus_braintree 1.2.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +47 -0
- data/.gem_release.yml +5 -0
- data/.github/stale.yml +1 -0
- data/.github_changelog_generator +2 -0
- data/.gitignore +20 -10
- data/.rspec +1 -1
- data/.rubocop.yml +79 -0
- data/CHANGELOG.md +178 -18
- data/Gemfile +35 -17
- data/LICENSE +26 -0
- data/README.md +389 -24
- data/Rakefile +4 -19
- data/app/assets/config/solidus_braintree_manifest.js +1 -0
- data/app/assets/images/solidus_braintree/venmo/venmo_active_blue_button_280x48.svg +19 -0
- data/app/assets/images/solidus_braintree/venmo/venmo_active_blue_button_320x48.svg +19 -0
- data/app/assets/images/solidus_braintree/venmo/venmo_active_blue_button_375x48.svg +19 -0
- data/app/assets/images/solidus_braintree/venmo/venmo_active_white_button_280x48.svg +19 -0
- data/app/assets/images/solidus_braintree/venmo/venmo_active_white_button_320x48.svg +19 -0
- data/app/assets/images/solidus_braintree/venmo/venmo_active_white_button_375x48.svg +19 -0
- data/app/assets/images/solidus_braintree/venmo/venmo_blue_acceptance_mark.svg +15 -0
- data/app/assets/images/solidus_braintree/venmo/venmo_blue_button_280x48.svg +19 -0
- data/app/assets/images/solidus_braintree/venmo/venmo_blue_button_320x48.svg +19 -0
- data/app/assets/images/solidus_braintree/venmo/venmo_blue_button_375x48.svg +19 -0
- data/app/assets/images/solidus_braintree/venmo/venmo_blue_logo.svg +18 -0
- data/app/assets/images/solidus_braintree/venmo/venmo_white_acceptance_mark.svg +20 -0
- data/app/assets/images/solidus_braintree/venmo/venmo_white_button_280x48.svg +19 -0
- data/app/assets/images/solidus_braintree/venmo/venmo_white_button_320x48.svg +19 -0
- data/app/assets/images/solidus_braintree/venmo/venmo_white_button_375x48.svg +19 -0
- data/app/assets/images/solidus_braintree/venmo/venmo_white_logo.svg +18 -0
- data/app/assets/javascripts/solidus_braintree/apple_pay_button.js +179 -0
- data/app/assets/javascripts/solidus_braintree/checkout.js +108 -0
- data/app/assets/javascripts/solidus_braintree/client.js +239 -0
- data/app/assets/javascripts/solidus_braintree/constants.js +89 -0
- data/app/assets/javascripts/solidus_braintree/frontend.js +14 -0
- data/app/assets/javascripts/solidus_braintree/hosted_form.js +46 -0
- data/app/assets/javascripts/solidus_braintree/paypal_button.js +178 -0
- data/app/assets/javascripts/solidus_braintree/paypal_messaging.js +22 -0
- data/app/assets/javascripts/solidus_braintree/promise.js +20 -0
- data/app/assets/javascripts/solidus_braintree/venmo_button.js +86 -0
- data/app/assets/javascripts/spree/backend/solidus_braintree.js +96 -0
- data/app/assets/javascripts/spree/frontend/paypal_button.js +34 -0
- data/app/assets/javascripts/spree/frontend/solidus_braintree.js +1 -0
- data/app/assets/stylesheets/spree/backend/solidus_braintree.scss +28 -0
- data/app/assets/stylesheets/spree/frontend/solidus_braintree.scss +51 -0
- data/app/decorators/controllers/solidus_braintree/admin_payments_controller_decorator.rb +11 -0
- data/app/decorators/controllers/solidus_braintree/checkout_controller_decorator.rb +11 -0
- data/app/decorators/controllers/solidus_braintree/client_tokens_controller.rb +41 -0
- data/app/decorators/controllers/solidus_braintree/orders_controller_decorator.rb +11 -0
- data/app/decorators/models/solidus_braintree/spree/store_decorator.rb +20 -0
- data/app/decorators/models/solidus_braintree/spree/user_decorator.rb +13 -0
- data/app/helpers/solidus_braintree/braintree_admin_helper.rb +23 -0
- data/app/helpers/solidus_braintree/braintree_checkout_helper.rb +60 -0
- data/app/models/application_record.rb +5 -0
- data/app/models/solidus_braintree/address.rb +64 -0
- data/app/models/solidus_braintree/avs_result.rb +69 -0
- data/app/models/solidus_braintree/configuration.rb +39 -0
- data/app/models/solidus_braintree/customer.rb +8 -0
- data/app/models/solidus_braintree/gateway.rb +433 -0
- data/app/models/solidus_braintree/response.rb +80 -0
- data/app/models/solidus_braintree/source.rb +135 -0
- data/app/models/solidus_braintree/transaction.rb +31 -0
- data/app/models/solidus_braintree/transaction_address.rb +88 -0
- data/app/models/solidus_braintree/transaction_import.rb +98 -0
- data/app/overrides/spree/payments/payment/add_paypal_funding_source_to_payment.rb +9 -0
- data/app/views/spree/api/payments/source_views/_braintree.json.jbuilder +3 -0
- data/app/views/spree/checkout/existing_payment/_braintree.html.erb +10 -0
- data/app/views/spree/shared/_apple_pay_button.html.erb +27 -0
- data/app/views/spree/shared/_braintree_errors.html.erb +16 -0
- data/app/views/spree/shared/_braintree_head_scripts.html.erb +26 -0
- data/app/views/spree/shared/_braintree_hosted_fields.html.erb +43 -0
- data/app/views/spree/shared/_paypal_cart_button.html.erb +38 -0
- data/app/views/spree/shared/_paypal_messaging.html.erb +13 -0
- data/app/views/spree/shared/_venmo_button.html.erb +33 -0
- data/bin/console +4 -1
- data/bin/rails +5 -5
- data/bin/rails-engine +13 -0
- data/bin/rails-sandbox +16 -0
- data/bin/rake +7 -0
- data/bin/sandbox +103 -0
- data/bin/setup +5 -4
- data/config/locales/en.yml +94 -2
- data/config/locales/it.yml +56 -0
- data/config/routes.rb +12 -3
- data/db/migrate/20160830061749_create_solidus_paypal_braintree_sources.rb +16 -0
- data/db/migrate/20160906201711_create_solidus_paypal_braintree_customers.rb +13 -0
- data/db/migrate/20161114231422_create_solidus_paypal_braintree_configurations.rb +11 -0
- data/db/migrate/20161125172005_add_braintree_configuration_to_stores.rb +7 -0
- data/db/migrate/20170203191030_add_credit_card_to_braintree_configuration.rb +6 -0
- data/db/migrate/20170505193712_add_null_constraint_to_sources.rb +38 -0
- data/db/migrate/20170508085402_add_not_null_constraint_to_sources_payment_type.rb +14 -0
- data/db/migrate/20190705115327_add_paypal_button_preferences_to_braintree_configurations.rb +5 -0
- data/db/migrate/20190911141712_add_3d_secure_to_braintree_configuration.rb +5 -0
- data/db/migrate/20211222170950_add_paypal_funding_source_to_solidus_paypal_braintree_sources.rb +5 -0
- data/db/migrate/20220104150301_add_venmo_to_braintree_configuration.rb +5 -0
- data/db/migrate/20230109080950_rename_solidus_paypal_braintree_source_type.rb +31 -0
- data/lib/controllers/backend/solidus_braintree/configurations_controller.rb +48 -0
- data/lib/controllers/frontend/solidus_braintree/checkouts_controller.rb +31 -0
- data/lib/controllers/frontend/solidus_braintree/transactions_controller.rb +67 -0
- data/lib/generators/solidus_braintree/install/install_generator.rb +54 -18
- data/lib/generators/solidus_braintree/install/templates/initializer.rb +6 -0
- data/lib/solidus_braintree/country_mapper.rb +37 -0
- data/lib/solidus_braintree/engine.rb +55 -10
- data/lib/solidus_braintree/extension_configuration.rb +23 -0
- data/lib/solidus_braintree/request_protection.rb +21 -0
- data/lib/solidus_braintree/testing_support/factories.rb +53 -0
- data/lib/solidus_braintree/version.rb +3 -1
- data/lib/solidus_braintree.rb +14 -2
- data/lib/solidus_paypal_braintree.rb +6 -0
- data/lib/views/backend/solidus_braintree/configurations/list.html.erb +63 -0
- data/lib/views/backend/spree/admin/payments/source_forms/_braintree.html.erb +16 -0
- data/lib/views/backend/spree/admin/payments/source_views/_braintree.html.erb +39 -0
- data/lib/views/backend/spree/admin/shared/preference_fields/_preference_select.html.erb +13 -0
- data/lib/views/backend_v1.2/spree/admin/payments/source_forms/_braintree.html.erb +16 -0
- data/lib/views/backend_v2.4/spree/admin/shared/preference_fields/_hash.html.erb +12 -0
- data/lib/views/frontend/solidus_braintree/payments/_payment.html.erb +12 -0
- data/lib/views/frontend/spree/checkout/payment/_braintree.html.erb +23 -0
- data/lib/views/frontend/spree/shared/_paypal_checkout_button.html.erb +32 -0
- data/solidus_braintree.gemspec +39 -38
- data/spec/controllers/solidus_braintree/checkouts_controller_spec.rb +99 -0
- data/spec/controllers/solidus_braintree/client_tokens_controller_spec.rb +55 -0
- data/spec/controllers/solidus_braintree/configurations_controller_spec.rb +73 -0
- data/spec/controllers/solidus_braintree/transactions_controller_spec.rb +183 -0
- data/spec/features/backend/configuration_spec.rb +23 -0
- data/spec/features/backend/new_payment_spec.rb +137 -0
- data/spec/features/frontend/braintree_credit_card_checkout_spec.rb +191 -0
- data/spec/features/frontend/paypal_checkout_spec.rb +166 -0
- data/spec/features/frontend/venmo_checkout_spec.rb +194 -0
- data/spec/fixtures/cassettes/admin/invalid_credit_card.yml +63 -0
- data/spec/fixtures/cassettes/admin/resubmit_credit_card.yml +352 -0
- data/spec/fixtures/cassettes/admin/valid_credit_card.yml +412 -0
- data/spec/fixtures/cassettes/braintree/create_profile.yml +71 -0
- data/spec/fixtures/cassettes/braintree/generate_token.yml +63 -0
- data/spec/fixtures/cassettes/braintree/token.yml +63 -0
- data/spec/fixtures/cassettes/checkout/invalid_credit_card.yml +63 -0
- data/spec/fixtures/cassettes/checkout/resubmit_credit_card.yml +216 -0
- data/spec/fixtures/cassettes/checkout/update.yml +71 -0
- data/spec/fixtures/cassettes/checkout/valid_credit_card.yml +171 -0
- data/spec/fixtures/cassettes/checkout/valid_venmo_transaction.yml +599 -0
- data/spec/fixtures/cassettes/gateway/authorize/credit_card/address.yml +86 -0
- data/spec/fixtures/cassettes/gateway/authorize/merchant_account/EUR.yml +154 -0
- data/spec/fixtures/cassettes/gateway/authorize/paypal/EUR.yml +90 -0
- data/spec/fixtures/cassettes/gateway/authorize/paypal/address.yml +90 -0
- data/spec/fixtures/cassettes/gateway/authorize.yml +86 -0
- data/spec/fixtures/cassettes/gateway/authorized_transaction.yml +73 -0
- data/spec/fixtures/cassettes/gateway/cancel/missing.yml +63 -0
- data/spec/fixtures/cassettes/gateway/cancel/refunds.yml +272 -0
- data/spec/fixtures/cassettes/gateway/cancel/void.yml +201 -0
- data/spec/fixtures/cassettes/gateway/capture.yml +141 -0
- data/spec/fixtures/cassettes/gateway/complete.yml +157 -0
- data/spec/fixtures/cassettes/gateway/credit.yml +208 -0
- data/spec/fixtures/cassettes/gateway/customer.yml +79 -0
- data/spec/fixtures/cassettes/gateway/purchase.yml +87 -0
- data/spec/fixtures/cassettes/gateway/settled_transaction.yml +140 -0
- data/spec/fixtures/cassettes/gateway/void.yml +137 -0
- data/spec/fixtures/cassettes/source/bin.yml +295 -0
- data/spec/fixtures/cassettes/source/card_type.yml +267 -0
- data/spec/fixtures/cassettes/source/last4.yml +267 -0
- data/spec/fixtures/cassettes/transaction/import/valid/capture.yml +224 -0
- data/spec/fixtures/cassettes/transaction/import/valid.yml +71 -0
- data/spec/fixtures/views/spree/orders/edit.html.erb +50 -0
- data/spec/helpers/solidus_braintree/braintree_admin_helper_spec.rb +17 -0
- data/spec/helpers/solidus_braintree/braintree_checkout_helper_spec.rb +70 -0
- data/spec/models/solidus_braintree/address_spec.rb +71 -0
- data/spec/models/solidus_braintree/avs_result_spec.rb +317 -0
- data/spec/models/solidus_braintree/gateway_spec.rb +742 -0
- data/spec/models/solidus_braintree/response_spec.rb +280 -0
- data/spec/models/solidus_braintree/source_spec.rb +539 -0
- data/spec/models/solidus_braintree/transaction_address_spec.rb +235 -0
- data/spec/models/solidus_braintree/transaction_import_spec.rb +302 -0
- data/spec/models/solidus_braintree/transaction_spec.rb +86 -0
- data/spec/models/spree/store_spec.rb +14 -0
- data/spec/requests/spree/api/orders_controller_spec.rb +36 -0
- data/spec/spec_helper.rb +32 -0
- data/spec/support/capybara.rb +7 -0
- data/spec/support/gateway_helpers.rb +29 -0
- data/spec/support/order_ready_for_payment.rb +37 -0
- data/spec/support/vcr.rb +42 -0
- data/spec/support/views.rb +1 -0
- metadata +281 -228
- data/.travis.yml +0 -41
- data/LICENSE.txt +0 -21
- data/app/controllers/spree/api/braintree_client_token_controller.rb +0 -13
- data/app/helpers/braintree_view_helpers.rb +0 -20
- data/app/models/concerns/solidus_braintree/add_name_validation_concern.rb +0 -8
- data/app/models/concerns/solidus_braintree/inject_device_data_concern.rb +0 -18
- data/app/models/concerns/solidus_braintree/payment_braintree_nonce_concern.rb +0 -8
- data/app/models/concerns/solidus_braintree/permitted_attributes_concern.rb +0 -11
- data/app/models/concerns/solidus_braintree/skip_require_card_numbers_concern.rb +0 -14
- data/app/models/concerns/solidus_braintree/use_data_field_concern.rb +0 -23
- data/app/models/credit_card_decorator.rb +0 -3
- data/app/models/payment_decorator.rb +0 -2
- data/app/models/permitted_attributes_decorator.rb +0 -1
- data/app/models/solidus/gateway/braintree_gateway.rb +0 -306
- data/app/overrides/spree/checkout/_confirm/braintree_security.html.erb.deface +0 -9
- data/app/views/spree/admin/payments/source_forms/_braintree.html.erb +0 -38
- data/app/views/spree/admin/payments/source_views/_braintree.html.erb +0 -30
- data/app/views/spree/checkout/payment/_braintree.html.erb +0 -55
- data/app/views/spree/checkout/payment/_braintree_initialization.html.erb +0 -12
- data/config/initializers/braintree.rb +0 -1
- data/db/migrate/20150910170527_add_data_to_credit_card.rb +0 -5
- data/db/migrate/20160426221931_add_braintree_device_data_to_order.rb +0 -5
- data/lib/assets/javascripts/spree/backend/braintree/solidus_braintree.js +0 -59
- data/lib/assets/javascripts/spree/frontend/braintree/solidus_braintree.js +0 -144
- data/lib/assets/javascripts/vendor/braintree.js +0 -8
- data/lib/assets/stylesheets/spree/frontend/solidus_braintree.scss +0 -26
@@ -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+hLmt31bZCqoj3Z0HLZRovurA5soB6XeTib6mPVomlntK48ynvUBA7Xcgxyjg5swYj3KifIZeY+tKOGoKCxowZJ3XQCJM18pvU9DGsm5Pg6lvm0/WOQawmvkS6awPXuSVcPVH/OIbMPAe+F4WRQBmNB0ZlmMbOT6LLgLpoz5iJpOu4jHc4jbyOKdKkzSUOI7qlbvcMuVDROJxqc7szFMRztgFV3RQv1cSB9RrH5jEbsciiryPT5hgwz42YCnZGd05GjK+1o4Z5qBcUo9xQx4Bd6ix2ekZzM3DVz/xR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QDWrLoezwf4buRD//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/x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lZ93rhceuY8TcCT7XKfDuU8qmUtbOxlOu9j/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+/AmiAupeAYivBkMAoJDfzI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V/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; includeSubDomains
|
210
|
+
body:
|
211
|
+
encoding: ASCII-8BIT
|
212
|
+
string: !binary |-
|
213
|
+
H4sIAICne10AA6xYW3ObOBR+76/w+J0AvqSkQ+hmN9N0O0062zZt0peOQMKoAYlKwo7z6/eIO0Y42Zn1kzk3dI7O5Tv4bx+zdLYlQlLOzufuiTOfERZxTNnmfH779Z3lzd8Gr3wlEJMoUiAVvJrNfIqD08RRq99u4tvwoGlSIVXIABUq4YI+EezbNUlz1T4ngUQp8e3yr6ZFhRDwtr1FJbfgpSS4/XLp22OyFkYZL5gKFs6J4/h2/aQZGRFRgpiyUBRpogXnkYpkIU+Vb5u45WmL0DLwZoym53MlCjK3K+sIbIkXiXKBQRLsfz6rfpa7WF78+Zdvt5zSa0GQIthCaqYjcT7H8K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apxZk/qkNOOAg2nYdp1oj1afV60FzztSTSEOnxSFtAMYZixh05mQB02Vx5bmotYRPpvHTObcHFcROW20J2gox0Czujq3Tr8/q3AV26Kr5Ltj3dnv+5dbxV9vXn6dCUPcKeu83qN0JlryI6C0d8FqUsVtOBqKTR7EaB4vX69OovXZ7Eb46WHT6M4coEQr9ZeGEOuT6pWlreEZdyS+GGilFt+DZCHpVwveVZCIe/FfgBJ2nFeShAwVGeIrn9YT4CR5S9cWVr51sLR7bIK6cSCWAVUQgTa0vqj2Q91cUHIZBMefdQekJIcWicJUE7hSGN65bB96HFLqaNUNeEUmYFZEcpI0HwSuPX4bcssUamVA1Dg2AJsZOl4GtLoQBKOJZRRFo588B49iSwYOgbUiaksk9fII5UV3uTbRPub2uygYY3PNjQKiE5/IQC/JlK45VfDCNZ2RtLgC08pLqAUG0IFi8VWj9CYkKnhp9/Nd1Z1pSMuxCIshKyQNSYKNtxmKxuyzBfUg+Xm1w9lRl9GXihOHrXTMA+E+Rh6RYF0BTBpMlhEkQF1w7VM+K49zwu9901vLNV8RfgXDFCtb5Kth55FGQDJolqJ9KCvetJP3ZN8e0poCMV6QRkitj4amxR63laJ356z1YI8RtSOi4eDt9zd+baZY9QprUlokSncaMWctUBRMw3W2hOoBLqgBR1BlwqB4MXcuA5KKxawZxxZldqtcap+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,171 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.sandbox.braintreegateway.com/merchants/652zwb86tqk9v5wz/customers
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: |
|
9
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
10
|
+
<customer>
|
11
|
+
<email>solidus@example.com</email>
|
12
|
+
<payment-method-nonce>fake-valid-nonce</payment-method-nonce>
|
13
|
+
</customer>
|
14
|
+
headers:
|
15
|
+
Accept-Encoding:
|
16
|
+
- gzip
|
17
|
+
Accept:
|
18
|
+
- application/xml
|
19
|
+
User-Agent:
|
20
|
+
- Braintree Ruby Gem 3.4.0
|
21
|
+
X-Apiversion:
|
22
|
+
- '6'
|
23
|
+
Content-Type:
|
24
|
+
- application/xml
|
25
|
+
Authorization:
|
26
|
+
- Basic bnk4c2MzYjY0OHE3eDVoNjpmM2VjZWNlNTI5MTIwMjAzMGU1MDQwMWY1MGMwZWNhNw==
|
27
|
+
response:
|
28
|
+
status:
|
29
|
+
code: 201
|
30
|
+
message: ''
|
31
|
+
headers:
|
32
|
+
Date:
|
33
|
+
- Fri, 28 Oct 2022 11:48:35 GMT
|
34
|
+
Content-Type:
|
35
|
+
- application/xml; charset=utf-8
|
36
|
+
X-Frame-Options:
|
37
|
+
- SAMEORIGIN
|
38
|
+
X-Xss-Protection:
|
39
|
+
- 1; mode=block
|
40
|
+
X-Content-Type-Options:
|
41
|
+
- nosniff
|
42
|
+
X-Download-Options:
|
43
|
+
- noopen
|
44
|
+
X-Permitted-Cross-Domain-Policies:
|
45
|
+
- none
|
46
|
+
Referrer-Policy:
|
47
|
+
- strict-origin-when-cross-origin
|
48
|
+
X-Authentication:
|
49
|
+
- basic_auth
|
50
|
+
X-User:
|
51
|
+
- 4b9yb8scv4785hg6
|
52
|
+
Vary:
|
53
|
+
- Accept-Encoding, Origin
|
54
|
+
Content-Encoding:
|
55
|
+
- gzip
|
56
|
+
Etag:
|
57
|
+
- W/"fc78821a32ceefb0bb66822d19642e82"
|
58
|
+
Cache-Control:
|
59
|
+
- max-age=0, private, must-revalidate
|
60
|
+
X-Runtime:
|
61
|
+
- '0.359927'
|
62
|
+
X-Request-Id:
|
63
|
+
- 2bde7385-30c6-4e06-b694-ea49ffdab2ff
|
64
|
+
Content-Security-Policy:
|
65
|
+
- frame-ancestors 'self'
|
66
|
+
X-Broxyid:
|
67
|
+
- 2bde7385-30c6-4e06-b694-ea49ffdab2ff
|
68
|
+
Strict-Transport-Security:
|
69
|
+
- max-age=31536000; includeSubDomains
|
70
|
+
Paypal-Debug-Id:
|
71
|
+
- 83f2d6168bcf4
|
72
|
+
Transfer-Encoding:
|
73
|
+
- chunked
|
74
|
+
body:
|
75
|
+
encoding: ASCII-8BIT
|
76
|
+
string: !binary |-
|
77
|
+
H4sIAJPBW2MAA6xWy3KjOhDd5ytc7AkG7AlOYXIXU0nVVCWbO8ncyWZKoMbWWEiMJGyTr78S5uUHjlOZHTp9Wmpap1sd3m0zOlqDkISzueVej60RsIRjwhZz6/n7vR1Yd9FVmBRS8QxEdDUahQRHX4Kb8exm4o9DR68MqI3JEjFlG+vUe9vEwRf1ZzVbTzdvodO3GnZKhFQ2QxmMGKFzS4kCLKcyUTRkSXiWI1Ye4ZAhQiPJKcGF/Ae2KMspXGt26OxMhpQvOTveMkXbI2wDsSTqxPECkAJsIzVSZQ5zC+ulIhlYkTf2PNsd217w3XVvJ8GtP30Nnc6h8i9y/DH/zmF3fnUHdkqAYrkLaUF5jKhJ6k//5Q0/zNTrf9/Sp98L//Hryn/6+rgJnY5T/wQmyk6QwLIOAwmBSstY9+07RGMxoVTrwUYYC5CywXdKKFkjgRprpGLvy6QPd+RhHdSEQTU0p53WRG2VSgCoJvABEmwVMGzyfJZGeYIoUUNHCVjoEhow5lwqfQe6riCaTdzxTej0of7vFEyJsoJtRPMl8gZ//JDpX8Jkhb4DkrxDPZPwqo7MNjGIoV0+Vyj1Lp8sl2oPZ0C6WtIsmoxdLwgMh7W40b1tjoteiEQ6snbdZyw5xVrJQ1kyojQNjyAaPbMV4xtdIz2so+2yzVObSFkglkCff2xsHT+f4A+UaUe9pN2cIB/tY0pJ6WqJnv/tObRow8cQE9VlZLfsjCkqaJOAmHMKiFmRuQlDrYwduRD6lm1dowU1iehtemhpXGCbE1HFY2ecqWXkevo5OQRPsEtAwlyDv0ev0D024MPYU0Ql1F69SLpEJg/30/jHS4EfXIofluvX+9nvn+6sfPRkGf/4xl4P233lvwRE1VLrtqeuHtbQSIYWYBeCRkulcnnrOEhKUPI6Fogw00gXOkEbVJqX1clRmQFTvzJQS45/Ub7gzlqXzHXOFnfA1kRwZghziRiO+VY/Eu3+7Yla16Y4Y8RWXWh7aEOtnoFJ5AaBGzr1orHpUASnvVJrgJYgIEc6IU9c2+rvzsZxkVRzSeffYQ1NFrFMBMnNXe6/m13VK74CFgl/5WXxYhE6u3VjLRj5UzSNU2+tc0P0U66lgv3pdIpT8HEwvYGJG7hp4qVwo6FkPJnpxjbk2u79F1rlGljGbYlXA6ps7T0PocPY1exQToi0GagNFyu7Sgd5G5T9KWo9lDgHU8keUDX1sG7wcHKoOez+R2PLR7rh+ZHl/MBybly5YFi5aFQ5O6icGVMuHFIuHVEuHVAuHk/eHU7eHU3+yrv56VoLnZ4c2wXoZae36Op/AAAA//8DAOjCcKiZDQAA
|
78
|
+
recorded_at: Fri, 28 Oct 2022 11:48:35 GMT
|
79
|
+
- request:
|
80
|
+
method: post
|
81
|
+
uri: https://api.sandbox.braintreegateway.com/merchants/652zwb86tqk9v5wz/transactions
|
82
|
+
body:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: |
|
85
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
86
|
+
<transaction>
|
87
|
+
<amount>20.00</amount>
|
88
|
+
<order-id>R9999999-123ABC</order-id>
|
89
|
+
<channel>Solidus</channel>
|
90
|
+
<options>
|
91
|
+
<store-in-vault-on-success type="boolean">true</store-in-vault-on-success>
|
92
|
+
</options>
|
93
|
+
<payment-method-token>r3k2mbgg</payment-method-token>
|
94
|
+
<billing>
|
95
|
+
<first-name>John</first-name>
|
96
|
+
<last-name>Doe</last-name>
|
97
|
+
<street-address>10 Lovely Street Northwest</street-address>
|
98
|
+
<locality>Herndon</locality>
|
99
|
+
<postal-code>21088-0255</postal-code>
|
100
|
+
<region>AL</region>
|
101
|
+
<country-code-alpha2>US</country-code-alpha2>
|
102
|
+
</billing>
|
103
|
+
<customer-id>687097430</customer-id>
|
104
|
+
<type>sale</type>
|
105
|
+
</transaction>
|
106
|
+
headers:
|
107
|
+
Accept-Encoding:
|
108
|
+
- gzip
|
109
|
+
Accept:
|
110
|
+
- application/xml
|
111
|
+
User-Agent:
|
112
|
+
- Braintree Ruby Gem 3.4.0
|
113
|
+
X-Apiversion:
|
114
|
+
- '6'
|
115
|
+
Content-Type:
|
116
|
+
- application/xml
|
117
|
+
Authorization:
|
118
|
+
- Basic bnk4c2MzYjY0OHE3eDVoNjpmM2VjZWNlNTI5MTIwMjAzMGU1MDQwMWY1MGMwZWNhNw==
|
119
|
+
response:
|
120
|
+
status:
|
121
|
+
code: 201
|
122
|
+
message: ''
|
123
|
+
headers:
|
124
|
+
Date:
|
125
|
+
- Fri, 28 Oct 2022 11:48:36 GMT
|
126
|
+
Content-Type:
|
127
|
+
- application/xml; charset=utf-8
|
128
|
+
X-Frame-Options:
|
129
|
+
- SAMEORIGIN
|
130
|
+
X-Xss-Protection:
|
131
|
+
- 1; mode=block
|
132
|
+
X-Content-Type-Options:
|
133
|
+
- nosniff
|
134
|
+
X-Download-Options:
|
135
|
+
- noopen
|
136
|
+
X-Permitted-Cross-Domain-Policies:
|
137
|
+
- none
|
138
|
+
Referrer-Policy:
|
139
|
+
- strict-origin-when-cross-origin
|
140
|
+
X-Authentication:
|
141
|
+
- basic_auth
|
142
|
+
X-User:
|
143
|
+
- 4b9yb8scv4785hg6
|
144
|
+
Vary:
|
145
|
+
- Accept-Encoding, Origin
|
146
|
+
Content-Encoding:
|
147
|
+
- gzip
|
148
|
+
Etag:
|
149
|
+
- W/"b235108105829caa5ec570cef992b0d5"
|
150
|
+
Cache-Control:
|
151
|
+
- max-age=0, private, must-revalidate
|
152
|
+
X-Runtime:
|
153
|
+
- '0.458590'
|
154
|
+
X-Request-Id:
|
155
|
+
- 75cd5459-a138-42d3-a41b-85fcd3baf633
|
156
|
+
Content-Security-Policy:
|
157
|
+
- frame-ancestors 'self'
|
158
|
+
X-Broxyid:
|
159
|
+
- 75cd5459-a138-42d3-a41b-85fcd3baf633
|
160
|
+
Strict-Transport-Security:
|
161
|
+
- max-age=31536000; includeSubDomains
|
162
|
+
Paypal-Debug-Id:
|
163
|
+
- 6370d1ef7ffe4
|
164
|
+
Transfer-Encoding:
|
165
|
+
- chunked
|
166
|
+
body:
|
167
|
+
encoding: ASCII-8BIT
|
168
|
+
string: !binary |-
|
169
|
+
H4sIAJTBW2MAA6xZ23LbNhB9z1do9E5T1CWmMzRTt27SZmrPNGmSJi8ZkIRExCTAAqBs5eu7IMCbCFJKGz+ZuwcguNjL2VXw8inPZnvMBWH0eu5dLOYzTGOWELq7nr//65Xjz1+GzwLJERUoloAKn81mAUnCTbGiib/wAxcelExIJEsRolKmjJNvOAlcI1JaeShwKFCGA7f6V8niknN428EhgjnwUhz++v5t4A7FCoxyVlIZLhcXi0XgmqdW4XD8T4mFxEkf0pErcI55nCIQoziu1HD4TyxjgWvTVJ9VRo5FN6Mku55LXuK5q3dG8BJ+FpTxBJCw/9sr/ed4y9XNz78EbqOpzMMxgnM7SM6Uya7nCTxKkuM5fOJy6XgLZ+n/5Xkv1v6L1fPPYLhmQbW+LJLvW98uMNcjJIPvUQ/6zp/7l4ury/VqUV86iLeEC+lQlOPj7wRlhsZ1McsLRA8WDc4RyULBMpKU4if8hPIiwxeAD1yt0rBHHAkibVsXKaM2+RY9WaS7jEUoqzxh9eFb8vpKfv77zfb+6251d/uwur+9ewzcFqMs43ZNE0QkyyBeWjMdqNU+4RuWgqYjODJS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