solidus_bolt 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.circleci/config.yml +41 -0
- data/.gem_release.yml +5 -0
- data/.github/stale.yml +17 -0
- data/.github_changelog_generator +2 -0
- data/.gitignore +20 -0
- data/.rspec +2 -0
- data/.rubocop.yml +11 -0
- data/CHANGELOG.md +1 -0
- data/Gemfile +33 -0
- data/LICENSE +26 -0
- data/README.md +175 -0
- data/Rakefile +6 -0
- data/app/assets/images/bolt_logo_standard.png +0 -0
- data/app/assets/javascripts/authorize_account.js +74 -0
- data/app/assets/javascripts/solidus_bolt.js +91 -0
- data/app/assets/javascripts/spree/backend/solidus_bolt.js +4 -0
- data/app/assets/javascripts/spree/frontend/solidus_bolt.js +18 -0
- data/app/assets/stylesheets/spree/backend/solidus_bolt.css +4 -0
- data/app/assets/stylesheets/spree/frontend/solidus_bolt.css +4 -0
- data/app/controllers/solidus_bolt/accounts_controller.rb +17 -0
- data/app/controllers/solidus_bolt/base_controller.rb +21 -0
- data/app/controllers/solidus_bolt/webhooks_controller.rb +21 -0
- data/app/controllers/spree/admin/bolt_webhooks_controller.rb +34 -0
- data/app/controllers/spree/admin/bolts_controller.rb +43 -0
- data/app/decorators/controllers/solidus_bolt/spree_checkout_controller/add_addresses_to_bolt.rb +23 -0
- data/app/decorators/controllers/solidus_bolt/spree_checkout_controller/refresh_bolt_addresses.rb +17 -0
- data/app/decorators/controllers/solidus_bolt/spree_checkout_controller/refresh_bolt_payment_source.rb +17 -0
- data/app/decorators/models/solidus_bolt/address_decorator.rb +22 -0
- data/app/decorators/models/solidus_bolt/log_entry_decorator.rb +11 -0
- data/app/decorators/models/solidus_bolt/order_decorator.rb +44 -0
- data/app/decorators/models/solidus_bolt/payment_decorator.rb +11 -0
- data/app/decorators/omniauth/strategies/bolt_decorator.rb +16 -0
- data/app/jobs/solidus_bolt/add_address_job.rb +11 -0
- data/app/models/solidus_bolt/bolt_configuration.rb +74 -0
- data/app/models/solidus_bolt/gateway.rb +133 -0
- data/app/models/solidus_bolt/payment_method.rb +35 -0
- data/app/models/solidus_bolt/payment_source.rb +13 -0
- data/app/models/solidus_bolt.rb +7 -0
- data/app/overrides/spree/shared/_head/add_bolt_embed_script.html.erb.deface +6 -0
- data/app/services/solidus_bolt/accounts/add_address_service.rb +55 -0
- data/app/services/solidus_bolt/accounts/add_payment_method_service.rb +45 -0
- data/app/services/solidus_bolt/accounts/detail_service.rb +38 -0
- data/app/services/solidus_bolt/accounts/detect_account_service.rb +34 -0
- data/app/services/solidus_bolt/base_service.rb +55 -0
- data/app/services/solidus_bolt/oauth/token_service.rb +43 -0
- data/app/services/solidus_bolt/payments/capture_sync_service.rb +24 -0
- data/app/services/solidus_bolt/payments/credit_sync_service.rb +44 -0
- data/app/services/solidus_bolt/payments/void_sync_service.rb +18 -0
- data/app/services/solidus_bolt/server_error.rb +6 -0
- data/app/services/solidus_bolt/transactions/authorize_service.rb +72 -0
- data/app/services/solidus_bolt/transactions/base_service.rb +28 -0
- data/app/services/solidus_bolt/transactions/capture_service.rb +46 -0
- data/app/services/solidus_bolt/transactions/detail_service.rb +38 -0
- data/app/services/solidus_bolt/transactions/refund_service.rb +46 -0
- data/app/services/solidus_bolt/transactions/void_service.rb +44 -0
- data/app/services/solidus_bolt/users/refresh_access_token_service.rb +44 -0
- data/app/services/solidus_bolt/users/sync_addresses_service.rb +49 -0
- data/app/services/solidus_bolt/users/sync_payment_sources_service.rb +50 -0
- data/app/services/solidus_bolt/webhooks/create_service.rb +52 -0
- data/app/views/spree/admin/bolt_webhooks/new.html.erb +22 -0
- data/app/views/spree/admin/bolts/_configuration.html.erb +32 -0
- data/app/views/spree/admin/bolts/_form.html.erb +29 -0
- data/app/views/spree/admin/bolts/edit.html.erb +6 -0
- data/app/views/spree/admin/bolts/show.html.erb +21 -0
- data/app/views/spree/admin/payments/source_forms/_bolt.html.erb +1 -0
- data/app/views/spree/admin/payments/source_views/_bolt.html.erb +2 -0
- data/app/views/spree/api/payments/source_views/_bolt.json.jbuilder +4 -0
- data/app/views/spree/checkout/existing_payment/_bolt.html.erb +7 -0
- data/app/views/spree/checkout/payment/_bolt.html.erb +1 -0
- data/app/views/spree/shared/payment/_bolt.html.erb +19 -0
- data/app/webhooks/solidus_bolt/handlers/base_handler.rb +27 -0
- data/app/webhooks/solidus_bolt/handlers/capture_handler.rb +13 -0
- data/app/webhooks/solidus_bolt/handlers/credit_handler.rb +18 -0
- data/app/webhooks/solidus_bolt/handlers/void_handler.rb +11 -0
- data/app/webhooks/solidus_bolt/sorter.rb +33 -0
- data/bin/console +17 -0
- data/bin/rails +7 -0
- data/bin/rails-engine +13 -0
- data/bin/rails-sandbox +16 -0
- data/bin/rake +7 -0
- data/bin/sandbox +86 -0
- data/bin/setup +8 -0
- data/config/initializers/menu_items.rb +14 -0
- data/config/locales/en.yml +17 -0
- data/config/routes.rb +11 -0
- data/db/migrate/20220330094232_create_solidus_bolt_payment_sources.rb +16 -0
- data/db/migrate/20220413063328_create_solidus_bolt_bolt_configurations.rb +14 -0
- data/db/migrate/20220502005041_swap_url_for_env_boolean_in_bolt_configuration.rb +6 -0
- data/db/migrate/20220509102309_rework_solidus_bolt_payment_sources.rb +19 -0
- data/db/migrate/20220510075227_add_create_bolt_account_to_solidus_bolt_payment_source.rb +5 -0
- data/db/migrate/20220519233043_add_user_to_solidus_bolt_payment_source.rb +5 -0
- data/db/migrate/20220526005619_remove_user_id_from_solidus_bolt_payment_source.rb +5 -0
- data/db/migrate/20220530102107_rename_bolt_configuration_merchant_id_to_division_public_id.rb +5 -0
- data/db/migrate/20220531075527_update_bolt_configuration_environment_column_restrictions.rb +6 -0
- data/db/seeds.rb +30 -0
- data/lib/generators/solidus_bolt/install/install_generator.rb +78 -0
- data/lib/generators/solidus_bolt/install/templates/initializer.rb +8 -0
- data/lib/solidus_bolt/configuration.rb +19 -0
- data/lib/solidus_bolt/engine.rb +62 -0
- data/lib/solidus_bolt/testing_support/factories.rb +32 -0
- data/lib/solidus_bolt/version.rb +5 -0
- data/lib/solidus_bolt.rb +9 -0
- data/lib/tasks/db/seed/solidus_bolt.rake +14 -0
- data/lib/views/frontend/spree/shared/_login_bar_items.html.erb +18 -0
- data/solidus_bolt.gemspec +46 -0
- data/spec/decorators/models/solidus_bolt/address_decorator_spec.rb +24 -0
- data/spec/decorators/models/solidus_bolt/order_decorator_spec.rb +36 -0
- data/spec/decorators/models/solidus_bolt/payment_decorator_spec.rb +30 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_AddAddressService/_call/with_correct_access_token/receives_a_successful_response.yml +137 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_AddAddressService/_call/with_existing_address/skips_the_add_address_call.yml +82 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_AddAddressService/_call/with_wrong_access_token/gives_an_error.yml +55 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_AddPaymentMethodService/_call/with_correct_access_token/receives_a_successful_response.yml +186 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_AddPaymentMethodService/_call/with_wrong_access_token/gives_an_error.yml +179 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_DetailService/_call/with_correct_access_token/receives_a_successful_response.yml +55 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_DetailService/_call/with_wrong_access_token/gives_an_error.yml +55 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_DetectAccountService/_call/receives_the_correct_response.yml +50 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Accounts_DetectAccountService/_call/returns_status_200.yml +50 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Oauth_TokenService/_call/makes_the_API_call.yml +59 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_AuthorizeService/when_repeat_payment/_call/makes_the_API_call.yml +305 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_AuthorizeService/with_auto_capture/_call/makes_the_API_call.yml +307 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_AuthorizeService/without_auto_capture/_call/makes_the_API_call.yml +252 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_CaptureService/_call/makes_the_API_call.yml +242 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_DetailService/_call/makes_the_API_call.yml +244 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_RefundService/_call/makes_the_API_call.yml +296 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_VoidService/_call/makes_the_API_call.yml +242 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_VoidService/_call/when_transaction_id_is_missing/makes_the_API_call.yml +242 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_VoidService/_call/when_transaction_reference_is_missing/makes_the_API_call.yml +242 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Users_SyncAddressesService/_call/adds_the_bill_address_to_the_user.yml +165 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Users_SyncAddressesService/_call/adds_the_ship_address_to_the_user.yml +165 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Users_SyncPaymentSourcesService/_call/creates_a_new_payment_source_with_card_ID.yml +55 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Webhooks_CreateService/_call/with_all_event/returns_a_webhook_id.yml +54 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Webhooks_CreateService/_call/with_an_event/returns_a_webhook_id.yml +54 -0
- data/spec/fixtures/vcr_cassettes/SolidusBolt_Webhooks_CreateService/_call/with_empty_event/raises_a_server_error.yml +57 -0
- data/spec/jobs/solidus_bolt/add_address_job_spec.rb +18 -0
- data/spec/models/solidus_bolt/bolt_configuration_spec.rb +173 -0
- data/spec/models/solidus_bolt/gateway_spec.rb +130 -0
- data/spec/models/solidus_bolt/payment_method_spec.rb +21 -0
- data/spec/models/solidus_bolt/payment_source_spec.rb +22 -0
- data/spec/requests/solidus_bolt/accounts_controller_spec.rb +41 -0
- data/spec/requests/solidus_bolt/webhooks_controller_spec.rb +122 -0
- data/spec/requests/spree/admin/bolt_spec.rb +71 -0
- data/spec/requests/spree/admin/bolt_webhook_spec.rb +35 -0
- data/spec/requests/spree/checkout_controller_spec.rb +117 -0
- data/spec/services/solidus_bolt/accounts/add_address_service_spec.rb +45 -0
- data/spec/services/solidus_bolt/accounts/add_payment_method_service_spec.rb +47 -0
- data/spec/services/solidus_bolt/accounts/detail_service_spec.rb +32 -0
- data/spec/services/solidus_bolt/accounts/detect_account_service_spec.rb +15 -0
- data/spec/services/solidus_bolt/base_service_spec.rb +49 -0
- data/spec/services/solidus_bolt/oauth/token_service_spec.rb +15 -0
- data/spec/services/solidus_bolt/payments/capture_sync_service_spec.rb +27 -0
- data/spec/services/solidus_bolt/payments/credit_sync_service_spec.rb +38 -0
- data/spec/services/solidus_bolt/payments/void_sync_service_spec.rb +25 -0
- data/spec/services/solidus_bolt/transactions/authorize_service_spec.rb +117 -0
- data/spec/services/solidus_bolt/transactions/base_service_spec.rb +38 -0
- data/spec/services/solidus_bolt/transactions/capture_service_spec.rb +37 -0
- data/spec/services/solidus_bolt/transactions/detail_service_spec.rb +31 -0
- data/spec/services/solidus_bolt/transactions/refund_service_spec.rb +42 -0
- data/spec/services/solidus_bolt/transactions/void_service_spec.rb +70 -0
- data/spec/services/solidus_bolt/users/refresh_access_token_service_spec.rb +45 -0
- data/spec/services/solidus_bolt/users/sync_addresses_service_spec.rb +74 -0
- data/spec/services/solidus_bolt/users/sync_payment_sources_service_spec.rb +25 -0
- data/spec/services/solidus_bolt/webhooks/create_service_spec.rb +33 -0
- data/spec/spec_helper.rb +37 -0
- data/spec/support/bolt_configuration.rb +26 -0
- data/spec/support/bolt_helper.rb +66 -0
- data/spec/support/vcr.rb +29 -0
- data/spec/webhooks/solidus_bolt/handlers/base_handler_spec.rb +13 -0
- data/spec/webhooks/solidus_bolt/handlers/capture_handler_spec.rb +24 -0
- data/spec/webhooks/solidus_bolt/handlers/credit_handler_spec.rb +32 -0
- data/spec/webhooks/solidus_bolt/handlers/void_handler_spec.rb +19 -0
- data/spec/webhooks/solidus_bolt/sorter_spec.rb +39 -0
- metadata +492 -0
@@ -0,0 +1,242 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sandbox.bolttk.com/public_key
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/text; charset=utf-8
|
23
|
+
Content-Length:
|
24
|
+
- '44'
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Date:
|
28
|
+
- Tue, 03 May 2022 09:35:09 GMT
|
29
|
+
X-Amzn-Requestid:
|
30
|
+
- 33112677-71fd-4783-9621-4118addc3942
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Strict-Transport-Security:
|
34
|
+
- max-age=31536000; includeSubDomains; preload
|
35
|
+
X-Amzn-Remapped-Content-Length:
|
36
|
+
- '44'
|
37
|
+
X-Amzn-Remapped-Connection:
|
38
|
+
- close
|
39
|
+
X-Amz-Apigw-Id:
|
40
|
+
- RiuUDH7GyK4Fb0w=
|
41
|
+
Cache-Control:
|
42
|
+
- public, max-age=604800
|
43
|
+
X-Powered-By:
|
44
|
+
- Express
|
45
|
+
X-Amzn-Trace-Id:
|
46
|
+
- Root=1-6270f74c-1d93ca830d7818731724a0b5
|
47
|
+
X-Amzn-Remapped-Date:
|
48
|
+
- Tue, 03 May 2022 09:35:09 GMT
|
49
|
+
Via:
|
50
|
+
- 1.1 0bf3f0b7038d55ea4f178432aa6ddc52.cloudfront.net (CloudFront), 1.1 4448f6f0cf46259e83792c753f97a4de.cloudfront.net
|
51
|
+
(CloudFront)
|
52
|
+
X-Amz-Cf-Pop:
|
53
|
+
- CDG3-C2
|
54
|
+
- LHR62-C4
|
55
|
+
Etag:
|
56
|
+
- W/"2c-qVZerSDDiabAHoqCi/o+02DcdQI"
|
57
|
+
X-Cache:
|
58
|
+
- Hit from cloudfront
|
59
|
+
X-Amz-Cf-Id:
|
60
|
+
- G3H86CmjAvcfy2KN4R8-9hxa3lVuj4-rk4xNrbWvhYVRA50bOgLwoQ==
|
61
|
+
Age:
|
62
|
+
- '851'
|
63
|
+
body:
|
64
|
+
encoding: UTF-8
|
65
|
+
string: SnTw15miTFwqwPnqn95Xurm049JaNGWdKX38id7/Lik=
|
66
|
+
recorded_at: Tue, 03 May 2022 09:49:20 GMT
|
67
|
+
- request:
|
68
|
+
method: post
|
69
|
+
uri: https://sandbox.bolttk.com/token
|
70
|
+
body:
|
71
|
+
encoding: UTF-8
|
72
|
+
string: '{"payload":"8FKVGn9ONARCa6hRsDcZgrAkSruZ6YBUMp8ICH6slt8ALRNAzX6vccTfR6iu\nao8PVzsvrAQ=\n","nonce":"OTQ4NzM2MDA1NDk3ODgyNjQ3MTMzODE0\n","public_key":"jOscXiiZCsn+nfXFetBF+3On0nAWgedP87ZbJUKizDw=\n"}'
|
73
|
+
headers:
|
74
|
+
Content-Type:
|
75
|
+
- application/json
|
76
|
+
Accept-Encoding:
|
77
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
78
|
+
Accept:
|
79
|
+
- "*/*"
|
80
|
+
User-Agent:
|
81
|
+
- Ruby
|
82
|
+
response:
|
83
|
+
status:
|
84
|
+
code: 200
|
85
|
+
message: OK
|
86
|
+
headers:
|
87
|
+
Content-Type:
|
88
|
+
- application/json; charset=utf-8
|
89
|
+
Content-Length:
|
90
|
+
- '273'
|
91
|
+
Connection:
|
92
|
+
- keep-alive
|
93
|
+
Date:
|
94
|
+
- Tue, 03 May 2022 09:49:21 GMT
|
95
|
+
X-Amzn-Requestid:
|
96
|
+
- ab5af8a4-6498-44e7-a323-2d0d8e51724b
|
97
|
+
Access-Control-Allow-Origin:
|
98
|
+
- "*"
|
99
|
+
Strict-Transport-Security:
|
100
|
+
- max-age=31536000; includeSubDomains; preload
|
101
|
+
X-Amzn-Remapped-Content-Length:
|
102
|
+
- '273'
|
103
|
+
X-Amzn-Remapped-Connection:
|
104
|
+
- close
|
105
|
+
X-Amz-Apigw-Id:
|
106
|
+
- RiwZMGtgSK4FUqQ=
|
107
|
+
Etag:
|
108
|
+
- W/"111-GogR2a9ekmB5ynEkBcwg1UMjRZ4"
|
109
|
+
X-Powered-By:
|
110
|
+
- Express
|
111
|
+
X-Amzn-Trace-Id:
|
112
|
+
- Root=1-6270faa1-06d0e2984782ebb40b381a74
|
113
|
+
X-Amzn-Remapped-Date:
|
114
|
+
- Tue, 03 May 2022 09:49:21 GMT
|
115
|
+
Via:
|
116
|
+
- 1.1 dcff20cbe7f6611a8c32722d5b502d44.cloudfront.net (CloudFront), 1.1 19fefe7d41cfedb99873c7b5cd95d410.cloudfront.net
|
117
|
+
(CloudFront)
|
118
|
+
X-Amz-Cf-Pop:
|
119
|
+
- CDG3-C2
|
120
|
+
- CDG50-P1
|
121
|
+
X-Cache:
|
122
|
+
- Miss from cloudfront
|
123
|
+
X-Amz-Cf-Id:
|
124
|
+
- TLbrLCmZXmZ7JJVabp4pE7l_9qVnOrHLEHOes7wN84v_Fdhb0hJSEQ==
|
125
|
+
body:
|
126
|
+
encoding: UTF-8
|
127
|
+
string: '{"payload":"M5nn6GF6ka1DzeSmdwH0ghKsEKgmgONoeLIwWYcHwiz7wFuKpWlIdmXcNZdzITCu39gz9VN5NKBlbeNn5NoARAzmIEycGlOelTY/N9HiTMCzaoSVH9z+zhB2lkZiHglNGn7O/++4hhF5lpqYkx0x+4RnbpFFwYDUSzsOtDTXWrsHPbnPZg8LY/qdk3N5kTnRZI7ZlwAfnq+siJ968iU++NBq","nonce":"ZbfmIR+KqgYgBkRRYm6P855Pr2aubTgk"}'
|
128
|
+
recorded_at: Tue, 03 May 2022 09:49:21 GMT
|
129
|
+
- request:
|
130
|
+
method: post
|
131
|
+
uri: https://api-sandbox.bolt.com/v1/merchant/transactions/authorize
|
132
|
+
body:
|
133
|
+
encoding: UTF-8
|
134
|
+
string: '{"auto_capture":false,"cart":{"total_amount":11000,"order_reference":"R841754233","currency":"USD","items":[{"sku":"SKU-1","name":"Product
|
135
|
+
#1 - 8002","unit_price":1000,"quantity":1}]},"credit_card":{"token":"6420d2f36180e36d82ba3591a2a117f299bc25feb89a2a4782cffb78ce08fa32","expiry":1651572261121,"last4":"1004","bin":"411111","network":"visa","expiration":"2023-05","token_type":"bolt"},"division_id":"","source":"direct_payments","user_identifier":{"email":"email1@example.com","phone":"555-555-0199"},"user_identity":{"first_name":"John","last_name":"Doe"},"create_bolt_account":false}'
|
136
|
+
headers:
|
137
|
+
Content-Type:
|
138
|
+
- application/json
|
139
|
+
X-Nonce:
|
140
|
+
- f8fb289107e662ccb2234d06bc1425aa
|
141
|
+
X-Publishable-Key:
|
142
|
+
- "<PUBLISHABLE_KEY>"
|
143
|
+
X-Api-Key:
|
144
|
+
- db1bd1ff3631f9c3e30d3555ad2989fa7cbed58b2344aea911aa7e2d52dba3e3
|
145
|
+
Accept-Encoding:
|
146
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
147
|
+
Accept:
|
148
|
+
- "*/*"
|
149
|
+
User-Agent:
|
150
|
+
- Ruby
|
151
|
+
response:
|
152
|
+
status:
|
153
|
+
code: 200
|
154
|
+
message: OK
|
155
|
+
headers:
|
156
|
+
Date:
|
157
|
+
- Tue, 03 May 2022 09:49:24 GMT
|
158
|
+
Content-Type:
|
159
|
+
- application/json; charset=UTF-8
|
160
|
+
Transfer-Encoding:
|
161
|
+
- chunked
|
162
|
+
Connection:
|
163
|
+
- keep-alive
|
164
|
+
Public-Key-Pins-Report-Only:
|
165
|
+
- max-age=2592000;pin-sha256="OGAVOYhLZd3ADKYGFZOED1c5m1ObMlRv9PyIWrO4Nd0=";pin-sha256="RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=";pin-sha256="IXHYSIdST+XY22J5ivybYkntMIfjA5P6pMKX2hWG1BE=";report-uri="https://77aa1bd121ef22d50247a23390ce6cff.report-uri.io/r/default/hpkp/reportOnly"
|
166
|
+
Set-Cookie:
|
167
|
+
- trk=d2e3bac0-9f4e-4f1f-9a6e-445fda2bd921; Path=/; Max-Age=31536000; HttpOnly;
|
168
|
+
Secure; SameSite=None
|
169
|
+
Strict-Transport-Security:
|
170
|
+
- max-age=31536000; includeSubDomains; preload
|
171
|
+
X-Bolt-Api-Version:
|
172
|
+
- '2022-01-01'
|
173
|
+
X-Bolt-Trace-Id:
|
174
|
+
- Root=1-6270faa2-15fda8552e6542bf18064240
|
175
|
+
X-Device-Id:
|
176
|
+
- 07b2e7c9e69016540fccbf7f7065ed35df740cf6e8057d6b5d0c96fa90a6e867
|
177
|
+
X-Envoy-Upstream-Service-Time:
|
178
|
+
- '1671'
|
179
|
+
Server:
|
180
|
+
- envoy
|
181
|
+
body:
|
182
|
+
encoding: UTF-8
|
183
|
+
string: '{"transaction":{"id":"TAfEzATpYEsu4","type":"cc_payment","processor":"vantiv","date":1651571362622,"reference":"TPPD-Y2BH-XH6L","status":"pending","from_consumer":{"id":"CA7KDNuTaHx4Q","first_name":"John","last_name":"Doe","phones":[{"id":"","number":"+1
|
184
|
+
5555550199","country_code":"1","status":"","priority":""}],"emails":[{"id":"","address":"email1@example.com","status":"","priority":""}],"email_verified":false,"platform_account_status":"none"},"to_consumer":{"id":"CAgqtmLcWPErV","first_name":"Daniele","last_name":"Palombo","phones":[{"id":"PAkJjgMi179yV","number":"5555555555","country_code":"1","status":"pending","priority":"primary"}],"emails":[{"id":"EAmCbHaM6E7v8","address":"danielepalombo@nebulab.com","status":"active","priority":"primary"}],"email_verified":false,"platform_account_status":"none"},"from_credit_card":{"id":"CAfv4FwKHAesH","last4":"1004","bin":"411111","expiration":1682899200000,"network":"visa","token_type":"bolt","priority":"listed","display_network":"Visa","icon_asset_path":"img/issuer-logos/visa.png","status":"active"},"amount":{"amount":11000,"currency":"USD","currency_symbol":"$"},"authorization":{"auth":"83988944325625458","reason":"none","status":"succeeded"},"captures":null,"merchant_division":{"id":"MA9hYSVYJ12VA","merchant_id":"MA5Ho7ftc4HPz","public_id":"Rq4qB1QajYLn","description":"Daniele
|
185
|
+
Palombo (Nebulab)","display_name":"Solidus","logo":{"domain":"img-sandbox.bolt.com","resource":""},"platform":"none","hook_url":"https://918c9efe2fcf.ngrok.io/webhooks","hook_type":"bolt","is_universal_merchant_api":true,"is_webhooks_v2":true,"shipping_url":"","tax_url":"","universal_merchant_api_url":"https://918c9efe2fcf.ngrok.io/merchant","debug_url":"https://asdf.ngrok.com/webhooks","plugin_config_url":"https://918c9efe2fcf.ngrok.io/merchant","product_info_url":"https://918c9efe2fcf.ngrok.io/merchant","confirmation_redirect_url":""},"transaction_properties":{"avs_result":"34","cvv_result":"M"},"indemnification_decision":"not_indemnified","indemnification_reason":"direct_payments","splits":[{"amount":{"amount":11000,"currency":"USD","currency_symbol":"$"},"type":"net"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"processing_fee"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"bolt_fee"}],"review_ticket":{"request_deadline":1651859362622}},"did_create_bolt_account":false}'
|
186
|
+
recorded_at: Tue, 03 May 2022 09:49:24 GMT
|
187
|
+
- request:
|
188
|
+
method: post
|
189
|
+
uri: https://api-sandbox.bolt.com/v1/merchant/transactions/capture
|
190
|
+
body:
|
191
|
+
encoding: UTF-8
|
192
|
+
string: '{"transaction_reference":"TPPD-Y2BH-XH6L","amount":10,"currency":"USD"}'
|
193
|
+
headers:
|
194
|
+
X-Nonce:
|
195
|
+
- fa65f43529f29a808ec0827bcd38a13e
|
196
|
+
Content-Type:
|
197
|
+
- application/json
|
198
|
+
X-Api-Key:
|
199
|
+
- db1bd1ff3631f9c3e30d3555ad2989fa7cbed58b2344aea911aa7e2d52dba3e3
|
200
|
+
Accept-Encoding:
|
201
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
202
|
+
Accept:
|
203
|
+
- "*/*"
|
204
|
+
User-Agent:
|
205
|
+
- Ruby
|
206
|
+
response:
|
207
|
+
status:
|
208
|
+
code: 200
|
209
|
+
message: OK
|
210
|
+
headers:
|
211
|
+
Date:
|
212
|
+
- Tue, 03 May 2022 09:49:26 GMT
|
213
|
+
Content-Type:
|
214
|
+
- application/json; charset=UTF-8
|
215
|
+
Transfer-Encoding:
|
216
|
+
- chunked
|
217
|
+
Connection:
|
218
|
+
- keep-alive
|
219
|
+
Public-Key-Pins-Report-Only:
|
220
|
+
- max-age=2592000;pin-sha256="OGAVOYhLZd3ADKYGFZOED1c5m1ObMlRv9PyIWrO4Nd0=";pin-sha256="RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=";pin-sha256="IXHYSIdST+XY22J5ivybYkntMIfjA5P6pMKX2hWG1BE=";report-uri="https://77aa1bd121ef22d50247a23390ce6cff.report-uri.io/r/default/hpkp/reportOnly"
|
221
|
+
Set-Cookie:
|
222
|
+
- trk=69f06dc0-10fe-460a-ab1a-c6aa9b665f2f; Path=/; Max-Age=31536000; HttpOnly;
|
223
|
+
Secure; SameSite=None
|
224
|
+
Strict-Transport-Security:
|
225
|
+
- max-age=31536000; includeSubDomains; preload
|
226
|
+
X-Bolt-Api-Version:
|
227
|
+
- '2022-01-01'
|
228
|
+
X-Bolt-Trace-Id:
|
229
|
+
- Root=1-6270faa5-3a8e47421b62e297772c9945
|
230
|
+
X-Device-Id:
|
231
|
+
- 8b8a883cce7497cc9d5d22aa27d70a6cd16a0ad55f4f8aed27cd81013a864592
|
232
|
+
X-Envoy-Upstream-Service-Time:
|
233
|
+
- '855'
|
234
|
+
Server:
|
235
|
+
- envoy
|
236
|
+
body:
|
237
|
+
encoding: UTF-8
|
238
|
+
string: '{"id":"TAfEzATpYEsu4","type":"cc_payment","processor":"vantiv","date":1651571362622,"reference":"TPPD-Y2BH-XH6L","status":"completed","from_consumer":{"id":"CA7KDNuTaHx4Q","first_name":"John","last_name":"Doe","phones":[{"id":"","number":"+1
|
239
|
+
5555550199","country_code":"1","status":"","priority":""}],"emails":[{"id":"","address":"email1@example.com","status":"","priority":""}],"email_verified":false,"platform_account_status":"none"},"to_consumer":{"id":"CAgqtmLcWPErV","first_name":"Daniele","last_name":"Palombo","phones":[{"id":"PAkJjgMi179yV","number":"5555555555","country_code":"1","status":"pending","priority":"primary"}],"emails":[{"id":"EAmCbHaM6E7v8","address":"danielepalombo@nebulab.com","status":"active","priority":"primary"}],"email_verified":false,"platform_account_status":"none"},"from_credit_card":{"id":"CAfv4FwKHAesH","last4":"1004","bin":"411111","expiration":1682899200000,"network":"visa","token_type":"bolt","priority":"listed","display_network":"Visa","icon_asset_path":"img/issuer-logos/visa.png","status":"active"},"amount":{"amount":11000,"currency":"USD","currency_symbol":"$"},"authorization":{"auth":"83988944325625458","reason":"none","status":"succeeded"},"capture":{"id":"CA5eKm4JWocen","status":"succeeded","amount":{"amount":10,"currency":"USD","currency_symbol":"$"},"splits":[{"amount":{"amount":10,"currency":"USD","currency_symbol":"$"},"type":"net"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"processing_fee"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"bolt_fee"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"network_fee"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"apm_fee"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"platform_fee"}],"metadata":{"processor_capture_id":"84076905395457511"}},"captures":[{"id":"CA5eKm4JWocen","status":"succeeded","amount":{"amount":10,"currency":"USD","currency_symbol":"$"},"splits":[{"amount":{"amount":10,"currency":"USD","currency_symbol":"$"},"type":"net"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"processing_fee"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"bolt_fee"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"network_fee"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"apm_fee"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"platform_fee"}],"metadata":{"processor_capture_id":"84076905395457511"}}],"merchant_division":{"id":"MA9hYSVYJ12VA","merchant_id":"MA5Ho7ftc4HPz","public_id":"Rq4qB1QajYLn","description":"Daniele
|
240
|
+
Palombo (Nebulab)","display_name":"Solidus","logo":{"domain":"img-sandbox.bolt.com","resource":""},"platform":"none","hook_url":"https://918c9efe2fcf.ngrok.io/webhooks","hook_type":"bolt","is_universal_merchant_api":true,"is_webhooks_v2":true,"shipping_url":"","tax_url":"","universal_merchant_api_url":"https://918c9efe2fcf.ngrok.io/merchant","debug_url":"https://asdf.ngrok.com/webhooks","plugin_config_url":"https://918c9efe2fcf.ngrok.io/merchant","product_info_url":"https://918c9efe2fcf.ngrok.io/merchant","confirmation_redirect_url":""},"transaction_properties":{"avs_result":"34","cvv_result":"M"},"indemnification_decision":"not_indemnified","indemnification_reason":"risk_assessment_only","splits":[{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"apm_fee"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"platform_fee"},{"amount":{"amount":10,"currency":"USD","currency_symbol":"$"},"type":"net"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"processing_fee"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"bolt_fee"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"network_fee"}],"review_ticket":{"request_deadline":1651859362622}}'
|
241
|
+
recorded_at: Tue, 03 May 2022 09:49:26 GMT
|
242
|
+
recorded_with: VCR 6.0.0
|
data/spec/fixtures/vcr_cassettes/SolidusBolt_Transactions_DetailService/_call/makes_the_API_call.yml
ADDED
@@ -0,0 +1,244 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sandbox.bolttk.com/public_key
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/text; charset=utf-8
|
23
|
+
Content-Length:
|
24
|
+
- '44'
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Date:
|
28
|
+
- Tue, 10 May 2022 17:38:08 GMT
|
29
|
+
X-Amzn-Requestid:
|
30
|
+
- 51e02956-5d0f-4223-973f-977830dc54b7
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Strict-Transport-Security:
|
34
|
+
- max-age=31536000; includeSubDomains; preload
|
35
|
+
X-Amzn-Remapped-Content-Length:
|
36
|
+
- '44'
|
37
|
+
X-Amzn-Remapped-Connection:
|
38
|
+
- close
|
39
|
+
X-Amz-Apigw-Id:
|
40
|
+
- R65oEGzKyK4FXWw=
|
41
|
+
Cache-Control:
|
42
|
+
- public, max-age=604800
|
43
|
+
X-Powered-By:
|
44
|
+
- Express
|
45
|
+
X-Amzn-Trace-Id:
|
46
|
+
- Root=1-627aa300-51e44b7762e7b6ab64c63f94
|
47
|
+
X-Amzn-Remapped-Date:
|
48
|
+
- Tue, 10 May 2022 17:38:08 GMT
|
49
|
+
Via:
|
50
|
+
- 1.1 925a9355525ad52853e1025fe231bef8.cloudfront.net (CloudFront), 1.1 ee330666adf9f04c8c30094f8ddcd004.cloudfront.net
|
51
|
+
(CloudFront)
|
52
|
+
X-Amz-Cf-Pop:
|
53
|
+
- HIO50-C2
|
54
|
+
- SEA73-P1
|
55
|
+
Etag:
|
56
|
+
- W/"2c-qVZerSDDiabAHoqCi/o+02DcdQI"
|
57
|
+
X-Cache:
|
58
|
+
- Hit from cloudfront
|
59
|
+
X-Amz-Cf-Id:
|
60
|
+
- HsXas7XEaF_iYS5rDdnoEQKRhFE-IAc-jH90sMGyoAtNW9qptPFEEQ==
|
61
|
+
Age:
|
62
|
+
- '41887'
|
63
|
+
body:
|
64
|
+
encoding: UTF-8
|
65
|
+
string: SnTw15miTFwqwPnqn95Xurm049JaNGWdKX38id7/Lik=
|
66
|
+
recorded_at: Wed, 11 May 2022 05:16:16 GMT
|
67
|
+
- request:
|
68
|
+
method: post
|
69
|
+
uri: https://sandbox.bolttk.com/token
|
70
|
+
body:
|
71
|
+
encoding: UTF-8
|
72
|
+
string: '{"payload":"2VYCTQ5bvqa2aZTyzSGC8fH9vO76wlLTN2dON56a4ER4MhlbfyfbrrgUaWTk\npwHg51b40mc=\n","nonce":"NTQ1MjgwMzIwODU1NTAyMzc5OTA0ODMw\n","public_key":"jOscXiiZCsn+nfXFetBF+3On0nAWgedP87ZbJUKizDw=\n"}'
|
73
|
+
headers:
|
74
|
+
Content-Type:
|
75
|
+
- application/json
|
76
|
+
Accept-Encoding:
|
77
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
78
|
+
Accept:
|
79
|
+
- "*/*"
|
80
|
+
User-Agent:
|
81
|
+
- Ruby
|
82
|
+
response:
|
83
|
+
status:
|
84
|
+
code: 200
|
85
|
+
message: OK
|
86
|
+
headers:
|
87
|
+
Content-Type:
|
88
|
+
- application/json; charset=utf-8
|
89
|
+
Content-Length:
|
90
|
+
- '273'
|
91
|
+
Connection:
|
92
|
+
- keep-alive
|
93
|
+
Date:
|
94
|
+
- Wed, 11 May 2022 05:16:16 GMT
|
95
|
+
X-Amzn-Requestid:
|
96
|
+
- c6f52324-2a7c-4324-9fcc-4416f5f42333
|
97
|
+
Access-Control-Allow-Origin:
|
98
|
+
- "*"
|
99
|
+
Strict-Transport-Security:
|
100
|
+
- max-age=31536000; includeSubDomains; preload
|
101
|
+
X-Amzn-Remapped-Content-Length:
|
102
|
+
- '273'
|
103
|
+
X-Amzn-Remapped-Connection:
|
104
|
+
- close
|
105
|
+
X-Amz-Apigw-Id:
|
106
|
+
- R8f5GEUhyK4FW6A=
|
107
|
+
Etag:
|
108
|
+
- W/"111-jDuSKdYvldgGJYJ72Xze91j93J0"
|
109
|
+
X-Powered-By:
|
110
|
+
- Express
|
111
|
+
X-Amzn-Trace-Id:
|
112
|
+
- Root=1-627b46a0-6f5c0a42491e536041d638b7
|
113
|
+
X-Amzn-Remapped-Date:
|
114
|
+
- Wed, 11 May 2022 05:16:16 GMT
|
115
|
+
Via:
|
116
|
+
- 1.1 6cdcb30f11623b126d7593a56d3a4690.cloudfront.net (CloudFront), 1.1 9c675215120a4ade8754c4357ef2f3ea.cloudfront.net
|
117
|
+
(CloudFront)
|
118
|
+
X-Amz-Cf-Pop:
|
119
|
+
- SEA73-P1
|
120
|
+
- YVR50-C1
|
121
|
+
X-Cache:
|
122
|
+
- Miss from cloudfront
|
123
|
+
X-Amz-Cf-Id:
|
124
|
+
- d7wONV_LdSbjh7CeieDJVv54C2aDLPELeokPvpA5URHdmdYHpDAraA==
|
125
|
+
body:
|
126
|
+
encoding: UTF-8
|
127
|
+
string: '{"payload":"Q0eQ1A7mwr1nkPBjrxaCYRpX+QbzaQj7ELRCCuz4bTte5E2M/pMJw3e+LYguFNgxz6bcfmaF0VdI+TRE0gfJyop3v9duL++zdGxRKN47Om6RjMBg1BoWSn+kiKDveX7jw6m0hKY0g/XuVoAiTRmvgp5XwhWpNOc4xRYYQDNdaW8g58BEo4UoarNnORwi45ezveDY+kg8GgPLfoOWaTELp3h1","nonce":"2G1y1eByUNxXhGkIsPW7qajKwe0OLP+p"}'
|
128
|
+
recorded_at: Wed, 11 May 2022 05:16:16 GMT
|
129
|
+
- request:
|
130
|
+
method: post
|
131
|
+
uri: https://api-sandbox.bolt.com/v1/merchant/transactions/authorize
|
132
|
+
body:
|
133
|
+
encoding: UTF-8
|
134
|
+
string: '{"auto_capture":false,"cart":{"total_amount":11000,"order_reference":"R502198337","currency":"USD","items":[{"sku":"SKU-1","name":"Product
|
135
|
+
#1 - 4860","unit_price":1000,"quantity":1}]},"credit_card":{"token":"1bbea32008aa500306d0ca290b8b8fcea1cf407da0666b6d5e38dc50bde37228","expiry":1652247076487,"last4":"1004","bin":"411111","network":"visa","expiration":"2023-05","token_type":"bolt"},"division_id":"","source":"direct_payments","user_identifier":{"email":"email1@example.com","phone":"555-555-0199"},"user_identity":{"first_name":"John","last_name":"Doe"},"create_bolt_account":false}'
|
136
|
+
headers:
|
137
|
+
Content-Type:
|
138
|
+
- application/json
|
139
|
+
X-Nonce:
|
140
|
+
- a4ecff604a0be1712928f6489c35f38b
|
141
|
+
X-Publishable-Key:
|
142
|
+
- "<PUBLISHABLE_KEY>"
|
143
|
+
X-Api-Key:
|
144
|
+
- db1bd1ff3631f9c3e30d3555ad2989fa7cbed58b2344aea911aa7e2d52dba3e3
|
145
|
+
Accept-Encoding:
|
146
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
147
|
+
Accept:
|
148
|
+
- "*/*"
|
149
|
+
User-Agent:
|
150
|
+
- Ruby
|
151
|
+
response:
|
152
|
+
status:
|
153
|
+
code: 200
|
154
|
+
message: OK
|
155
|
+
headers:
|
156
|
+
Date:
|
157
|
+
- Wed, 11 May 2022 05:16:18 GMT
|
158
|
+
Content-Type:
|
159
|
+
- application/json; charset=UTF-8
|
160
|
+
Transfer-Encoding:
|
161
|
+
- chunked
|
162
|
+
Connection:
|
163
|
+
- keep-alive
|
164
|
+
Public-Key-Pins-Report-Only:
|
165
|
+
- max-age=2592000;pin-sha256="OGAVOYhLZd3ADKYGFZOED1c5m1ObMlRv9PyIWrO4Nd0=";pin-sha256="RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=";pin-sha256="IXHYSIdST+XY22J5ivybYkntMIfjA5P6pMKX2hWG1BE=";report-uri="https://77aa1bd121ef22d50247a23390ce6cff.report-uri.io/r/default/hpkp/reportOnly"
|
166
|
+
Set-Cookie:
|
167
|
+
- trk=1f707d9e-27d0-4ffd-93c6-efe5e2274bba; Path=/; Max-Age=31536000; HttpOnly;
|
168
|
+
Secure; SameSite=None
|
169
|
+
Strict-Transport-Security:
|
170
|
+
- max-age=31536000; includeSubDomains; preload
|
171
|
+
X-Bolt-Api-Version:
|
172
|
+
- '2022-01-01'
|
173
|
+
X-Bolt-Trace-Id:
|
174
|
+
- Root=1-627b46a1-628ab1b0602ef1fa29cec6af
|
175
|
+
X-Device-Id:
|
176
|
+
- 401c0dcb791217fc4e140ffea60600d05e52c1afc491c015e3110557751e724b
|
177
|
+
X-Envoy-Upstream-Service-Time:
|
178
|
+
- '1165'
|
179
|
+
Server:
|
180
|
+
- envoy
|
181
|
+
body:
|
182
|
+
encoding: UTF-8
|
183
|
+
string: '{"transaction":{"id":"TA6ycQqjStRQ9","type":"cc_payment","processor":"vantiv","date":1652246177175,"reference":"BR6G-B6KH-WXBX","status":"pending","from_consumer":{"id":"CA3WXceXonaTM","first_name":"John","last_name":"Doe","phones":[{"id":"","number":"+1
|
184
|
+
5555550199","country_code":"1","status":"","priority":""}],"emails":[{"id":"","address":"email1@example.com","status":"","priority":""}],"email_verified":false,"platform_account_status":"none"},"to_consumer":{"id":"CAgqtmLcWPErV","first_name":"Daniele","last_name":"Palombo","phones":[{"id":"PAkJjgMi179yV","number":"5555555555","country_code":"1","status":"pending","priority":"primary"}],"emails":[{"id":"EAmCbHaM6E7v8","address":"danielepalombo@nebulab.com","status":"active","priority":"primary"}],"email_verified":false,"platform_account_status":"none"},"from_credit_card":{"id":"CAhp2hhyKhdRv","last4":"1004","bin":"411111","expiration":1682899200000,"network":"visa","token_type":"bolt","priority":"listed","display_network":"Visa","icon_asset_path":"img/issuer-logos/visa.png","status":"active"},"amount":{"amount":11000,"currency":"USD","currency_symbol":"$"},"authorization":{"auth":"84076958166069130","reason":"none","status":"succeeded"},"captures":null,"merchant_division":{"id":"MA9hYSVYJ12VA","merchant_id":"MA5Ho7ftc4HPz","public_id":"Rq4qB1QajYLn","description":"Daniele
|
185
|
+
Palombo (Nebulab)","display_name":"Solidus","logo":{"domain":"img-sandbox.bolt.com","resource":""},"platform":"none","hook_url":"https://918c9efe2fcf.ngrok.io/webhooks","hook_type":"bolt","is_universal_merchant_api":true,"is_webhooks_v2":true,"shipping_url":"","tax_url":"","debug_url":"https://asdf.ngrok.com/webhooks","confirmation_redirect_url":""},"transaction_properties":{"avs_result":"34","cvv_result":"M"},"indemnification_decision":"not_indemnified","indemnification_reason":"direct_payments","splits":[{"amount":{"amount":11000,"currency":"USD","currency_symbol":"$"},"type":"net"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"processing_fee"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"bolt_fee"}],"review_ticket":{"request_deadline":1652534177175}},"did_create_bolt_account":false}'
|
186
|
+
recorded_at: Wed, 11 May 2022 05:16:18 GMT
|
187
|
+
- request:
|
188
|
+
method: get
|
189
|
+
uri: https://api-sandbox.bolt.com/v1/merchant/transactions/BR6G-B6KH-WXBX
|
190
|
+
body:
|
191
|
+
encoding: US-ASCII
|
192
|
+
string: ''
|
193
|
+
headers:
|
194
|
+
X-Nonce:
|
195
|
+
- b25fa22d91e73f171e11a3d633424b9b
|
196
|
+
X-Api-Key:
|
197
|
+
- db1bd1ff3631f9c3e30d3555ad2989fa7cbed58b2344aea911aa7e2d52dba3e3
|
198
|
+
Accept-Encoding:
|
199
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
200
|
+
Accept:
|
201
|
+
- "*/*"
|
202
|
+
User-Agent:
|
203
|
+
- Ruby
|
204
|
+
response:
|
205
|
+
status:
|
206
|
+
code: 200
|
207
|
+
message: OK
|
208
|
+
headers:
|
209
|
+
Date:
|
210
|
+
- Wed, 11 May 2022 05:16:21 GMT
|
211
|
+
Content-Type:
|
212
|
+
- application/json; charset=UTF-8
|
213
|
+
Transfer-Encoding:
|
214
|
+
- chunked
|
215
|
+
Connection:
|
216
|
+
- keep-alive
|
217
|
+
Public-Key-Pins-Report-Only:
|
218
|
+
- max-age=2592000;pin-sha256="OGAVOYhLZd3ADKYGFZOED1c5m1ObMlRv9PyIWrO4Nd0=";pin-sha256="RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=";pin-sha256="IXHYSIdST+XY22J5ivybYkntMIfjA5P6pMKX2hWG1BE=";report-uri="https://77aa1bd121ef22d50247a23390ce6cff.report-uri.io/r/default/hpkp/reportOnly"
|
219
|
+
Set-Cookie:
|
220
|
+
- trk=7bf1bdfb-5a8e-487e-9768-b6401487ed21; Path=/; Max-Age=31536000; HttpOnly;
|
221
|
+
Secure; SameSite=None
|
222
|
+
Strict-Transport-Security:
|
223
|
+
- max-age=31536000; includeSubDomains; preload
|
224
|
+
X-Bolt-Api-Version:
|
225
|
+
- '2022-01-01'
|
226
|
+
X-Bolt-Trace-Id:
|
227
|
+
- Root=1-627b46a5-6d10bee8474694f4529fc6b4
|
228
|
+
X-Device-Id:
|
229
|
+
- 47502f830c556328d2b7ffeca8c4000d9f1cb1085ec18f3bcf28c9395d05ee24
|
230
|
+
X-Envoy-Upstream-Service-Time:
|
231
|
+
- '57'
|
232
|
+
Server:
|
233
|
+
- envoy
|
234
|
+
body:
|
235
|
+
encoding: UTF-8
|
236
|
+
string: '{"id":"TA6ycQqjStRQ9","type":"cc_payment","processor":"vantiv","date":1652246177175,"reference":"BR6G-B6KH-WXBX","status":"authorized","from_consumer":{"id":"CA3WXceXonaTM","first_name":"John","last_name":"Doe","phones":[{"id":"","number":"+1
|
237
|
+
5555550199","country_code":"1","status":"","priority":""}],"emails":[{"id":"","address":"email1@example.com","status":"","priority":""}],"email_verified":false,"platform_account_status":"none"},"to_consumer":{"id":"CAgqtmLcWPErV","first_name":"Daniele","last_name":"Palombo","phones":[{"id":"PAkJjgMi179yV","number":"5555555555","country_code":"1","status":"pending","priority":"primary"}],"emails":[{"id":"EAmCbHaM6E7v8","address":"danielepalombo@nebulab.com","status":"active","priority":"primary"}],"email_verified":false,"platform_account_status":"none"},"from_credit_card":{"id":"CAhp2hhyKhdRv","last4":"1004","bin":"411111","expiration":1682899200000,"network":"visa","token_type":"bolt","priority":"listed","display_network":"Visa","icon_asset_path":"img/issuer-logos/visa.png","status":"active"},"amount":{"amount":11000,"currency":"USD","currency_symbol":"$"},"authorization":{"auth":"84076958166069130","reason":"none","status":"succeeded"},"captures":null,"merchant_division":{"id":"MA9hYSVYJ12VA","merchant_id":"MA5Ho7ftc4HPz","public_id":"Rq4qB1QajYLn","description":"Daniele
|
238
|
+
Palombo (Nebulab)","display_name":"Solidus","logo":{"domain":"img-sandbox.bolt.com","resource":""},"platform":"none","hook_url":"https://918c9efe2fcf.ngrok.io/webhooks","hook_type":"bolt","is_universal_merchant_api":true,"is_webhooks_v2":true,"shipping_url":"","tax_url":"","debug_url":"https://asdf.ngrok.com/webhooks","confirmation_redirect_url":""},"merchant":{"created_at":"2022-03-29T21:04:10.707458Z","description":"Solidus","processor":"vantiv","operational_processors":[{"processor":"vantiv","status":"primary"}],"public_id":"CB_FtfGdUP2e","time_zone":"America/Los_Angeles","onboarding_status":"LEGACY"},"transaction_properties":{"avs_result":"34","cvv_result":"M"},"indemnification_decision":"not_indemnified","indemnification_reason":"risk_assessment_only","splits":[{"amount":{"amount":11000,"currency":"USD","currency_symbol":"$"},"type":"net"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"processing_fee"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"bolt_fee"}],"review_ticket":{"request_deadline":1652534177175},"adjust_transactions":[],"auth_verification_status":"","void_cause":"","chargeback_details":{"reason":"","reason_code":"","chargeback_amt":{"amount":0,"currency":"","currency_symbol":""},"chargeback_fee":{"amount":0,"currency":"","currency_symbol":""},"net_amt":{"amount":0,"currency":"","currency_symbol":""},"representment_result":""},"order":{"token":"2a9c6b8ce5ff30d0ca657bfff0d05b3f12a820ea029536144cfed4f1776996e6","cart":{"order_reference":"R502198337","display_id":"R502198337","currency":{"currency":"USD","currency_symbol":"$"},"subtotal_amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"total_amount":{"amount":11000,"currency":"USD","currency_symbol":"$"},"discount_amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"items":[{"reference":"","name":"Product
|
239
|
+
#1 - 4860","total_amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"unit_price":{"amount":1000,"currency":"USD","currency_symbol":"$"},"quantity":1,"sku":"SKU-1","type":"physical","taxable":true,"properties":[],"shipment_type":"door_delivery"}]},"external_data":{}},"refunded_amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"refund_transactions":[],"refund_transaction_ids":[],"source_transaction":null,"timeline":[{"date":1652246178815,"type":"note","note":"Bolt
|
240
|
+
Approved Order","visibility":"merchant"},{"date":1652246178219,"type":"note","note":"Authorized
|
241
|
+
Order","consumer":{"id":"CAh4gdi2qvcXx","first_name":"John","last_name":"Doe"},"visibility":"merchant"},{"date":1652246177185,"type":"note","note":"Created
|
242
|
+
Order","consumer":{"id":"CAh4gdi2qvcXx","first_name":"John","last_name":"Doe"},"visibility":"merchant"}],"customer_list_status":{"auto_approved":false,"block_listed":false},"address_change_request_metadata":{"can_change_shipping_address":true}}'
|
243
|
+
recorded_at: Wed, 11 May 2022 05:16:22 GMT
|
244
|
+
recorded_with: VCR 6.1.0
|