spree_braintree_vzero 3.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.codeclimate.yml +15 -0
- data/.gitignore +19 -0
- data/.rspec +1 -0
- data/.travis.yml +63 -0
- data/Appraisals +45 -0
- data/CONTRIBUTING.md +28 -0
- data/Gemfile +14 -0
- data/LICENSE +26 -0
- data/README.md +83 -0
- data/Rakefile +21 -0
- data/app/assets/images/credit_cards/icons/jcb.png +0 -0
- data/app/assets/javascripts/spree/backend/payments.js +19 -0
- data/app/assets/javascripts/spree/backend/spree_braintree_vzero.js +81 -0
- data/app/assets/javascripts/spree/frontend/spree_braintree_vzero.js +68 -0
- data/app/assets/stylesheets/spree/backend/spree_braintree_vzero.css +5 -0
- data/app/controllers/spree/admin/payments_controller_decorator.rb +43 -0
- data/app/controllers/spree/api/v1/braintree_client_token_controller.rb +31 -0
- data/app/controllers/spree/checkout_controller_decorator.rb +38 -0
- data/app/controllers/spree/orders_controller_decorator.rb +62 -0
- data/app/controllers/spree/user_sessions_controller_decorator.rb +15 -0
- data/app/helpers/spree/admin/decorated_navigation_helper.rb +10 -0
- data/app/helpers/spree/admin/payment_methods_helper.rb +101 -0
- data/app/helpers/spree/braintree_helper.rb +27 -0
- data/app/models/braintree/successful_result_decorator.rb +21 -0
- data/app/models/spree/address_decorator.rb +18 -0
- data/app/models/spree/braintree_checkout.rb +105 -0
- data/app/models/spree/gateway/braintree_vzero_base.rb +168 -0
- data/app/models/spree/gateway/braintree_vzero_base/address.rb +33 -0
- data/app/models/spree/gateway/braintree_vzero_base/braintree_user.rb +25 -0
- data/app/models/spree/gateway/braintree_vzero_base/purchase_data.rb +48 -0
- data/app/models/spree/gateway/braintree_vzero_base/transaction.rb +39 -0
- data/app/models/spree/gateway/braintree_vzero_base/utils.rb +108 -0
- data/app/models/spree/gateway/braintree_vzero_drop_in_ui.rb +24 -0
- data/app/models/spree/gateway/braintree_vzero_hosted_fields.rb +28 -0
- data/app/models/spree/gateway/braintree_vzero_paypal_express.rb +36 -0
- data/app/models/spree/order_decorator.rb +153 -0
- data/app/models/spree/payment_decorator.rb +10 -0
- data/app/models/spree/payment_processing_decorator.rb +61 -0
- data/app/models/spree/preferences/preferable_decorator.rb +54 -0
- data/app/overrides/spree/admin/orders/customer_details/_form.rb +8 -0
- data/app/overrides/spree/admin/payment_methods/_form.rb +10 -0
- data/app/overrides/spree/admin/shared/_order_summary.rb +23 -0
- data/app/overrides/spree/admin/shared/_refunds.rb +13 -0
- data/app/overrides/spree/checkout/_new_user.rb +6 -0
- data/app/overrides/spree/checkout/_payment.rb +20 -0
- data/app/overrides/spree/checkout/registration.rb +6 -0
- data/app/overrides/spree/orders/edit.rb +6 -0
- data/app/overrides/spree/shared/_order_details.rb +13 -0
- data/app/overrides/spree/shared/_payment.rb +28 -0
- data/app/views/spree/admin/payment_methods/_braintree_vzero_form.html.erb +83 -0
- data/app/views/spree/admin/payments/source_forms/_braintree_vzero_dropin_ui.html.erb +1 -0
- data/app/views/spree/admin/payments/source_forms/_braintree_vzero_hosted_fields.html.erb +1 -0
- data/app/views/spree/admin/payments/source_forms/_braintree_vzero_paypal_express.html.erb +1 -0
- data/app/views/spree/admin/payments/source_forms/braintree_vzero/_payments.html.erb +87 -0
- data/app/views/spree/admin/payments/source_views/_braintree_vzero_dropin_ui.html.erb +1 -0
- data/app/views/spree/admin/payments/source_views/_braintree_vzero_hosted_fields.html.erb +1 -0
- data/app/views/spree/admin/payments/source_views/_braintree_vzero_paypal_express.html.erb +1 -0
- data/app/views/spree/admin/payments/source_views/braintree_vzero/_payment.html.erb +17 -0
- data/app/views/spree/braintree_vzero/_paypal_checkout.html.erb +87 -0
- data/app/views/spree/checkout/payment/_braintree_vzero_dropin_ui.html.erb +4 -0
- data/app/views/spree/checkout/payment/_braintree_vzero_hosted_fields.html.erb +4 -0
- data/app/views/spree/checkout/payment/_braintree_vzero_paypal_express.html.erb +4 -0
- data/app/views/spree/checkout/payment/braintree_vzero/_buttons.html.erb +11 -0
- data/app/views/spree/checkout/payment/braintree_vzero/_dropin_on_error_callback.js.erb +3 -0
- data/app/views/spree/checkout/payment/braintree_vzero/_dropin_on_ready_callback.js.erb +1 -0
- data/app/views/spree/checkout/payment/braintree_vzero/_hosted_fields_on_field_event_callback.js.erb +12 -0
- data/app/views/spree/checkout/payment/braintree_vzero/_hosted_fields_styles.js.erb +29 -0
- data/app/views/spree/checkout/payment/braintree_vzero/_payment.html.erb +84 -0
- data/app/views/spree/checkout/payment/braintree_vzero/_three_d_secure.html.erb +218 -0
- data/app/views/spree/shared/braintree_vzero/_dropin.js.erb +70 -0
- data/app/views/spree/shared/braintree_vzero/_hosted.js.erb +66 -0
- data/app/views/spree/shared/braintree_vzero/_paypal.js.erb +39 -0
- data/bin/rails +7 -0
- data/config/initializers/extend_spree_permitted_checkout_attributes.rb +5 -0
- data/config/initializers/prepend_helpers.rb +1 -0
- data/config/locales/en.yml +79 -0
- data/config/routes.rb +7 -0
- data/db/migrate/20150904143013_create_spree_braintree_checkouts.rb +9 -0
- data/db/migrate/20151002094655_add_braintree_id_to_spree_addresses.rb +5 -0
- data/db/migrate/20151018123907_add_braintree_token_and_nonce_to_spree_payments.rb +6 -0
- data/db/migrate/20151027135109_add_paypal_email_to_spree_braintree_checkout.rb +5 -0
- data/db/migrate/20151028095515_add_advanced_fraud_data_to_spree_braintree_checkout.rb +5 -0
- data/db/migrate/20151202095956_add_risk_id_and_risk_decision_to_spree_braintree_checkouts.rb +6 -0
- data/db/migrate/20151211100203_add_braintree_last_digits_and_braintree_card_type_to_spree_braintree_checkouts.rb +6 -0
- data/db/migrate/20160112153422_add_admin_payment_to_spree_braintree_checkout.rb +5 -0
- data/gemfiles/spree_3_5.gemfile +12 -0
- data/gemfiles/spree_3_5_spree_auth_devise.gemfile +13 -0
- data/gemfiles/spree_3_7.gemfile +12 -0
- data/gemfiles/spree_3_7_spree_auth_devise.gemfile +13 -0
- data/gemfiles/spree_4_0.gemfile +11 -0
- data/gemfiles/spree_4_0_spree_auth_devise.gemfile +12 -0
- data/gemfiles/spree_master.gemfile +11 -0
- data/gemfiles/spree_master_spree_auth_devise.gemfile +12 -0
- data/lib/generators/spree_braintree_vzero/install/install_generator.rb +34 -0
- data/lib/spree_braintree_vzero.rb +6 -0
- data/lib/spree_braintree_vzero/engine.rb +28 -0
- data/lib/spree_braintree_vzero/factories.rb +10 -0
- data/lib/spree_braintree_vzero/railtie.rb +8 -0
- data/lib/spree_braintree_vzero/version.rb +17 -0
- data/lib/tasks/spree_braintree_vzero.rake +6 -0
- data/spec/controllers/spree/api/v1/braintree_client_token_controller_spec.rb +49 -0
- data/spec/controllers/spree/checkout_controller_spec.rb +85 -0
- data/spec/controllers/spree/orders_controller_spec.rb +97 -0
- data/spec/factories/braintree_checkout_factory.rb +7 -0
- data/spec/factories/braintree_gateway_factory.rb +35 -0
- data/spec/factories/payment_factory_decorator.rb +28 -0
- data/spec/features/spree/admin/log_entries_spec.rb +63 -0
- data/spec/models/gateway/braintree_vzero_base/address_spec.rb +28 -0
- data/spec/models/gateway/braintree_vzero_base/purchase_data_spec.rb +57 -0
- data/spec/models/gateway/braintree_vzero_base_spec.rb +346 -0
- data/spec/models/gateway/braintree_vzero_dropin_ui_spec.rb +35 -0
- data/spec/models/gateway/braintree_vzero_hosted_fields_spec.rb +35 -0
- data/spec/models/spree/order_spec.rb +186 -0
- data/spec/spec_helper.rb +100 -0
- data/spec/support/vcr.rb +10 -0
- data/spec/vcr/Log_entries/with_a_failed_log_entry/shows_a_failed_attempt.yml +91 -0
- data/spec/vcr/Log_entries/with_a_successful_log_entry/shows_a_successful_attempt.yml +113 -0
- data/spec/vcr/Spree_Api_V1_BraintreeClientTokenController/POST_create/guest_checkout/returns_proper_json_data_when_gateway_not_specified.yml +90 -0
- data/spec/vcr/Spree_Api_V1_BraintreeClientTokenController/POST_create/guest_checkout/returns_proper_json_data_when_gateway_specified.yml +90 -0
- data/spec/vcr/Spree_Api_V1_BraintreeClientTokenController/POST_create/user_checkout/returns_proper_json_data_when_gateway_not_specified.yml +191 -0
- data/spec/vcr/Spree_Api_V1_BraintreeClientTokenController/POST_create/user_checkout/returns_proper_json_data_when_gateway_specified.yml +191 -0
- data/spec/vcr/Spree_CheckoutController/_update/braintree_payment/advanced_fraud_data_in_source_should_be_updated.yml +71 -0
- data/spec/vcr/Spree_CheckoutController/_update/braintree_payment/when_token_credit_card_data_in_source_should_be_updated_from_Braintree_Vault.yml +139 -0
- data/spec/vcr/Spree_CheckoutController/_update/braintree_paypal_express_payment/amount_in_payment_should_be_updated.yml +280 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_capture/captures_authorized_amount/updates_Payment_state.yml +206 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_credit/with_refundable_state/should_be_a_success.yml +211 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_credit/with_unrefundable_state/should_not_be_a_success.yml +177 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/data_from_admin_panel/should_include_only_essential_data.yml +78 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/does_not_store_Transaction_in_Vault_by_default.yml +111 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/returns_false_with_invalid_nonce.yml +88 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/returns_false_with_invalid_token.yml +88 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/returns_success_with_valid_token.yml +113 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/returns_suceess_with_valid_nonce.yml +111 -0
- 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
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/using_Vault/saves_unique_Braintree_Addresses_ids.yml +143 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/using_Vault/sends_empty_address_id_when_address_is_already_in_vault.yml +553 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/using_Vault/stores_Transaction.yml +181 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/with_3DSecure_option_turned_on/performs_3DSecure_check.yml +112 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/with_3DSecure_option_turned_on/returns_error.yml +112 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/with_advanced_fraud_tool_enabled/returns_fraud_data.yml +111 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_purchase/with_advanced_fraud_tool_enabled/returns_success.yml +111 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_settle/settles_authorized_amount/does_not_update_Order_payment_state.yml +204 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_settle/settles_authorized_amount/prepares_Checkout_for_status_updating.yml +204 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_settle/settles_authorized_amount/submits_Transaction_for_settlement.yml +377 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_settle/settles_authorized_amount/updates_Payment_state.yml +203 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_update_states/does_not_update_completed_Checkout_on_subsequent_runs.yml +202 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_update_states/updates_Order_payment_state_when_Checkout_is_updated.yml +202 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_update_states/updates_Payment_state_when_Checkout_is_updated.yml +202 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_update_states/updates_payment_State.yml +202 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_void/with_unvoidable_state/should_not_change_payment_source_state.yml +178 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/_void/with_voidable_state/should_change_payment_source_state_to_voided.yml +199 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/generates_token_for_User_registered_in_Braintree.yml +356 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/generates_token_for_new_User.yml +189 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/valid_credentials/generates_token_without_User.yml +89 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase/with_invalid_credentials/raises_Braintree_error.yml +62 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase_Address/_create/creates_Braintree_Address.yml +84 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase_Address/_create/deletes_Braintree_Address.yml +141 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase_Address/_create/finds_Braintree_Address.yml +148 -0
- data/spec/vcr/Spree_Gateway_BraintreeVzeroBase_Address/_create/updates_Braintree_Address.yml +154 -0
- data/spec/vcr/Spree_Order/complete_with_braintree_vzero_standard_payment/with_auto_capture/should_complete_payment.yml +116 -0
- data/spec/vcr/Spree_Order/complete_with_braintree_vzero_standard_payment/with_auto_capture/should_update_payment_s_response_code.yml +111 -0
- 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
- data/spec/vcr/Spree_Order/complete_with_braintree_vzero_standard_payment/without_auto_capture/should_pend_payment.yml +111 -0
- data/spec/vcr/Spree_Order/complete_with_braintree_vzero_standard_payment/without_auto_capture/should_update_payment_s_response_code.yml +111 -0
- 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
- data/spree_braintree_vzero.gemspec +52 -0
- data/vendor/assets/javascripts/maskedinput/jquery.maskedinput.min.js +7 -0
- metadata +643 -0
@@ -0,0 +1,78 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.sandbox.braintreegateway.com/merchants//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>100.0</amount>
|
15
|
+
<order-id>R151383932</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.56.0
|
36
|
+
X-Apiversion:
|
37
|
+
- '4'
|
38
|
+
Content-Type:
|
39
|
+
- application/xml
|
40
|
+
response:
|
41
|
+
status:
|
42
|
+
code: 404
|
43
|
+
message: Not Found
|
44
|
+
headers:
|
45
|
+
Date:
|
46
|
+
- Wed, 13 Jan 2016 09:25:11 GMT
|
47
|
+
Content-Type:
|
48
|
+
- application/xml; charset=utf-8
|
49
|
+
Transfer-Encoding:
|
50
|
+
- chunked
|
51
|
+
Connection:
|
52
|
+
- close
|
53
|
+
X-Frame-Options:
|
54
|
+
- SAMEORIGIN
|
55
|
+
- SAMEORIGIN
|
56
|
+
X-Xss-Protection:
|
57
|
+
- 1; mode=block
|
58
|
+
X-Content-Type-Options:
|
59
|
+
- nosniff
|
60
|
+
Vary:
|
61
|
+
- Accept-Encoding
|
62
|
+
Content-Encoding:
|
63
|
+
- gzip
|
64
|
+
Cache-Control:
|
65
|
+
- no-cache
|
66
|
+
X-Request-Id:
|
67
|
+
- 8c4678e6-b559-46fd-b44a-1015bc5cdb2f
|
68
|
+
X-Runtime:
|
69
|
+
- '0.008884'
|
70
|
+
Strict-Transport-Security:
|
71
|
+
- max-age=31536000; includeSubDomains
|
72
|
+
body:
|
73
|
+
encoding: ASCII-8BIT
|
74
|
+
string: !binary |-
|
75
|
+
H4sIAPcXllYAAwAAAP//AwAAAAAAAAAAAA==
|
76
|
+
http_version:
|
77
|
+
recorded_at: Wed, 13 Jan 2016 09:25:10 GMT
|
78
|
+
recorded_with: VCR 3.0.1
|
@@ -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>R539131889</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:44 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
|
+
- '"c9937b50319607a9634a61b73ccc306c"'
|
65
|
+
Cache-Control:
|
66
|
+
- max-age=0, private, must-revalidate
|
67
|
+
X-Request-Id:
|
68
|
+
- 2abcdc94da1325b164109115dbef940d
|
69
|
+
X-Runtime:
|
70
|
+
- '0.780345'
|
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
|
+
H4sIAGQeJlYAA+RYS2/jNhC+768wfGdkO8nWCRQFW6BPYItFdlMUuQSUOLJY
|
79
|
+
S6RKUo69v75DiXpFVJIe+gB6s2Y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
|
95
|
+
NpqaIN5/7ud5L+1Pmcm8Dra/ffCC7oBUKo8yY0p9HQRUY4vWZ7GiXNhr4+r9
|
96
|
+
DPtmUNKT7dyPBWCtssdc7mRwQP/PSrG7BXHgSgoLuNFUsFgeka929l2vU1BS
|
97
|
+
5Ha/SFt+ze9GkwHNTYYnhuhe7IV8EmEwkDUgBjE3vb75dKpKYeKwBndVbhnc
|
98
|
+
APVc0w0Cy0tx1vXQgcydl56UzAeIVuDCp3WFrRBHmdj3mJF03FplSqyWigTd
|
99
|
+
/PzB7jhVtKGSrEpqrtzv3ssaUCX4HxW4q4RiDD7HZjy5VfaOgigk0Ww/c3c6
|
100
|
+
veOI47vjnhwk41hq6jTiAN38rBGAhlxS7IVDro2Konwj/+7wnQX3lOkpxvB1
|
101
|
+
UyPmHihNhDTy3IKmHLm9bom8PdiAp2iJnQkiWiLII2/cC6b+/c0uv+V5928G
|
102
|
+
oJO4omiafE79xK+KdaJ4OUsMB/quKdesl5RIRCQjyL2IjaW3fY+QeCxlvFg8
|
103
|
+
8rN97KQjONQ8rJZxXV9Prw4aK7LtzDMNdu5dhi1xeraxUWSM9kGOfs3c2E7f
|
104
|
+
DDt8YQuYWsWcH+x0TgHm5qrdVj6RJpsTLYYhrpRuSDsDg09T3TbdkcqfmwHj
|
105
|
+
928/xkz+g3gjHI42ADhslP8Y9vWDlYo81WewShIPoceMzPhuPS8rA77ScFOS
|
106
|
+
cIG8s2peUJYZNB310XbUMJgDjZnbwNExwRuSt1nQ67ZquvearY4TKq73Nsu0
|
107
|
+
e5hF5+tPSETvfvz487cP7b9T9e1IuP2TqyWbtrSdpA7ryFJoMuQZBK+trWfA
|
108
|
+
kKRynIlRU4re/QkAAP//AwAlT42qSBMAAA==
|
109
|
+
http_version:
|
110
|
+
recorded_at: Tue, 20 Oct 2015 10:58:44 GMT
|
111
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,88 @@
|
|
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-invalid-nonce</payment-method-nonce>
|
14
|
+
<amount>20.00</amount>
|
15
|
+
<order-id>R713957729</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: 422
|
43
|
+
message: Unprocessable Entity
|
44
|
+
headers:
|
45
|
+
Date:
|
46
|
+
- Tue, 20 Oct 2015 10:58:49 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
|
+
Cache-Control:
|
64
|
+
- no-cache
|
65
|
+
X-Request-Id:
|
66
|
+
- 3b7bc34f28f261befe0010035a8dd30c
|
67
|
+
X-Runtime:
|
68
|
+
- '1.360196'
|
69
|
+
X-Frame-Options:
|
70
|
+
- SAMEORIGIN
|
71
|
+
Strict-Transport-Security:
|
72
|
+
- max-age=31536000; includeSubDomains
|
73
|
+
body:
|
74
|
+
encoding: ASCII-8BIT
|
75
|
+
string: !binary |-
|
76
|
+
H4sIAGkeJlYAA5RUy27bMBC85ysE3WnaCRzXAM3c8gFBcg7W0iYhwoe6XLn1
|
77
|
+
34eSTUl2laK97WN2uBwOqB5+O1sckKIJfleuFsuyQF+F2vj3Xfny/Ch+lA/6
|
78
|
+
RkFjBBIFEoSxCT6ivikK1ZdiFw5JwccGdyUQwbGU5xYT+AgVp0NOlXl47uXu
|
79
|
+
mKdKWgr1drW+XyvZx9MmMJPZt4xnvnh0+2BL3cDRoedXh/wR6lcffIVKDugL
|
80
|
+
DocxwjvqF//pwy9fzM0ulMywcVd5sew5zarIq7tP26oBAhf/IlLVRg4OqfDG
|
81
|
+
7kqmFrOm/XS/oDgtKPoF9Rt8ojD+ANacS0rOAjMLuNB61rfLxXKZpDlluRmo
|
82
|
+
RhKm1k+b1d12vdncbpUcihlVY6zINDx9MeXB4eza8k+4Ck137TgZj+3eGRZv
|
83
|
+
yXIRmS12N9AdlZLzvXEW6lrsjbXJxCLFybJRcBCXMiSlbOzM8E/gkZw/CFHU
|
84
|
+
6eSqpUsHEf5sDeFAPeQTr3w3rtJDU/dy4gCt5UxxVR00vBJMdbbXEWwa6cPv
|
85
|
+
zDc67r/9nqSa+QW+AAAA//8DAD2GUQFCBAAA
|
86
|
+
http_version:
|
87
|
+
recorded_at: Tue, 20 Oct 2015 10:58:49 GMT
|
88
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,88 @@
|
|
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-token>sometoken</payment-method-token>
|
14
|
+
<amount>20.00</amount>
|
15
|
+
<order-id>R475374582</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: 422
|
43
|
+
message: Unprocessable Entity
|
44
|
+
headers:
|
45
|
+
Date:
|
46
|
+
- Tue, 20 Oct 2015 10:58:53 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
|
+
Cache-Control:
|
64
|
+
- no-cache
|
65
|
+
X-Request-Id:
|
66
|
+
- 5ea1c89d8d9e25093c82426627f7a346
|
67
|
+
X-Runtime:
|
68
|
+
- '0.323214'
|
69
|
+
X-Frame-Options:
|
70
|
+
- SAMEORIGIN
|
71
|
+
Strict-Transport-Security:
|
72
|
+
- max-age=31536000; includeSubDomains
|
73
|
+
body:
|
74
|
+
encoding: ASCII-8BIT
|
75
|
+
string: !binary |-
|
76
|
+
H4sIAG0eJlYAA5xUTW/bMAy991cIvitK2gbNAEW97TwU3blQLLYVpg+PlIPm
|
77
|
+
30+2I9vJ3GLYjeTjo8jnB8vHD+/YEZBsDPtqs1pXDEIdjQ1v++rn83e+qx7V
|
78
|
+
jdSN5YAYkSNQEwOBumFM9iXqwjFh6dTAvtKI+lSJM5RQB9J1yo8MleX2ghV0
|
79
|
+
ynMlLwXq22a72UnRx3NQp4T20CY4z6OTP0RXqUafPIT04iG9R/OS4i8IUozd
|
80
|
+
FzM8EOk3UD8GDhs4rOcwS8yGo3bWrKQondO64mLfc1qEEVfnz2HZaNSevtCp
|
81
|
+
bilFD8iCdfsqYQtF1p7d78qHXXm/q6Lcfr50ES9k7WMbkrpdr9brLMqQFTCi
|
82
|
+
AeTWqKf7h+3dw/12dyvFWCxdBqhG26T5t5JBe1jcVvzdLmPTXUszOrUHbxN/
|
83
|
+
zWYjSMlBd4HqRkmxjE1cbQw/WOeyfXmOs1kpH80vZVCv2lEe9m/N0/D0jgDc
|
84
|
+
5JfrFi+9g/C7tQjj6DGfWeQzuszfF4HbwI+6damMuKqOGl4JJjvDK9IuU/rw
|
85
|
+
M89NRvsfp2e1Fn4BfwAAAP//AwD4r36iPwQAAA==
|
86
|
+
http_version:
|
87
|
+
recorded_at: Tue, 20 Oct 2015 10:58:53 GMT
|
88
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,113 @@
|
|
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>R372431497</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">true</store-in-vault>
|
26
|
+
<store-shipping-address-in-vault type="boolean">true</store-shipping-address-in-vault>
|
27
|
+
</options>
|
28
|
+
<type>sale</type>
|
29
|
+
</transaction>
|
30
|
+
headers:
|
31
|
+
Accept-Encoding:
|
32
|
+
- gzip
|
33
|
+
Accept:
|
34
|
+
- application/xml
|
35
|
+
User-Agent:
|
36
|
+
- Braintree Ruby Gem 2.49.0
|
37
|
+
X-Apiversion:
|
38
|
+
- '4'
|
39
|
+
Content-Type:
|
40
|
+
- application/xml
|
41
|
+
response:
|
42
|
+
status:
|
43
|
+
code: 201
|
44
|
+
message: Created
|
45
|
+
headers:
|
46
|
+
Date:
|
47
|
+
- Tue, 20 Oct 2015 10:58:46 GMT
|
48
|
+
Content-Type:
|
49
|
+
- application/xml; charset=utf-8
|
50
|
+
Transfer-Encoding:
|
51
|
+
- chunked
|
52
|
+
Connection:
|
53
|
+
- close
|
54
|
+
X-Authentication:
|
55
|
+
- basic_auth
|
56
|
+
X-User:
|
57
|
+
- 97syg9czj6hrdzyn
|
58
|
+
Vary:
|
59
|
+
- Accept-Encoding
|
60
|
+
Content-Encoding:
|
61
|
+
- gzip
|
62
|
+
X-Ua-Compatible:
|
63
|
+
- IE=Edge,chrome=1
|
64
|
+
Etag:
|
65
|
+
- '"294265037fae71c2c45aba0ef12402e6"'
|
66
|
+
Cache-Control:
|
67
|
+
- max-age=0, private, must-revalidate
|
68
|
+
X-Request-Id:
|
69
|
+
- 245e0a0b7aee0491e359afdbce3eeab5
|
70
|
+
X-Runtime:
|
71
|
+
- '1.278229'
|
72
|
+
X-Frame-Options:
|
73
|
+
- SAMEORIGIN
|
74
|
+
Strict-Transport-Security:
|
75
|
+
- max-age=31536000; includeSubDomains
|
76
|
+
body:
|
77
|
+
encoding: ASCII-8BIT
|
78
|
+
string: !binary |-
|
79
|
+
H4sIAGYeJlYAA+RYS2/jNhC+51cEvjOSbCXxBoqCPbRAC2xR7G4KbC8BJY4t
|
80
|
+
NhKpkpRj76/vUG9ZVJJDixbozZr5OOQ8OPPR0cOxyC8PoDSX4n4VXPmrSxCp
|
81
|
+
ZFzs71ePX38k29VDfBEZRYWmqUFUfHF5GXEWs9LocBt5+NNKtKGm0rGukoIb
|
82
|
+
A+xpJ9WTBmNyKECYyGsBFmtOJcSa5hB59U8rSyulcOcT4VoSPADEPzx+jry5
|
83
|
+
2IJpISth4rV/5fuR135ZRQEqzagwhKapFRI8nS6petYyr+zptS6/Sxl5LqA1
|
84
|
+
IBUDZT8+b27X4SYIP9xGXi+sD6qAon+Emkt7+PsVw0/DC1jheYJrEvhk7X8N
|
85
|
+
/Lvr7V14/Tu60C+o11cle//6G1w/LGgDpY3E49uPJhPbzc3tjX+z7nKB0h1X
|
86
|
+
2hBBC7gUPL9fGV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