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
|
+
- Wed, 11 May 2022 14:33:08 GMT
|
29
|
+
X-Amzn-Requestid:
|
30
|
+
- 349a2d11-cc2b-4fd6-9d52-3b9923134e0e
|
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
|
+
- R9xdxGlzSK4FZjQ=
|
41
|
+
Cache-Control:
|
42
|
+
- public, max-age=604800
|
43
|
+
Etag:
|
44
|
+
- W/"2c-qVZerSDDiabAHoqCi/o+02DcdQI"
|
45
|
+
X-Powered-By:
|
46
|
+
- Express
|
47
|
+
X-Amzn-Trace-Id:
|
48
|
+
- Root=1-627bc924-5eeda16952036d9852c6f88f
|
49
|
+
X-Amzn-Remapped-Date:
|
50
|
+
- Wed, 11 May 2022 14:33:08 GMT
|
51
|
+
Via:
|
52
|
+
- 1.1 85310f8b6878a9cfaa0218e021ae364e.cloudfront.net (CloudFront), 1.1 2862752c63edb38e4edc7a47a3960f88.cloudfront.net
|
53
|
+
(CloudFront)
|
54
|
+
X-Amz-Cf-Pop:
|
55
|
+
- FCO50-C1
|
56
|
+
- FRA56-P7
|
57
|
+
X-Cache:
|
58
|
+
- Hit from cloudfront
|
59
|
+
X-Amz-Cf-Id:
|
60
|
+
- JyRQE0PtKDOckaVZZJ__HafLlf6sY7UCyqfhSPinexRYsNFsU1SwLQ==
|
61
|
+
Age:
|
62
|
+
- '85032'
|
63
|
+
body:
|
64
|
+
encoding: UTF-8
|
65
|
+
string: SnTw15miTFwqwPnqn95Xurm049JaNGWdKX38id7/Lik=
|
66
|
+
recorded_at: Thu, 12 May 2022 14:10:19 GMT
|
67
|
+
- request:
|
68
|
+
method: post
|
69
|
+
uri: https://sandbox.bolttk.com/token
|
70
|
+
body:
|
71
|
+
encoding: UTF-8
|
72
|
+
string: '{"payload":"Uza4spxwmT/px6+8EL3mbvtcre52wvaRH2MrLp9NParL3il7tovEiaMDkNes\nqqdvssjFwGU=\n","nonce":"NzYyNzY3MTY4ODM3MTMxODg2OTY3NDE2\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
|
+
- Thu, 12 May 2022 14:10:20 GMT
|
95
|
+
X-Amzn-Requestid:
|
96
|
+
- 31a3a63a-975c-4202-8245-17fbb5b93fb0
|
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
|
+
- SBBD-HEqSK4FjIA=
|
107
|
+
Etag:
|
108
|
+
- W/"111-qIoKxqZOWgN9ZJjm9AptB2DjDFc"
|
109
|
+
X-Powered-By:
|
110
|
+
- Express
|
111
|
+
X-Amzn-Trace-Id:
|
112
|
+
- Root=1-627d154c-32c06be22fe970932366a72b
|
113
|
+
X-Amzn-Remapped-Date:
|
114
|
+
- Thu, 12 May 2022 14:10:20 GMT
|
115
|
+
Via:
|
116
|
+
- 1.1 bd0862f3780a5b6b00eb4b20a831751c.cloudfront.net (CloudFront), 1.1 2862752c63edb38e4edc7a47a3960f88.cloudfront.net
|
117
|
+
(CloudFront)
|
118
|
+
X-Amz-Cf-Pop:
|
119
|
+
- FCO50-C1
|
120
|
+
- FCO50-C2
|
121
|
+
X-Cache:
|
122
|
+
- Miss from cloudfront
|
123
|
+
X-Amz-Cf-Id:
|
124
|
+
- RQqviDWweeR9TLf_flAoLfyCX9591s0Xeoj1r5dfbzwDoRNG4If_pg==
|
125
|
+
body:
|
126
|
+
encoding: UTF-8
|
127
|
+
string: '{"payload":"TN+cr0XaWz0kh5W/ythQHY6y1He6WXBj7kDfgHC3u2GvGtyUfjjIjAeVehWaoG4UJiIZ6KP+mkPaUhKtoDc8LdJfpoVYoTgjMeiZXl/qi9Wckxob292rZTJhP0NEP0bybcOGiKb4FkT7hfcwfbN890ojomagMFbl4PbXD7cTVCsJLldj+26ieddicvCG30qYwwIhV+PYWkxxOEvfGInSGw5w","nonce":"ACrrqve+fFAPYNg4qIlPOg53X76jjLPk"}'
|
128
|
+
recorded_at: Thu, 12 May 2022 14:10:20 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":"R747603628","currency":"USD","items":[{"sku":"SKU-3","name":"Product
|
135
|
+
#3 - 362","unit_price":1000,"quantity":1}]},"credit_card":{"token":"3363181337f6ad28fad41b841930f853db2a6946ee06b23642c5bcc2b945d3c9","expiry":1652365520489,"last4":"1004","bin":"411111","network":"visa","expiration":"2023-05","token_type":"bolt"},"division_id":"","source":"direct_payments","user_identifier":{"email":"email3@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
|
+
- 4e26fd215677a42d92668c25c0932d68
|
141
|
+
X-Publishable-Key:
|
142
|
+
- "<PUBLISHABLE_KEY>"
|
143
|
+
X-Api-Key:
|
144
|
+
- "<API_KEY>"
|
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
|
+
- Thu, 12 May 2022 14:10:23 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=0f924604-7efe-48e1-aeb2-bd1c3bfece7f; 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-627d154d-3b3ead0c637d6cb617634ed5
|
175
|
+
X-Device-Id:
|
176
|
+
- c2f600e88629c4ff0295616542d62db7cabd3de22220d85a33aaab0ec58c2f62
|
177
|
+
X-Envoy-Upstream-Service-Time:
|
178
|
+
- '1927'
|
179
|
+
Server:
|
180
|
+
- envoy
|
181
|
+
body:
|
182
|
+
encoding: UTF-8
|
183
|
+
string: '{"transaction":{"id":"TAeftee4mv4ea","type":"cc_payment","processor":"vantiv","date":1652364621521,"reference":"GQKG-TQ98-THTL","status":"pending","from_consumer":{"id":"CA5nyGxqNEmkU","first_name":"John","last_name":"Doe","phones":[{"id":"","number":"+1
|
184
|
+
5555550199","country_code":"1","status":"","priority":""}],"emails":[{"id":"","address":"email3@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":"CAdh83i18m1yv","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":"84076974425064101","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":1652652621521}},"did_create_bolt_account":false}'
|
186
|
+
recorded_at: Thu, 12 May 2022 14:10:23 GMT
|
187
|
+
- request:
|
188
|
+
method: post
|
189
|
+
uri: https://api-sandbox.bolt.com/v1/merchant/transactions/void
|
190
|
+
body:
|
191
|
+
encoding: UTF-8
|
192
|
+
string: '{"transaction_reference":"GQKG-TQ98-THTL","transaction_id":null}'
|
193
|
+
headers:
|
194
|
+
X-Nonce:
|
195
|
+
- f24c30937688c026344476659720f55e
|
196
|
+
Content-Type:
|
197
|
+
- application/json
|
198
|
+
X-Api-Key:
|
199
|
+
- "<API_KEY>"
|
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
|
+
- Thu, 12 May 2022 14:10:24 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=dedfe2af-c13a-47cb-9d25-fde9492ba342; 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-627d154f-038b487218423c0b4dbf5280
|
230
|
+
X-Device-Id:
|
231
|
+
- c6505a01052664bf043d934e2f612ad690d647d4f8459831d0471f23a59cf063
|
232
|
+
X-Envoy-Upstream-Service-Time:
|
233
|
+
- '909'
|
234
|
+
Server:
|
235
|
+
- envoy
|
236
|
+
body:
|
237
|
+
encoding: UTF-8
|
238
|
+
string: '{"id":"TAeftee4mv4ea","type":"cc_payment","processor":"vantiv","date":1652364621521,"reference":"GQKG-TQ98-THTL","status":"cancelled","from_consumer":{"id":"CA5nyGxqNEmkU","first_name":"John","last_name":"Doe","phones":[{"id":"","number":"+1
|
239
|
+
5555550199","country_code":"1","status":"","priority":""}],"emails":[{"id":"","address":"email3@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":"CAdh83i18m1yv","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":"84076974425064101","reason":"none","status":"succeeded"},"captures":null,"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":"","debug_url":"https://asdf.ngrok.com/webhooks","confirmation_redirect_url":""},"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":1652652621521}}'
|
241
|
+
recorded_at: Thu, 12 May 2022 14:10:24 GMT
|
242
|
+
recorded_with: VCR 6.1.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
|
+
- Wed, 11 May 2022 14:33:08 GMT
|
29
|
+
X-Amzn-Requestid:
|
30
|
+
- 349a2d11-cc2b-4fd6-9d52-3b9923134e0e
|
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
|
+
- R9xdxGlzSK4FZjQ=
|
41
|
+
Cache-Control:
|
42
|
+
- public, max-age=604800
|
43
|
+
Etag:
|
44
|
+
- W/"2c-qVZerSDDiabAHoqCi/o+02DcdQI"
|
45
|
+
X-Powered-By:
|
46
|
+
- Express
|
47
|
+
X-Amzn-Trace-Id:
|
48
|
+
- Root=1-627bc924-5eeda16952036d9852c6f88f
|
49
|
+
X-Amzn-Remapped-Date:
|
50
|
+
- Wed, 11 May 2022 14:33:08 GMT
|
51
|
+
Via:
|
52
|
+
- 1.1 85310f8b6878a9cfaa0218e021ae364e.cloudfront.net (CloudFront), 1.1 49b63bcd8e98358b5820f18285c2b4d4.cloudfront.net
|
53
|
+
(CloudFront)
|
54
|
+
X-Amz-Cf-Pop:
|
55
|
+
- FCO50-C1
|
56
|
+
- FRA56-P7
|
57
|
+
X-Cache:
|
58
|
+
- Hit from cloudfront
|
59
|
+
X-Amz-Cf-Id:
|
60
|
+
- CjAF9RlK1DkJpfcbMfg8tK7TZieLeEOXxc-i_nB4p2xmHUcfPEdgSg==
|
61
|
+
Age:
|
62
|
+
- '85028'
|
63
|
+
body:
|
64
|
+
encoding: UTF-8
|
65
|
+
string: SnTw15miTFwqwPnqn95Xurm049JaNGWdKX38id7/Lik=
|
66
|
+
recorded_at: Thu, 12 May 2022 14:10:16 GMT
|
67
|
+
- request:
|
68
|
+
method: post
|
69
|
+
uri: https://sandbox.bolttk.com/token
|
70
|
+
body:
|
71
|
+
encoding: UTF-8
|
72
|
+
string: '{"payload":"ss5/Zgx4ZSWonMMhH7EwEXXlgpBBBGyq1BiPjWSp8EGtmTnYjSsXOVpZWNlz\nvV2Nb5vt7u8=\n","nonce":"OTE5MTc5MTI0MTQxNDI5NTk4NTUyOTAy\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
|
+
- Thu, 12 May 2022 14:10:16 GMT
|
95
|
+
X-Amzn-Requestid:
|
96
|
+
- cff485ab-80e5-4a70-acbd-442cd030cf57
|
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
|
+
- SBBDXGbISK4FgMA=
|
107
|
+
Etag:
|
108
|
+
- W/"111-PCdQssx/p8HTXk5qbFFcwSbcy6o"
|
109
|
+
X-Powered-By:
|
110
|
+
- Express
|
111
|
+
X-Amzn-Trace-Id:
|
112
|
+
- Root=1-627d1548-76a175b011ca31e4049802d7
|
113
|
+
X-Amzn-Remapped-Date:
|
114
|
+
- Thu, 12 May 2022 14:10:16 GMT
|
115
|
+
Via:
|
116
|
+
- 1.1 c17c48d95463221e4fc3e623ea331c80.cloudfront.net (CloudFront), 1.1 29f497d809ce69f1f314c1e13d9cdec2.cloudfront.net
|
117
|
+
(CloudFront)
|
118
|
+
X-Amz-Cf-Pop:
|
119
|
+
- FCO50-C1
|
120
|
+
- FCO50-C2
|
121
|
+
X-Cache:
|
122
|
+
- Miss from cloudfront
|
123
|
+
X-Amz-Cf-Id:
|
124
|
+
- jAh5fGrNc_4pKlmFr-dShhQhRM3e80wR61NBOgCHQMzK4LjEudpvKw==
|
125
|
+
body:
|
126
|
+
encoding: UTF-8
|
127
|
+
string: '{"payload":"RnzEtWOq10942eBJ3Nx+WB6RmK310XgQlPQrzmNsjW8dUs6XwnjwBuuV35BvuZX6LQdDz61bt44Nik9wzGtXfEEyRU4opmbll5DPv2Sq8/xNrjhva8gmNvw7bpro0yzlLzuPX7BvJwGGo6ekUzI1e82xUTurMKnuqQ0hNDCG/f0q2QebcyXrIqeRhNt0qppqXEfw6P4IzrQo6UMtkUXpSsFI","nonce":"Ot0kbrUKZ8kRx8bsi78vBARU+I/yxyrH"}'
|
128
|
+
recorded_at: Thu, 12 May 2022 14:10: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":"R798651579","currency":"USD","items":[{"sku":"SKU-2","name":"Product
|
135
|
+
#2 - 387","unit_price":1000,"quantity":1}]},"credit_card":{"token":"a972d63a86812add2d7ba233fe27596a365c5c7995280b63b7f00a080b7c268d","expiry":1652365516630,"last4":"1004","bin":"411111","network":"visa","expiration":"2023-05","token_type":"bolt"},"division_id":"","source":"direct_payments","user_identifier":{"email":"email2@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
|
+
- 65936d1182c897daffb615a48dd0c329
|
141
|
+
X-Publishable-Key:
|
142
|
+
- "<PUBLISHABLE_KEY>"
|
143
|
+
X-Api-Key:
|
144
|
+
- "<API_KEY>"
|
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
|
+
- Thu, 12 May 2022 14:10: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=c42372cc-2d5d-4c8f-9a08-0edacabaf36a; 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-627d1549-103158c55f47e08c07608338
|
175
|
+
X-Device-Id:
|
176
|
+
- b516c8dfcc358dafb863730300766077b1c2fe765ff16c323cf282a447340645
|
177
|
+
X-Envoy-Upstream-Service-Time:
|
178
|
+
- '929'
|
179
|
+
Server:
|
180
|
+
- envoy
|
181
|
+
body:
|
182
|
+
encoding: UTF-8
|
183
|
+
string: '{"transaction":{"id":"TAdLSQ85K67LD","type":"cc_payment","processor":"vantiv","date":1652364617530,"reference":"NTQK-NB7P-HP48","status":"pending","from_consumer":{"id":"CAaVvR6eTYwqA","first_name":"John","last_name":"Doe","phones":[{"id":"","number":"+1
|
184
|
+
5555550199","country_code":"1","status":"","priority":""}],"emails":[{"id":"","address":"email2@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":"CAdPP5zTzFjR9","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":"83989013499252272","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":1652652617530}},"did_create_bolt_account":false}'
|
186
|
+
recorded_at: Thu, 12 May 2022 14:10:18 GMT
|
187
|
+
- request:
|
188
|
+
method: post
|
189
|
+
uri: https://api-sandbox.bolt.com/v1/merchant/transactions/void
|
190
|
+
body:
|
191
|
+
encoding: UTF-8
|
192
|
+
string: '{"transaction_reference":null,"transaction_id":"TAdLSQ85K67LD"}'
|
193
|
+
headers:
|
194
|
+
X-Nonce:
|
195
|
+
- 3f0904f2d35b97c302ae93be1e654d10
|
196
|
+
Content-Type:
|
197
|
+
- application/json
|
198
|
+
X-Api-Key:
|
199
|
+
- "<API_KEY>"
|
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
|
+
- Thu, 12 May 2022 14:10:19 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=bf285925-b193-431c-87ed-b38f2955a44f; 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-627d154b-3a701018770f0d7821d20816
|
230
|
+
X-Device-Id:
|
231
|
+
- 4d8aae378da59a2a9eaefb5f2cf427f87546fca9e42c3f0510edb7755f87d890
|
232
|
+
X-Envoy-Upstream-Service-Time:
|
233
|
+
- '685'
|
234
|
+
Server:
|
235
|
+
- envoy
|
236
|
+
body:
|
237
|
+
encoding: UTF-8
|
238
|
+
string: '{"id":"TAdLSQ85K67LD","type":"cc_payment","processor":"vantiv","date":1652364617530,"reference":"NTQK-NB7P-HP48","status":"cancelled","from_consumer":{"id":"CAaVvR6eTYwqA","first_name":"John","last_name":"Doe","phones":[{"id":"","number":"+1
|
239
|
+
5555550199","country_code":"1","status":"","priority":""}],"emails":[{"id":"","address":"email2@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":"CAdPP5zTzFjR9","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":"83989013499252272","reason":"none","status":"succeeded"},"captures":null,"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":"","debug_url":"https://asdf.ngrok.com/webhooks","confirmation_redirect_url":""},"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":1652652617530}}'
|
241
|
+
recorded_at: Thu, 12 May 2022 14:10:19 GMT
|
242
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,165 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api-sandbox.bolt.com/v1/account
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- "<BEARER AUTHORIZATION>"
|
12
|
+
X-Api-Key:
|
13
|
+
- "<API_KEY>"
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Fri, 20 May 2022 11:28:44 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=UTF-8
|
29
|
+
Content-Length:
|
30
|
+
- '568'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Public-Key-Pins-Report-Only:
|
34
|
+
- 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"
|
35
|
+
Set-Cookie:
|
36
|
+
- trk=ff3064f5-423d-4ccb-8c69-c99d68d3b23f; Path=/; Max-Age=31536000; HttpOnly;
|
37
|
+
Secure; SameSite=None
|
38
|
+
Strict-Transport-Security:
|
39
|
+
- max-age=31536000; includeSubDomains; preload
|
40
|
+
X-Bolt-Api-Version:
|
41
|
+
- '2022-01-01'
|
42
|
+
X-Bolt-Trace-Id:
|
43
|
+
- Root=1-62877b6c-2c72312277f16ad84b61bcff
|
44
|
+
X-Device-Id:
|
45
|
+
- cf7850bbef6674a2a25c543def5ef025b040b2a183a73bf92ff61424a6a18c8e
|
46
|
+
X-Envoy-Upstream-Service-Time:
|
47
|
+
- '18'
|
48
|
+
Server:
|
49
|
+
- envoy
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"profile":{"first_name":"Danny","last_name":"Dove","email":"dannydove+bolt3@gmail.com","phone":"987654321","name":"Danny
|
53
|
+
Dove"},"addresses":[{"id":"SA98t82gH2Grd","street_address1":"380 DEGRAW
|
54
|
+
ST","locality":"Brooklyn","region":"NEW YORK","region_code":"NY","postal_code":"11231","country_code":"US","name":"Danny
|
55
|
+
Dove","first_name":"Danny","last_name":"Dove","default":true}],"payment_methods":[{"id":"CA3tqG8Xg2RwS","type":"card","last4":"1111","network":"visa","default":true,"exp_month":11,"exp_year":2022}],"has_bolt_account":true}'
|
56
|
+
recorded_at: Fri, 20 May 2022 11:28:44 GMT
|
57
|
+
- request:
|
58
|
+
method: get
|
59
|
+
uri: https://api-sandbox.bolt.com/v1/account
|
60
|
+
body:
|
61
|
+
encoding: US-ASCII
|
62
|
+
string: ''
|
63
|
+
headers:
|
64
|
+
Authorization:
|
65
|
+
- "<BEARER AUTHORIZATION>"
|
66
|
+
X-Api-Key:
|
67
|
+
- "<API_KEY>"
|
68
|
+
Accept-Encoding:
|
69
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
70
|
+
Accept:
|
71
|
+
- "*/*"
|
72
|
+
User-Agent:
|
73
|
+
- Ruby
|
74
|
+
response:
|
75
|
+
status:
|
76
|
+
code: 200
|
77
|
+
message: OK
|
78
|
+
headers:
|
79
|
+
Date:
|
80
|
+
- Fri, 20 May 2022 11:28:44 GMT
|
81
|
+
Content-Type:
|
82
|
+
- application/json; charset=UTF-8
|
83
|
+
Content-Length:
|
84
|
+
- '568'
|
85
|
+
Connection:
|
86
|
+
- keep-alive
|
87
|
+
Public-Key-Pins-Report-Only:
|
88
|
+
- 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"
|
89
|
+
Set-Cookie:
|
90
|
+
- trk=e9407ca6-d196-4a0f-b231-8d7f18b7aab8; Path=/; Max-Age=31536000; HttpOnly;
|
91
|
+
Secure; SameSite=None
|
92
|
+
Strict-Transport-Security:
|
93
|
+
- max-age=31536000; includeSubDomains; preload
|
94
|
+
X-Bolt-Api-Version:
|
95
|
+
- '2022-01-01'
|
96
|
+
X-Bolt-Trace-Id:
|
97
|
+
- Root=1-62877b6c-5457e743775ef6cd191e8eeb
|
98
|
+
X-Device-Id:
|
99
|
+
- 155c7a2627b119007862ae20807dc7fe544d7fef9eb7fca605d7f3ba700cad01
|
100
|
+
X-Envoy-Upstream-Service-Time:
|
101
|
+
- '17'
|
102
|
+
Server:
|
103
|
+
- envoy
|
104
|
+
body:
|
105
|
+
encoding: UTF-8
|
106
|
+
string: '{"profile":{"first_name":"Danny","last_name":"Dove","email":"dannydove+bolt3@gmail.com","phone":"987654321","name":"Danny
|
107
|
+
Dove"},"addresses":[{"id":"SA98t82gH2Grd","street_address1":"380 DEGRAW
|
108
|
+
ST","locality":"Brooklyn","region":"NEW YORK","region_code":"NY","postal_code":"11231","country_code":"US","name":"Danny
|
109
|
+
Dove","first_name":"Danny","last_name":"Dove","default":true}],"payment_methods":[{"id":"CA3tqG8Xg2RwS","type":"card","last4":"1111","network":"visa","default":true,"exp_month":11,"exp_year":2022}],"has_bolt_account":true}'
|
110
|
+
recorded_at: Fri, 20 May 2022 11:28:44 GMT
|
111
|
+
- request:
|
112
|
+
method: get
|
113
|
+
uri: https://api-sandbox.bolt.com/v1/account
|
114
|
+
body:
|
115
|
+
encoding: US-ASCII
|
116
|
+
string: ''
|
117
|
+
headers:
|
118
|
+
Authorization:
|
119
|
+
- "<BEARER AUTHORIZATION>"
|
120
|
+
X-Api-Key:
|
121
|
+
- "<API_KEY>"
|
122
|
+
Accept-Encoding:
|
123
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
124
|
+
Accept:
|
125
|
+
- "*/*"
|
126
|
+
User-Agent:
|
127
|
+
- Ruby
|
128
|
+
response:
|
129
|
+
status:
|
130
|
+
code: 200
|
131
|
+
message: OK
|
132
|
+
headers:
|
133
|
+
Date:
|
134
|
+
- Fri, 20 May 2022 11:28:45 GMT
|
135
|
+
Content-Type:
|
136
|
+
- application/json; charset=UTF-8
|
137
|
+
Content-Length:
|
138
|
+
- '568'
|
139
|
+
Connection:
|
140
|
+
- keep-alive
|
141
|
+
Public-Key-Pins-Report-Only:
|
142
|
+
- 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"
|
143
|
+
Set-Cookie:
|
144
|
+
- trk=8f88d13b-09f2-4c74-b24f-f9389bd84f26; Path=/; Max-Age=31536000; HttpOnly;
|
145
|
+
Secure; SameSite=None
|
146
|
+
Strict-Transport-Security:
|
147
|
+
- max-age=31536000; includeSubDomains; preload
|
148
|
+
X-Bolt-Api-Version:
|
149
|
+
- '2022-01-01'
|
150
|
+
X-Bolt-Trace-Id:
|
151
|
+
- Root=1-62877b6d-7867be48633b5ba967d700ce
|
152
|
+
X-Device-Id:
|
153
|
+
- 0a632543de2188e14fb97a37efcb5f6a031ac2e48bbda2ea88630b85368f2a43
|
154
|
+
X-Envoy-Upstream-Service-Time:
|
155
|
+
- '18'
|
156
|
+
Server:
|
157
|
+
- envoy
|
158
|
+
body:
|
159
|
+
encoding: UTF-8
|
160
|
+
string: '{"profile":{"first_name":"Danny","last_name":"Dove","email":"dannydove+bolt3@gmail.com","phone":"987654321","name":"Danny
|
161
|
+
Dove"},"addresses":[{"id":"SA98t82gH2Grd","street_address1":"380 DEGRAW
|
162
|
+
ST","locality":"Brooklyn","region":"NEW YORK","region_code":"NY","postal_code":"11231","country_code":"US","name":"Danny
|
163
|
+
Dove","first_name":"Danny","last_name":"Dove","default":true}],"payment_methods":[{"id":"CA3tqG8Xg2RwS","type":"card","last4":"1111","network":"visa","default":true,"exp_month":11,"exp_year":2022}],"has_bolt_account":true}'
|
164
|
+
recorded_at: Fri, 20 May 2022 11:28:45 GMT
|
165
|
+
recorded_with: VCR 6.1.0
|