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,307 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api-sandbox.bolt.com/v1/merchant/transactions/GFND-CJCJ-3RT6
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
X-Nonce:
|
11
|
+
- 3c21dd76e93df33df4844e8a75c104a4
|
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, 13 May 2022 05:41:08 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=UTF-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
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=0780369c-8a61-4831-be11-48ec2c52e6ea; 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-627def74-779db37b4ae0a6f15c57af1d
|
44
|
+
X-Device-Id:
|
45
|
+
- 62a0d163c73e45f95b34304e0281631ec67ea2e056a8182319d54e9797180bac
|
46
|
+
X-Envoy-Upstream-Service-Time:
|
47
|
+
- '309'
|
48
|
+
Server:
|
49
|
+
- envoy
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: '{"id":"TAgk2aLEWmg5n","type":"cc_payment","processor":"vantiv","date":1652420463364,"reference":"GFND-CJCJ-3RT6","status":"completed","from_consumer":{"id":"CAhZmWN566F82","first_name":"John","last_name":"Doe","phones":[{"id":"","number":"+1
|
53
|
+
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":"CAa2gjNpm7ZGi","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":"83989013502313194","reason":"none","status":"succeeded"},"capture":{"id":"CAdGQAqaGaatb","status":"succeeded","amount":{"amount":11000,"currency":"USD","currency_symbol":"$"},"splits":[{"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"},{"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"}],"metadata":{"processor_capture_id":"83989013502313251"}},"captures":[{"id":"CAdGQAqaGaatb","status":"succeeded","amount":{"amount":11000,"currency":"USD","currency_symbol":"$"},"splits":[{"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"},{"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"}],"metadata":{"processor_capture_id":"83989013502313251"}}],"merchant_division":{"id":"MA9hYSVYJ12VA","merchant_id":"MA5Ho7ftc4HPz","public_id":"Rq4qB1QajYLn","description":"Daniele
|
54
|
+
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":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"},{"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":1652708463364},"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":"dd1b190feb6978f212e93f7bf2a8afb685d50dcf6aba16de5bef2e23abdace5d","cart":{"order_reference":"R388979045","display_id":"R388979045","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
|
55
|
+
#1 - 416","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":1652420467464,"type":"note","note":"Bolt
|
56
|
+
Automatically Captured Order","amount":{"amount":11000,"currency":"USD","currency_symbol":"$"},"visibility":"merchant"},{"date":1652420465627,"type":"note","note":"Bolt
|
57
|
+
Approved Order","visibility":"merchant"},{"date":1652420465090,"type":"note","note":"Authorized
|
58
|
+
Order","consumer":{"id":"CANL4Mzgw6cV","first_name":"John","last_name":"Doe"},"visibility":"merchant"},{"date":1652420463408,"type":"note","note":"Created
|
59
|
+
Order","consumer":{"id":"CANL4Mzgw6cV","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}}'
|
60
|
+
recorded_at: Fri, 13 May 2022 05:41:08 GMT
|
61
|
+
- request:
|
62
|
+
method: get
|
63
|
+
uri: https://sandbox.bolttk.com/public_key
|
64
|
+
body:
|
65
|
+
encoding: US-ASCII
|
66
|
+
string: ''
|
67
|
+
headers:
|
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
|
+
Content-Type:
|
80
|
+
- application/text; charset=utf-8
|
81
|
+
Content-Length:
|
82
|
+
- '44'
|
83
|
+
Connection:
|
84
|
+
- keep-alive
|
85
|
+
Date:
|
86
|
+
- Thu, 19 May 2022 14:34:08 GMT
|
87
|
+
X-Amzn-Requestid:
|
88
|
+
- 4a713794-71b1-46b0-92d1-33f8e10387cf
|
89
|
+
Access-Control-Allow-Origin:
|
90
|
+
- "*"
|
91
|
+
Strict-Transport-Security:
|
92
|
+
- max-age=31536000; includeSubDomains; preload
|
93
|
+
X-Amzn-Remapped-Content-Length:
|
94
|
+
- '44'
|
95
|
+
X-Amzn-Remapped-Connection:
|
96
|
+
- close
|
97
|
+
X-Amz-Apigw-Id:
|
98
|
+
- SYJHJHWcSK4Fhlw=
|
99
|
+
Cache-Control:
|
100
|
+
- public, max-age=604800
|
101
|
+
X-Powered-By:
|
102
|
+
- Express
|
103
|
+
X-Amzn-Trace-Id:
|
104
|
+
- Root=1-62865560-0f4ef8dc2fc5a1ab4fc48a32
|
105
|
+
X-Amzn-Remapped-Date:
|
106
|
+
- Thu, 19 May 2022 14:34:08 GMT
|
107
|
+
Via:
|
108
|
+
- 1.1 a811170f30183becd909b501e545e756.cloudfront.net (CloudFront), 1.1 be1eeba08198dafac1d1817f72d28b00.cloudfront.net
|
109
|
+
(CloudFront)
|
110
|
+
X-Amz-Cf-Pop:
|
111
|
+
- FRA56-P7
|
112
|
+
- MXP63-P2
|
113
|
+
Etag:
|
114
|
+
- W/"2c-qVZerSDDiabAHoqCi/o+02DcdQI"
|
115
|
+
X-Cache:
|
116
|
+
- Hit from cloudfront
|
117
|
+
X-Amz-Cf-Id:
|
118
|
+
- FHLOLBYnvC5t2aG6xxj9Mdsdj4jGEKI7rgedW8T47q3LJMvrbh7V_A==
|
119
|
+
Age:
|
120
|
+
- '85167'
|
121
|
+
body:
|
122
|
+
encoding: UTF-8
|
123
|
+
string: SnTw15miTFwqwPnqn95Xurm049JaNGWdKX38id7/Lik=
|
124
|
+
recorded_at: Fri, 20 May 2022 14:13:35 GMT
|
125
|
+
- request:
|
126
|
+
method: post
|
127
|
+
uri: https://sandbox.bolttk.com/token
|
128
|
+
body:
|
129
|
+
encoding: UTF-8
|
130
|
+
string: '{"payload":"8cMVNXd/0vnsz/1M6MOYGCfVuxCLOQC3eaGZuMWNrLo0dTtrNZ0vPmaFP2LF\nBfhvqRZIYhs=\n","nonce":"OTgzNjA5NDUzMzQwMDI3NTIxMTk4MzYw\n","public_key":"jOscXiiZCsn+nfXFetBF+3On0nAWgedP87ZbJUKizDw=\n"}'
|
131
|
+
headers:
|
132
|
+
Content-Type:
|
133
|
+
- application/json
|
134
|
+
Accept-Encoding:
|
135
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
136
|
+
Accept:
|
137
|
+
- "*/*"
|
138
|
+
User-Agent:
|
139
|
+
- Ruby
|
140
|
+
response:
|
141
|
+
status:
|
142
|
+
code: 200
|
143
|
+
message: OK
|
144
|
+
headers:
|
145
|
+
Content-Type:
|
146
|
+
- application/json; charset=utf-8
|
147
|
+
Content-Length:
|
148
|
+
- '273'
|
149
|
+
Connection:
|
150
|
+
- keep-alive
|
151
|
+
Date:
|
152
|
+
- Fri, 20 May 2022 14:13:35 GMT
|
153
|
+
X-Amzn-Requestid:
|
154
|
+
- 9b8204d9-527c-4581-9a9f-4371f8dc0d68
|
155
|
+
Access-Control-Allow-Origin:
|
156
|
+
- "*"
|
157
|
+
Strict-Transport-Security:
|
158
|
+
- max-age=31536000; includeSubDomains; preload
|
159
|
+
X-Amzn-Remapped-Content-Length:
|
160
|
+
- '273'
|
161
|
+
X-Amzn-Remapped-Connection:
|
162
|
+
- close
|
163
|
+
X-Amz-Apigw-Id:
|
164
|
+
- SbZCfGfLyK4FZeQ=
|
165
|
+
Etag:
|
166
|
+
- W/"111-4YYSAyeU0ihyU5oDZCSvdOr/1bg"
|
167
|
+
X-Powered-By:
|
168
|
+
- Express
|
169
|
+
X-Amzn-Trace-Id:
|
170
|
+
- Root=1-6287a20f-2e46fb7f4f1d7e136c1957d6
|
171
|
+
X-Amzn-Remapped-Date:
|
172
|
+
- Fri, 20 May 2022 14:13:35 GMT
|
173
|
+
Via:
|
174
|
+
- 1.1 240ebea27618238384903016b8e84168.cloudfront.net (CloudFront), 1.1 4493dc3008710a8dfc9586c416757fbc.cloudfront.net
|
175
|
+
(CloudFront)
|
176
|
+
X-Amz-Cf-Pop:
|
177
|
+
- MXP63-P1
|
178
|
+
- MXP63-P2
|
179
|
+
X-Cache:
|
180
|
+
- Miss from cloudfront
|
181
|
+
X-Amz-Cf-Id:
|
182
|
+
- voAvkO9npuZ7y0w5YbNGjNZd7trJg4Kt1b3bUVl-kqLpwB-F3CJTYA==
|
183
|
+
body:
|
184
|
+
encoding: UTF-8
|
185
|
+
string: '{"payload":"4ZM2XrZW+4UbvptVC9QBiut8bEbXZkToXpG5HSSN6IqLYu+kMZcIyS8XEiY82Haz3A7s/6VDnyoEL0h1RlPvXttjEW9UAK03Kof665wwHs2JS4e7uwfdS0YYq4XoYptwthT95OlNX3tdZw586+e+wxYZE2/uQFw62oQmAm8PFeqrsAgcb8GqZrPiYER2cnPzOLoZgwoPqCtgAE5gNp/u1Cjj","nonce":"wbCiAGj+DWuMo+FMsTFLTFfsR3dmw8ia"}'
|
186
|
+
recorded_at: Fri, 20 May 2022 14:13:35 GMT
|
187
|
+
- request:
|
188
|
+
method: post
|
189
|
+
uri: https://api-sandbox.bolt.com/v1/merchant/transactions/authorize
|
190
|
+
body:
|
191
|
+
encoding: UTF-8
|
192
|
+
string: '{"auto_capture":true,"cart":{"total_amount":11000,"order_reference":"R389862515","currency":"USD","items":[{"sku":"SKU-1","name":"Product
|
193
|
+
#1 - 9937","unit_price":1000,"quantity":1}]},"credit_card":{"token":"74d746158568485969b91d78257029a694624991733fb49a4f0357e7b299d4b2","expiry":1653056915774,"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"},"shipping_address":{"street_address1":"A
|
194
|
+
Different Road","street_address2":"Northwest","locality":"Herndon","region":"AL","postal_code":"10002","country_code":"US","first_name":"John","last_name":"Von
|
195
|
+
Doe","phone":"555-555-0199","email":"email1@example.com"},"create_bolt_account":false}'
|
196
|
+
headers:
|
197
|
+
Content-Type:
|
198
|
+
- application/json
|
199
|
+
X-Nonce:
|
200
|
+
- 3c21d76e40efc295db73b4db5cba8b33
|
201
|
+
X-Publishable-Key:
|
202
|
+
- "<PUBLISHABLE_KEY>"
|
203
|
+
X-Api-Key:
|
204
|
+
- "<API_KEY>"
|
205
|
+
Accept-Encoding:
|
206
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
207
|
+
Accept:
|
208
|
+
- "*/*"
|
209
|
+
User-Agent:
|
210
|
+
- Ruby
|
211
|
+
response:
|
212
|
+
status:
|
213
|
+
code: 200
|
214
|
+
message: OK
|
215
|
+
headers:
|
216
|
+
Date:
|
217
|
+
- Fri, 20 May 2022 14:13:38 GMT
|
218
|
+
Content-Type:
|
219
|
+
- application/json; charset=UTF-8
|
220
|
+
Transfer-Encoding:
|
221
|
+
- chunked
|
222
|
+
Connection:
|
223
|
+
- keep-alive
|
224
|
+
Public-Key-Pins-Report-Only:
|
225
|
+
- 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"
|
226
|
+
Set-Cookie:
|
227
|
+
- trk=6890043e-c31e-43b5-8da1-d048f7912664; Path=/; Max-Age=31536000; HttpOnly;
|
228
|
+
Secure; SameSite=None
|
229
|
+
Strict-Transport-Security:
|
230
|
+
- max-age=31536000; includeSubDomains; preload
|
231
|
+
X-Bolt-Api-Version:
|
232
|
+
- '2022-01-01'
|
233
|
+
X-Bolt-Trace-Id:
|
234
|
+
- Root=1-6287a210-3e6b3ad462fdffe52f276e2f
|
235
|
+
X-Device-Id:
|
236
|
+
- 9ab00f7cd71d14bb80a80a38b97266b947389a1a3206e6e1053e5379d858ff22
|
237
|
+
X-Envoy-Upstream-Service-Time:
|
238
|
+
- '2211'
|
239
|
+
Server:
|
240
|
+
- envoy
|
241
|
+
body:
|
242
|
+
encoding: UTF-8
|
243
|
+
string: '{"transaction":{"id":"TA3mNJfgoKvQn","type":"cc_payment","processor":"vantiv","date":1653056016852,"reference":"9TGF-NTLC-7KDC","status":"pending","from_consumer":{"id":"CA4ZawxzPEbEa","first_name":"John","last_name":"Doe","phones":[{"id":"","number":"+1
|
244
|
+
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":"CAbwFb4uG2EvH","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":"84077020690754767","reason":"none","status":"succeeded"},"captures":null,"merchant_division":{"id":"MA9hYSVYJ12VA","merchant_id":"MA5Ho7ftc4HPz","public_id":"Rq4qB1QajYLn","description":"Daniele
|
245
|
+
Palombo (Nebulab)","display_name":"Solidus","logo":{"domain":"img-sandbox.bolt.com","resource":""},"platform":"none","hook_url":"https://c4c9-106-73-12-66.jp.ngrok.io/webhooks/bolt","hook_type":"bolt","is_universal_merchant_api":true,"is_webhooks_v2":true,"shipping_url":"","tax_url":"","debug_url":"https://asdf.ngrok.com/webhooks","product_info_url":"https://d1e8-106-73-12-66.jp.ngrok.io/webhooks/bolt","confirmation_redirect_url":""},"transaction_properties":{"avs_result":"20","cvv_result":"M"},"indemnification_decision":"not_indemnified","indemnification_reason":"direct_payments","risk_score":0,"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":1653344016852}},"did_create_bolt_account":false}'
|
246
|
+
recorded_at: Fri, 20 May 2022 14:13:38 GMT
|
247
|
+
- request:
|
248
|
+
method: get
|
249
|
+
uri: https://api-sandbox.bolt.com/v1/merchant/transactions/9TGF-NTLC-7KDC
|
250
|
+
body:
|
251
|
+
encoding: US-ASCII
|
252
|
+
string: ''
|
253
|
+
headers:
|
254
|
+
X-Nonce:
|
255
|
+
- 5f2d0c72e6830c44e00753948f7e9504
|
256
|
+
X-Api-Key:
|
257
|
+
- "<API_KEY>"
|
258
|
+
Accept-Encoding:
|
259
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
260
|
+
Accept:
|
261
|
+
- "*/*"
|
262
|
+
User-Agent:
|
263
|
+
- Ruby
|
264
|
+
response:
|
265
|
+
status:
|
266
|
+
code: 200
|
267
|
+
message: OK
|
268
|
+
headers:
|
269
|
+
Date:
|
270
|
+
- Fri, 20 May 2022 14:17:06 GMT
|
271
|
+
Content-Type:
|
272
|
+
- application/json; charset=UTF-8
|
273
|
+
Transfer-Encoding:
|
274
|
+
- chunked
|
275
|
+
Connection:
|
276
|
+
- keep-alive
|
277
|
+
Public-Key-Pins-Report-Only:
|
278
|
+
- 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"
|
279
|
+
Set-Cookie:
|
280
|
+
- trk=1edfa523-aba0-4638-8242-ff94888aa112; Path=/; Max-Age=31536000; HttpOnly;
|
281
|
+
Secure; SameSite=None
|
282
|
+
Strict-Transport-Security:
|
283
|
+
- max-age=31536000; includeSubDomains; preload
|
284
|
+
X-Bolt-Api-Version:
|
285
|
+
- '2022-01-01'
|
286
|
+
X-Bolt-Trace-Id:
|
287
|
+
- Root=1-6287a2e2-79d81c991506b85977e9bfdf
|
288
|
+
X-Device-Id:
|
289
|
+
- c401730e2ee3b3a113a909651ec07f8d4b799e713f8c78524c217e6ddb8031cf
|
290
|
+
X-Envoy-Upstream-Service-Time:
|
291
|
+
- '300'
|
292
|
+
Server:
|
293
|
+
- envoy
|
294
|
+
body:
|
295
|
+
encoding: UTF-8
|
296
|
+
string: '{"id":"TA3mNJfgoKvQn","type":"cc_payment","processor":"vantiv","date":1653056016852,"reference":"9TGF-NTLC-7KDC","status":"completed","from_consumer":{"id":"CA4ZawxzPEbEa","first_name":"John","last_name":"Doe","phones":[{"id":"","number":"+1
|
297
|
+
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":"CAbwFb4uG2EvH","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":"84077020690754767","reason":"none","status":"succeeded"},"capture":{"id":"CAc7w77wSHHAk","status":"succeeded","amount":{"amount":11000,"currency":"USD","currency_symbol":"$"},"splits":[{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"apm_fee"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"platform_fee"},{"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"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"network_fee"}],"metadata":{"processor_capture_id":"83989059855459670"}},"captures":[{"id":"CAc7w77wSHHAk","status":"succeeded","amount":{"amount":11000,"currency":"USD","currency_symbol":"$"},"splits":[{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"apm_fee"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"platform_fee"},{"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"},{"amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"type":"network_fee"}],"metadata":{"processor_capture_id":"83989059855459670"}}],"merchant_division":{"id":"MA9hYSVYJ12VA","merchant_id":"MA5Ho7ftc4HPz","public_id":"Rq4qB1QajYLn","description":"Daniele
|
298
|
+
Palombo (Nebulab)","display_name":"Solidus","logo":{"domain":"img-sandbox.bolt.com","resource":""},"platform":"none","hook_url":"https://c4c9-106-73-12-66.jp.ngrok.io/webhooks/bolt","hook_type":"bolt","is_universal_merchant_api":true,"is_webhooks_v2":true,"shipping_url":"","tax_url":"","debug_url":"https://asdf.ngrok.com/webhooks","product_info_url":"https://d1e8-106-73-12-66.jp.ngrok.io/webhooks/bolt","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":"20","cvv_result":"M"},"indemnification_decision":"not_indemnified","indemnification_reason":"risk_assessment_only","risk_score":0,"splits":[{"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"},{"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":1653344016852},"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":"396c7da5eada0d8d445de06535aa062cd83d563f1dfd9be001dbc6bcc07e1993","cart":{"order_reference":"R389862515","display_id":"R389862515","currency":{"currency":"USD","currency_symbol":"$"},"subtotal_amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"total_amount":{"amount":11000,"currency":"USD","currency_symbol":"$"},"shipping_amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"discount_amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"items":[{"reference":"","name":"Product
|
299
|
+
#1 - 9937","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"}],"shipments":[{"id":"CA5AqYjzUePHz","shipping_address":{"id":"AAmPiFuQu3dzy","street_address1":"A
|
300
|
+
Different Road","street_address2":"Northwest","locality":"Herndon","region":"AL","region_code":"AL","postal_code":"10002","country_code":"US","name":"John
|
301
|
+
Von Doe","first_name":"John","last_name":"Von Doe","phone_number":"555-555-0199","email_address":"email1@example.com"},"shipping_method":"unknown","gift_options":null}]},"external_data":{}},"refunded_amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"refund_transactions":[],"refund_transaction_ids":[],"source_transaction":null,"timeline":[{"date":1653056021806,"type":"note","note":"Bolt
|
302
|
+
Automatically Captured Order","amount":{"amount":11000,"currency":"USD","currency_symbol":"$"},"visibility":"merchant"},{"date":1653056019551,"type":"note","note":"Bolt
|
303
|
+
Approved Order","visibility":"merchant"},{"date":1653056018666,"type":"note","note":"Authorized
|
304
|
+
Order","consumer":{"id":"CAa6DbvvMKfx3","first_name":"John","last_name":"Doe"},"visibility":"merchant"},{"date":1653056016896,"type":"note","note":"Created
|
305
|
+
Order","consumer":{"id":"CAa6DbvvMKfx3","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}}'
|
306
|
+
recorded_at: Fri, 20 May 2022 14:17:06 GMT
|
307
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,252 @@
|
|
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, 01 Jun 2022 01:43:08 GMT
|
29
|
+
X-Amzn-Requestid:
|
30
|
+
- ddd4fa64-dd84-4ebe-afb1-ae372a684415
|
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
|
+
- TBOW8F1wyK4FlRQ=
|
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-6296c42c-29270ad523ea2ebe25d8986a
|
49
|
+
X-Amzn-Remapped-Date:
|
50
|
+
- Wed, 01 Jun 2022 01:43:08 GMT
|
51
|
+
Via:
|
52
|
+
- 1.1 3396f08538cae17d7cab5e402e844a54.cloudfront.net (CloudFront), 1.1 dbb8846e318a67b0e0e38822350301ae.cloudfront.net
|
53
|
+
(CloudFront)
|
54
|
+
X-Amz-Cf-Pop:
|
55
|
+
- HIO50-C2
|
56
|
+
- LAX50-C3
|
57
|
+
X-Cache:
|
58
|
+
- Hit from cloudfront
|
59
|
+
X-Amz-Cf-Id:
|
60
|
+
- WUFxTVpCyFvJ7Z8TVv742W0sRzPyfmxjaJnLHIg1RDEdtIKKXvtV7g==
|
61
|
+
Age:
|
62
|
+
- '80300'
|
63
|
+
body:
|
64
|
+
encoding: UTF-8
|
65
|
+
string: SnTw15miTFwqwPnqn95Xurm049JaNGWdKX38id7/Lik=
|
66
|
+
recorded_at: Thu, 02 Jun 2022 00:01:29 GMT
|
67
|
+
- request:
|
68
|
+
method: post
|
69
|
+
uri: https://sandbox.bolttk.com/token
|
70
|
+
body:
|
71
|
+
encoding: UTF-8
|
72
|
+
string: '{"payload":"FLp+y7ibvlFn/K71OyZqGEVG1BbJJW/o4BaF6HbU/6xtKWj1Rks35CFDRlet\n6RIGHJAW3RI=\n","nonce":"ODM0MDgxMTA4NDIzODMyMzc0OTQwNzM4\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, 02 Jun 2022 00:01:29 GMT
|
95
|
+
X-Amzn-Requestid:
|
96
|
+
- c611ec26-d5ca-4c82-a7c1-7fde22b4c117
|
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
|
+
- TESaAFFMSK4Fhhg=
|
107
|
+
Etag:
|
108
|
+
- W/"111-88Fh86w3lUDF8zpS5j7vQXbKPIU"
|
109
|
+
X-Powered-By:
|
110
|
+
- Express
|
111
|
+
X-Amzn-Trace-Id:
|
112
|
+
- Root=1-6297fdd9-6a6ba8f67f4fbfc23caed06a
|
113
|
+
X-Amzn-Remapped-Date:
|
114
|
+
- Thu, 02 Jun 2022 00:01:29 GMT
|
115
|
+
Via:
|
116
|
+
- 1.1 bd9637c4f3589cb11bd1c97ee3334dcc.cloudfront.net (CloudFront), 1.1 e1635931be815d9b175f758edc0125ec.cloudfront.net
|
117
|
+
(CloudFront)
|
118
|
+
X-Amz-Cf-Pop:
|
119
|
+
- LAX50-C2
|
120
|
+
- LAX50-C3
|
121
|
+
X-Cache:
|
122
|
+
- Miss from cloudfront
|
123
|
+
X-Amz-Cf-Id:
|
124
|
+
- CcaYVCq1xP-P1s_lPluXNG8dVpueNrHjVVA_j_HW2NW_QHgI39qUug==
|
125
|
+
body:
|
126
|
+
encoding: UTF-8
|
127
|
+
string: '{"payload":"TBJhRKI5jgp41E/PIkAhAhRrPccvwM8u4NRYvi1m1pkwPJgsOObF4RDNkQJL+IoZVt2yaMUEnG5BIEIE0hcsgGj+7K1xSd3wvJhxY6h0Qhao2mX+SKJ5ywXE9X4wkiwe6BvW56Hm4I/lJW6KKw4JUjmmd4P6mFz/LkUPykhwykjU/768RpldKGI9qR+mhcL0juOM6/I5NZAfDXHFgJuHOmu5","nonce":"D1pH7c7czHKe+qg6ja0s00uVvicuH+8C"}'
|
128
|
+
recorded_at: Thu, 02 Jun 2022 00:01:30 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":"R176717922","currency":"USD","items":[{"sku":"SKU-1","name":"Product
|
135
|
+
#1 - 6989","unit_price":1000,"quantity":1}],"billing_address":{"street_address1":"PO
|
136
|
+
Box 1337","street_address2":"Northwest","locality":"Herndon","region":"AL","postal_code":"10001","country_code":"US","first_name":"John","last_name":"Von
|
137
|
+
Doe","phone":"555-555-0199","email":"email1@example.com"}},"source":"direct_payments","user_identifier":{"email":"email1@example.com","phone":"555-555-0199"},"user_identity":{"first_name":"John","last_name":"Doe"},"credit_card":{"token":"93fca3bf4de67c9876064c7030c0f55fc24e532941b7fe428bb6284380cd8813","expiry":1654128989469,"last4":"1004","bin":"411111","network":"visa","expiration":"2023-06","token_type":"bolt"},"division_id":"","shipping_address":{"street_address1":"A
|
138
|
+
Different Road","street_address2":"Northwest","locality":"Herndon","region":"AL","postal_code":"10002","country_code":"US","first_name":"John","last_name":"Von
|
139
|
+
Doe","phone":"555-555-0199","email":"email1@example.com"},"create_bolt_account":false}'
|
140
|
+
headers:
|
141
|
+
Content-Type:
|
142
|
+
- application/json
|
143
|
+
X-Nonce:
|
144
|
+
- 8af4a27e7a16d1d0bc8783f66d969bce
|
145
|
+
X-Publishable-Key:
|
146
|
+
- "<PUBLISHABLE_KEY>"
|
147
|
+
X-Api-Key:
|
148
|
+
- "<API_KEY>"
|
149
|
+
Accept-Encoding:
|
150
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
151
|
+
Accept:
|
152
|
+
- "*/*"
|
153
|
+
User-Agent:
|
154
|
+
- Ruby
|
155
|
+
response:
|
156
|
+
status:
|
157
|
+
code: 200
|
158
|
+
message: OK
|
159
|
+
headers:
|
160
|
+
Date:
|
161
|
+
- Thu, 02 Jun 2022 00:01:31 GMT
|
162
|
+
Content-Type:
|
163
|
+
- application/json; charset=UTF-8
|
164
|
+
Transfer-Encoding:
|
165
|
+
- chunked
|
166
|
+
Connection:
|
167
|
+
- keep-alive
|
168
|
+
Public-Key-Pins-Report-Only:
|
169
|
+
- 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"
|
170
|
+
Set-Cookie:
|
171
|
+
- trk=1c1c875e-61c4-4212-a784-04d9f1928ce1; Path=/; Max-Age=31536000; HttpOnly;
|
172
|
+
Secure; SameSite=None
|
173
|
+
Strict-Transport-Security:
|
174
|
+
- max-age=31536000; includeSubDomains; preload
|
175
|
+
X-Bolt-Api-Version:
|
176
|
+
- '2022-01-01'
|
177
|
+
X-Bolt-Trace-Id:
|
178
|
+
- Root=1-6297fdda-2224b935774f1c931d3e23cb
|
179
|
+
X-Device-Id:
|
180
|
+
- 84e8ee1221908851c3862dcae84095115cf4414fb7d3a6b837f6a6a2e327e3de
|
181
|
+
X-Envoy-Upstream-Service-Time:
|
182
|
+
- '1067'
|
183
|
+
Server:
|
184
|
+
- envoy
|
185
|
+
body:
|
186
|
+
encoding: UTF-8
|
187
|
+
string: '{"transaction":{"id":"TAbb4otzRr5ce","type":"cc_payment","processor":"vantiv","date":1654128090187,"reference":"4HYC-GXT8-RRC7","status":"pending","from_consumer":{"id":"CAkz7tSJWhC2Q","first_name":"John","last_name":"Doe","phones":[{"id":"","number":"+1
|
188
|
+
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":"CAmH4vrnNGhtc","last4":"1004","bin":"411111","expiration":1685577600000,"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":"83989147580314516","reason":"none","status":"succeeded"},"captures":null,"merchant_division":{"id":"MA9hYSVYJ12VA","merchant_id":"MA5Ho7ftc4HPz","public_id":"Rq4qB1QajYLn","description":"Daniele
|
189
|
+
Palombo (Nebulab)","display_name":"Solidus","logo":{"domain":"img-sandbox.bolt.com","resource":""},"platform":"none","hook_url":"https://solidus-bolt-demo.herokuapp.com/webhooks/bolt","hook_type":"bolt","is_universal_merchant_api":true,"is_webhooks_v2":true,"shipping_url":"","tax_url":"","debug_url":"https://asdf.ngrok.com/webhooks","product_info_url":"https://d1e8-106-73-12-66.jp.ngrok.io/webhooks/bolt","confirmation_redirect_url":""},"transaction_properties":{"avs_result":"20","cvv_result":"M"},"indemnification_decision":"not_indemnified","indemnification_reason":"direct_payments","risk_score":0,"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":1654416090187}},"did_create_bolt_account":false}'
|
190
|
+
recorded_at: Thu, 02 Jun 2022 00:01:31 GMT
|
191
|
+
- request:
|
192
|
+
method: get
|
193
|
+
uri: https://api-sandbox.bolt.com/v1/merchant/transactions/4HYC-GXT8-RRC7
|
194
|
+
body:
|
195
|
+
encoding: US-ASCII
|
196
|
+
string: ''
|
197
|
+
headers:
|
198
|
+
X-Nonce:
|
199
|
+
- d9521a21e6130e7398c7ec88a431e8ad
|
200
|
+
X-Api-Key:
|
201
|
+
- "<API_KEY>"
|
202
|
+
Accept-Encoding:
|
203
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
204
|
+
Accept:
|
205
|
+
- "*/*"
|
206
|
+
User-Agent:
|
207
|
+
- Ruby
|
208
|
+
response:
|
209
|
+
status:
|
210
|
+
code: 200
|
211
|
+
message: OK
|
212
|
+
headers:
|
213
|
+
Date:
|
214
|
+
- Thu, 02 Jun 2022 00:01:32 GMT
|
215
|
+
Content-Type:
|
216
|
+
- application/json; charset=UTF-8
|
217
|
+
Transfer-Encoding:
|
218
|
+
- chunked
|
219
|
+
Connection:
|
220
|
+
- keep-alive
|
221
|
+
Public-Key-Pins-Report-Only:
|
222
|
+
- 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"
|
223
|
+
Set-Cookie:
|
224
|
+
- trk=b27e7bb0-80eb-43ad-a40d-6a4812dcc36f; Path=/; Max-Age=31536000; HttpOnly;
|
225
|
+
Secure; SameSite=None
|
226
|
+
Strict-Transport-Security:
|
227
|
+
- max-age=31536000; includeSubDomains; preload
|
228
|
+
X-Bolt-Api-Version:
|
229
|
+
- '2022-01-01'
|
230
|
+
X-Bolt-Trace-Id:
|
231
|
+
- Root=1-6297fddc-108c6cb952486aa8798c8bfe
|
232
|
+
X-Device-Id:
|
233
|
+
- 77843c2392f80ede851952c6fcdf08100fa18486d467aab6abacf2c1f9545def
|
234
|
+
X-Envoy-Upstream-Service-Time:
|
235
|
+
- '73'
|
236
|
+
Server:
|
237
|
+
- envoy
|
238
|
+
body:
|
239
|
+
encoding: UTF-8
|
240
|
+
string: '{"id":"TAbb4otzRr5ce","type":"cc_payment","processor":"vantiv","date":1654128090187,"reference":"4HYC-GXT8-RRC7","status":"authorized","from_consumer":{"id":"CAkz7tSJWhC2Q","first_name":"John","last_name":"Doe","phones":[{"id":"","number":"+1
|
241
|
+
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":"CAmH4vrnNGhtc","last4":"1004","bin":"411111","expiration":1685577600000,"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":"83989147580314516","reason":"none","status":"succeeded"},"captures":null,"merchant_division":{"id":"MA9hYSVYJ12VA","merchant_id":"MA5Ho7ftc4HPz","public_id":"Rq4qB1QajYLn","description":"Daniele
|
242
|
+
Palombo (Nebulab)","display_name":"Solidus","logo":{"domain":"img-sandbox.bolt.com","resource":""},"platform":"none","hook_url":"https://solidus-bolt-demo.herokuapp.com/webhooks/bolt","hook_type":"bolt","is_universal_merchant_api":true,"is_webhooks_v2":true,"shipping_url":"","tax_url":"","debug_url":"https://asdf.ngrok.com/webhooks","product_info_url":"https://d1e8-106-73-12-66.jp.ngrok.io/webhooks/bolt","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":"20","cvv_result":"M"},"indemnification_decision":"not_indemnified","indemnification_reason":"risk_assessment_only","risk_score":0,"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":1654416090187},"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":"3c24fea8a942577d99a487c9b706b36e6a980ebc8f97513325f4e09d0a1e8c2b","cart":{"order_reference":"R176717922","display_id":"R176717922","currency":{"currency":"USD","currency_symbol":"$"},"subtotal_amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"total_amount":{"amount":11000,"currency":"USD","currency_symbol":"$"},"shipping_amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"discount_amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"billing_address":{"id":"AA6LsYeNSbSko","street_address1":"PO
|
243
|
+
Box 1337","street_address2":"Northwest","locality":"Herndon","region":"AL","region_code":"AL","postal_code":"10001","country_code":"US","name":"John
|
244
|
+
Von Doe","first_name":"John","last_name":"Von Doe","phone_number":"555-555-0199","email_address":"email1@example.com"},"items":[{"reference":"","name":"Product
|
245
|
+
#1 - 6989","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"}],"shipments":[{"id":"CAkuV8Hydz2DN","shipping_address":{"id":"AAnjjySfypG1P","street_address1":"A
|
246
|
+
Different Road","street_address2":"Northwest","locality":"Herndon","region":"AL","region_code":"AL","postal_code":"10002","country_code":"US","name":"John
|
247
|
+
Von Doe","first_name":"John","last_name":"Von Doe","phone_number":"555-555-0199","email_address":"email1@example.com"},"shipping_method":"unknown","gift_options":null}]},"external_data":{}},"refunded_amount":{"amount":0,"currency":"USD","currency_symbol":"$"},"refund_transactions":[],"refund_transaction_ids":[],"source_transaction":null,"timeline":[{"date":1654128092064,"type":"note","note":"Bolt
|
248
|
+
Approved Order","visibility":"merchant"},{"date":1654128091122,"type":"note","note":"Authorized
|
249
|
+
Order","consumer":{"id":"CA9AauiNoDfjY","first_name":"John","last_name":"Doe"},"visibility":"merchant"},{"date":1654128090198,"type":"note","note":"Created
|
250
|
+
Order","consumer":{"id":"CA9AauiNoDfjY","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}}'
|
251
|
+
recorded_at: Thu, 02 Jun 2022 00:01:33 GMT
|
252
|
+
recorded_with: VCR 6.1.0
|