forked from bigcommerce/checkout-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.mock.ts
264 lines (257 loc) · 41.3 KB
/
api.mock.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
export const checkoutConfig = {"context":{"flashMessages":[],"payment":{"token":"4961ce956bb9c8c65648a873a3a1bf8d"},"checkoutId":"1a370e05-4714-440b-94c5-37751b61a0a7","geoCountryCode":""},"customization":{"languageData":[]},"storeConfig":{"cdnPath":"https:\/\/jesseswallowed-cloud-dev-vm.store.bcdev\/rHEAD","checkoutSettings":{"hasMultiShippingEnabled":true,"enableOrderComments":true,"enableTermsAndConditions":false,"guestCheckoutEnabled":true,"isCardVaultingEnabled":true,"isCouponCodeCollapsed":true,"isPaymentRequestEnabled":false,"isPaymentRequestCanMakePaymentEnabled":false,"isSignInEmailEnabled":false,"isSpamProtectionEnabled":false,"isTrustedShippingAddressEnabled":true,"orderTermsAndConditions":"","orderTermsAndConditionsLocation":"payment","orderTermsAndConditionsLink":"","orderTermsAndConditionsType":"","privacyPolicyUrl":"","shippingQuoteFailedMessage":"Unfortunately one or more items in your cart can't be shipped to your location. Please choose a different delivery address.","isAccountCreationEnabled":true,"realtimeShippingProviders":["Fedex","UPS","USPS"],"remoteCheckoutProviders":["applepay","googlepaybraintree"],"providerWithCustomCheckout":null,"isAnalyticsEnabled":false,"isStorefrontSpamProtectionEnabled":true,"googleMapsApiKey":"","googleRecaptchaSitekey":"6LccmasUAAAAAIRhScC9asOrH_rQblw06weNOzDI","features":{"CHECKOUT-3573.expose_correct_error_message":true,"CHECKOUT-3671.do_not_render_payment_form_if_not_payment":true,"CHECKOUT-4941.account_creation_in_checkout":true,"CHECKOUT-4183.checkout_google_address_autocomplete_uk":true,"DATA-6891.missing_orders_within_GA":false,"CHECKOUT-4726.add_address_in_multishipping_checkout":true,"CHECKOUT-4936.enable_custom_item_shipping":true,"PAYMENTS-6806.enable_ppsdk_strategy":false,"PAYMENTS-6799.localise_checkout_payment_error_messages":true,"PROJECT-4097.Bolt_accounts":true,"PROJECT-4126.Bolt_onboarding":true,"PROJECT-3828.add_3ds_support_on_squarev2":true,"PAYPAL-1149.braintree-new-card-below-totals-banner-placement":true,"INT-4994.Opayo_3DS2":true},"requiresMarketingConsent":false},"currency":{"code":"USD","decimalPlaces":"2","decimalSeparator":".","isTransactional":true,"symbolLocation":"left","symbol":"$","thousandsSeparator":","},"displayDateFormat":"MMM do yyyy","inputDateFormat":"MM\/dd\/yyyy","formFields":{"billingAddressFields":[{"id":"field_4","name":"firstName","custom":false,"label":"First Name","required":true,"default":"","maxLength":""},{"id":"field_5","name":"lastName","custom":false,"label":"Last Name","required":true,"default":"","maxLength":""},{"id":"field_6","name":"company","custom":false,"label":"Company Name","required":false,"default":"","maxLength":""},{"id":"field_7","name":"phone","custom":false,"label":"Phone Number","required":false,"default":"","maxLength":""},{"id":"field_8","name":"address1","custom":false,"label":"Address Line 1","required":true,"default":"","maxLength":""},{"id":"field_9","name":"address2","custom":false,"label":"Address Line 2","required":false,"default":"","maxLength":""},{"id":"field_10","name":"city","custom":false,"label":"Suburb\/City","required":true,"default":"","maxLength":""},{"id":"field_11","name":"countryCode","custom":false,"label":"Country","required":true,"default":null,"maxLength":false},{"id":"field_12","name":"stateOrProvince","custom":false,"label":"State\/Province","required":true,"default":null,"maxLength":""},{"id":"field_13","name":"postalCode","custom":false,"label":"Zip\/Postcode","required":true,"default":"","maxLength":""}],"shippingAddressFields":[{"id":"field_14","name":"firstName","custom":false,"label":"First Name","required":true,"default":"","maxLength":""},{"id":"field_15","name":"lastName","custom":false,"label":"Last Name","required":true,"default":"","maxLength":""},{"id":"field_16","name":"company","custom":false,"label":"Company Name","required":false,"default":"","maxLength":""},{"id":"field_17","name":"phone","custom":false,"label":"Phone Number","required":false,"default":"","maxLength":""},{"id":"field_18","name":"address1","custom":false,"label":"Address Line 1","required":true,"default":"","maxLength":""},{"id":"field_19","name":"address2","custom":false,"label":"Address Line 2","required":false,"default":"","maxLength":""},{"id":"field_20","name":"city","custom":false,"label":"Suburb\/City","required":true,"default":"","maxLength":""},{"id":"field_21","name":"countryCode","custom":false,"label":"Country","required":true,"default":null,"maxLength":false},{"id":"field_22","name":"stateOrProvince","custom":false,"label":"State\/Province","required":true,"default":null,"maxLength":""},{"id":"field_23","name":"postalCode","custom":false,"label":"Zip\/Postcode","required":true,"default":"","maxLength":""}]},"links":{"cartLink":"https:\/\/my-dev-store-120807872.store.bcdev\/cart.php","checkoutLink":"https:\/\/my-dev-store-120807872.store.bcdev\/checkout","createAccountLink":"https:\/\/my-dev-store-120807872.store.bcdev\/login.php?action=create_account","forgotPasswordLink":"https:\/\/my-dev-store-120807872.store.bcdev\/login.php?action=reset_password","loginLink":"https:\/\/my-dev-store-120807872.store.bcdev\/login.php","orderConfirmationLink":"https:\/\/my-dev-store-120807872.store.bcdev\/checkout\/order-confirmation","siteLink":"https:\/\/my-dev-store-120807872.store.bcdev"},"paymentSettings":{"bigpayBaseUrl":"http:\/\/localhost:8080","clientSidePaymentProviders":["adyenv2","adyenv3","affirm","afterpay","authorizenet","barclays","bigpaypay","bluesnap","bolt","braintree","braintreepaypal","braintreepaypalcredit","braintreevisacheckout","cardconnect","cba_mpgs","ccavenuemars","clearpay","clover","chasepay","checkoutcom","cybersource","cybersourcev2","converge","elavon","eway","ewayrapid","firstdatae4v14","googlepayadyenv2","googlepayadyenv3","googlepaybraintree","googlepaycybersourcev2","googlepaycheckoutcom","googlepaystripe","googlepayorbital","hps","humm","laybuy","migs","moneris","mollie","nmi","orbital","paymetric","paypal","paypalcommercecreditcards","quadpay","quickbooks","sagepay","securenet","sezzle","shopkeep","squarev2","stripe","stripeupe","stripev3","usaepay","vantiv","vantivcore","wepay","zip","cabbage_pay","cabbage_pay.card","cabbage_pay.redirection","dlocal","dlocal.card","electronic_payment_exchange","electronic_payment_exchange.card","north_american_bancard","north_american_bancard.card","pinwheel","pinwheel.card","serve_first","serve_first.card","windcave","windcave.card"]},"shopperConfig":{"defaultNewsletterSignup":false,"passwordRequirements":{"alpha":"[A-Za-z]","numeric":"[0-9]","minlength":7,"error":"Passwords must be at least 7 characters and contain both alphabetic and numeric characters."},"showNewsletterSignup":true},"storeProfile":{"orderEmail":"[email protected]","shopPath":"https:\/\/my-dev-store-120807872.store.bcdev","storeCountry":"United States","storeCountryCode":"US","storeHash":"ww4qakij3j","storeId":10000310,"storeName":"My Local Dev Store","storePhoneNumber":"","storeLanguage":"en_US"},"imageDirectory":"product_images","isAngularDebuggingEnabled":true,"shopperCurrency":{"code":"USD","symbolLocation":"left","symbol":"$","decimalPlaces":"2","decimalSeparator":".","thousandsSeparator":",","exchangeRate":1,"isTransactional":true}}}
export const formFields = {
"billingAddress": [{
"id": "field_4",
"name": "firstName",
"custom": false,
"label": "First Name",
"required": true,
"default": "",
"maxLength": null,
"type": "string",
"fieldType": "text"
}, {
"id": "field_5",
"name": "lastName",
"custom": false,
"label": "Last Name",
"required": true,
"default": "",
"maxLength": null,
"type": "string",
"fieldType": "text"
}, {
"id": "field_6",
"name": "company",
"custom": false,
"label": "Company Name",
"required": false,
"default": "",
"maxLength": null,
"type": "string",
"fieldType": "text"
}, {
"id": "field_7",
"name": "phone",
"custom": false,
"label": "Phone Number",
"required": false,
"default": "",
"maxLength": null,
"type": "string",
"fieldType": "text"
}, {
"id": "field_8",
"name": "address1",
"custom": false,
"label": "Address Line 1",
"required": true,
"default": "",
"maxLength": null,
"type": "string",
"fieldType": "text"
}, {
"id": "field_9",
"name": "address2",
"custom": false,
"label": "Address Line 2",
"required": false,
"default": "",
"maxLength": null,
"type": "string",
"fieldType": "text"
}, {
"id": "field_10",
"name": "city",
"custom": false,
"label": "Suburb\/City",
"required": true,
"default": "",
"maxLength": null,
"type": "string",
"fieldType": "text"
}, {
"id": "field_11",
"name": "countryCode",
"custom": false,
"label": "Country",
"required": true,
"default": null,
"maxLength": null,
"type": "array",
"fieldType": "dropdown",
"options": {"helperLabel": "Choose a Country", "items": []}
}, {
"id": "field_12",
"name": "stateOrProvince",
"custom": false,
"label": "State\/Province",
"required": true,
"default": null,
"maxLength": null
}, {
"id": "field_13",
"name": "postalCode",
"custom": false,
"label": "Zip\/Postcode",
"required": true,
"default": "",
"maxLength": null,
"type": "string",
"fieldType": "text"
}],
"shippingAddress": [{
"id": "field_14",
"name": "firstName",
"custom": false,
"label": "First Name",
"required": true,
"default": "",
"maxLength": null,
"type": "string",
"fieldType": "text"
}, {
"id": "field_15",
"name": "lastName",
"custom": false,
"label": "Last Name",
"required": true,
"default": "",
"maxLength": null,
"type": "string",
"fieldType": "text"
}, {
"id": "field_16",
"name": "company",
"custom": false,
"label": "Company Name",
"required": false,
"default": "",
"maxLength": null,
"type": "string",
"fieldType": "text"
}, {
"id": "field_17",
"name": "phone",
"custom": false,
"label": "Phone Number",
"required": false,
"default": "",
"maxLength": null,
"type": "string",
"fieldType": "text"
}, {
"id": "field_18",
"name": "address1",
"custom": false,
"label": "Address Line 1",
"required": true,
"default": "",
"maxLength": null,
"type": "string",
"fieldType": "text"
}, {
"id": "field_19",
"name": "address2",
"custom": false,
"label": "Address Line 2",
"required": false,
"default": "",
"maxLength": null,
"type": "string",
"fieldType": "text"
}, {
"id": "field_20",
"name": "city",
"custom": false,
"label": "Suburb\/City",
"required": true,
"default": "",
"maxLength": null,
"type": "string",
"fieldType": "text"
}, {
"id": "field_21",
"name": "countryCode",
"custom": false,
"label": "Country",
"required": true,
"default": null,
"maxLength": null,
"type": "array",
"fieldType": "dropdown",
"options": {"helperLabel": "Choose a Country", "items": []}
}, {
"id": "field_22",
"name": "stateOrProvince",
"custom": false,
"label": "State\/Province",
"required": true,
"default": null,
"maxLength": null
}, {
"id": "field_23",
"name": "postalCode",
"custom": false,
"label": "Zip\/Postcode",
"required": true,
"default": "",
"maxLength": null,
"type": "string",
"fieldType": "text"
}],
"customerAccount": [{
"id": "field_14",
"name": "firstName",
"custom": false,
"label": "First Name",
"required": true,
"default": "",
"maxLength": null,
"type": "string",
"fieldType": "text"
}, {
"id": "field_15",
"name": "lastName",
"custom": false,
"label": "Last Name",
"required": true,
"default": "",
"maxLength": null,
"type": "string",
"fieldType": "text"
}, {
"id": "field_1",
"name": "email",
"custom": false,
"label": "Email Address",
"required": true,
"default": "",
"maxLength": null,
"type": "string",
"fieldType": "text"
}, {
"id": "field_2",
"name": "password",
"custom": false,
"label": "Password",
"required": true,
"default": "",
"maxLength": null,
"type": "string",
"fieldType": "password",
"secret": true,
"requirements": {
"alpha": "[A-Za-z]",
"description": "Passwords must be at least 7 characters and contain both alphabetic and numeric characters.",
"numeric": "[0-9]",
"minlength": 7
}
}]
}
export const checkout = {"id":"8c92f23b-2efb-4b63-9a66-ef74e3e55249","cart":{"id":"8c92f23b-2efb-4b63-9a66-ef74e3e55249","customerId":1,"email":"[email protected]","currency":{"name":"US Dollars","code":"USD","symbol":"$","decimalPlaces":2},"isTaxIncluded":false,"baseAmount":154.9,"discountAmount":0,"cartAmount":154.9,"coupons":[],"discounts":[{"id":"bb634036-3d31-4260-b3b6-08e2dec9fab6","discountedAmount":0},{"id":"9a26625c-b14a-4235-973e-13eb1c34ea85","discountedAmount":0}],"lineItems":{"physicalItems":[{"id":"bb634036-3d31-4260-b3b6-08e2dec9fab6","parentId":null,"variantId":73,"productId":107,"sku":"DPB","name":"[Sample] Dustpan & Brush","url":"https:\/\/my-dev-store-120807872.store.bcdev\/dustpan-brush\/","quantity":1,"brand":"OFS","isTaxable":true,"imageUrl":"https://abc-cloud-dev-vm.store.bcdev/store/m1krj3d4yv/products/86/images/286/ablebrewingsystem4.1647253530.190.285.jpg?c=1","discounts":[],"discountAmount":0,"couponAmount":0,"listPrice":34.95,"salePrice":34.95,"extendedListPrice":34.95,"extendedSalePrice":34.95,"comparisonPrice":34.95,"extendedComparisonPrice":34.95,"isShippingRequired":true,"giftWrapping":null,"addedByPromotion":false,"isMutable":true,"options":[],"categoryNames":["Shop All","Utility"]},{"id":"9a26625c-b14a-4235-973e-13eb1c34ea85","parentId":null,"variantId":69,"productId":97,"sku":"TWB","name":"[Sample] Tiered Wire Basket","url":"https:\/\/my-dev-store-120807872.store.bcdev\/tiered-wire-basket\/","quantity":1,"brand":"OFS","isTaxable":true,"imageUrl":"https://abc-cloud-dev-vm.store.bcdev/store/m1krj3d4yv/products/86/images/286/ablebrewingsystem4.1647253530.190.285.jpg?c=1","discounts":[],"discountAmount":0,"couponAmount":0,"listPrice":119.95,"salePrice":119.95,"extendedListPrice":119.95,"extendedSalePrice":119.95,"comparisonPrice":119.95,"extendedComparisonPrice":119.95,"isShippingRequired":true,"giftWrapping":null,"addedByPromotion":false,"isMutable":true,"options":[],"categoryNames":["Kitchen","Shop All"]}],"digitalItems":[],"giftCertificates":[],"customItems":[]},"createdTime":"2022-02-09T03:24:13+00:00","updatedTime":"2022-02-21T06:13:28+00:00","locale":"en"},"billingAddress":{"id":"62132d847b681","firstName":"One","lastName":"One","email":"[email protected]","company":"","address1":"wall st 2","address2":"","city":"new york","shouldSaveAddress":true,"stateOrProvince":"New York","stateOrProvinceCode":"NY","country":"United States","countryCode":"US","postalCode":"10000","phone":"","customFields":[]},"consignments":[{"id":"62132d84aae55","shippingCost":0,"handlingCost":0,"couponDiscounts":[],"discounts":[],"lineItemIds":["bb634036-3d31-4260-b3b6-08e2dec9fab6","9a26625c-b14a-4235-973e-13eb1c34ea85"],"selectedShippingOption":{"id":"4dcbf24f457dd67d5f89bcf374e0bc9b","type":"freeshipping","description":"Free Shipping","imageUrl":"","cost":0,"transitTime":"","additionalDescription":""},"shippingAddress":{"firstName":"One","lastName":"One","email":"[email protected]","company":"","address1":"wall st 2","address2":"","city":"new york","stateOrProvince":"New York","stateOrProvinceCode":"NY","country":"United States","countryCode":"US","postalCode":"10000","phone":"","customFields":[],"shouldSaveAddress":true}}],"orderId":127,"shippingCostTotal":0,"shippingCostBeforeDiscount":0,"handlingCostTotal":0,"taxTotal":0,"giftWrappingCostTotal":0,"coupons":[],"taxes":[{"name":"Tax","amount":0}],"subtotal":154.9,"grandTotal":154.9,"outstandingBalance":154.9,"isStoreCreditApplied":true,"shouldExecuteSpamCheck":false,"giftCertificates":[],"createdTime":"2022-02-09T03:24:13+00:00","updatedTime":"2022-02-21T06:13:28+00:00","customerMessage":"","customer":{"id":1,"isGuest":false,"email":"[email protected]","firstName":"BAD","lastName":"ROBOT","fullName":"BAD ROBOT","addresses":[{"id":1,"firstName":"One","lastName":"One","company":"","address1":"wall st 2","address2":"","city":"new york","stateOrProvince":"New York","stateOrProvinceCode":"NY","country":"United States","countryCode":"US","postalCode":"10000","phone":"","type":"residential","customFields":[]},{"id":2,"firstName":"Peng","lastName":"Zhou","company":"","address1":"55 Droop Street","address2":"","city":"Footscray","stateOrProvince":"Victoria","stateOrProvinceCode":"VIC","country":"Australia","countryCode":"AU","postalCode":"3011","phone":"0486922332","type":"residential","customFields":[]},{"id":3,"firstName":"NYC","lastName":"ROBOT","company":"","address1":"40 Exchange Pl","address2":"","city":"New York","stateOrProvince":"New York","stateOrProvinceCode":"NY","country":"United States","countryCode":"US","postalCode":"10005","phone":"0486922332","type":"residential","customFields":[]}],"storeCredit":0,"shouldEncourageSignIn":false},"promotions":[],"payments":[{}]}
// export const payments = [{"id":"bigpaypay","gateway":null,"logoUrl":"","method":"zzzblackhole","supportedCards":["VISA","AMEX","MC"],"providesShippingAddress":false,"config":{"displayName":"Test Payment Provider","cardCode":null,"helpText":"","enablePaypal":null,"merchantId":null,"is3dsEnabled":null,"testMode":false,"isVisaCheckoutEnabled":null,"requireCustomerCode":false,"isVaultingEnabled":false,"isVaultingCvvEnabled":null,"hasDefaultStoredInstrument":false,"isHostedFormEnabled":true,"logo":null},"type":"PAYMENT_TYPE_API","initializationStrategy":{"type":"not_applicable"},"nonce":null,"initializationData":null,"clientToken":"4961ce956bb9c8c65648a873a3a1bf8d","returnUrl":null}];
export const payments = [{"id":"scheme","gateway":"adyenv2","logoUrl":"","method":"scheme","supportedCards":["VISA","MC","AMEX","DISCOVER","CUP","MAESTRO","DINERS","JCB"],"providesShippingAddress":false,"config":{"displayName":"Credit Card","cardCode":null,"helpText":"","enablePaypal":null,"merchantId":null,"is3dsEnabled":null,"testMode":true,"isVisaCheckoutEnabled":null,"requireCustomerCode":false,"isVaultingEnabled":false,"isVaultingCvvEnabled":false,"hasDefaultStoredInstrument":false,"isHostedFormEnabled":true,"logo":null},"type":"PAYMENT_TYPE_API","initializationStrategy":{"type":"not_applicable"},"nonce":null,"initializationData":{"environment":"test","originKey":"pub.v2.8116106318209806.aHR0cHM6Ly9teS1kZXYtc3RvcmUtNzQ1NTE2NTI4LnN0b3JlLmJjZGV2.xsskoCN7-EHwlovnbDQ97LCnoNpwlXyazbXdKRqc4f0","clientKey":"","gateway":"adyenv2","paymentMethodsResponse":{"groups":[{"name":"WeChatPay","types":["wechatpayQR","wechatpayWeb"]},{"name":"AliPay","types":["alipay"]},{"name":"Credit Card","types":["visa","mc","amex","discover","cup","maestro","diners","jcb"]}],"paymentMethods":[{"brands":["visa","mc","amex","discover","cup","maestro","diners","jcb"],"details":[{"key":"number","type":"text"},{"key":"expiryMonth","type":"text"},{"key":"expiryYear","type":"text"},{"key":"cvc","type":"text"},{"key":"holderName","optional":true,"type":"text"}],"name":"Credit Card","supportsRecurring":true,"type":"scheme"},{"name":"AliPay","supportsRecurring":true,"type":"alipay"},{"details":[{"key":"number","type":"text"},{"key":"expiryMonth","type":"text"},{"key":"expiryYear","type":"text"},{"key":"cvc","type":"text"},{"key":"holderName","optional":true,"type":"text"},{"key":"telephoneNumber","optional":true,"type":"text"}],"name":"ExpressPay","supportsRecurring":true,"type":"cup"},{"details":[{"details":[{"key":"ownerName","type":"text"},{"key":"bankLocationId","type":"text"},{"key":"bankAccountNumber","type":"text"}],"key":"bankAccount","type":"bankAccount"}],"name":"ACH Direct Debit","supportsRecurring":true,"type":"ach"},{"name":"Pay later with Klarna.","supportsRecurring":true,"type":"klarna"},{"name":"Pay over time with Klarna.","supportsRecurring":true,"type":"klarna_account"},{"details":[{"key":"paywithgoogle.token","type":"payWithGoogleToken"}],"name":"Google Pay","supportsRecurring":true,"type":"paywithgoogle"},{"name":"WeChat Pay","supportsRecurring":true,"type":"wechatpayQR"},{"name":"WeChat Pay","supportsRecurring":true,"type":"wechatpayWeb"}]}},"clientToken":null,"returnUrl":"https:\/\/my-dev-store-745516528.store.bcdev\/checkout.php?action=set_external_checkout&provider=adyenv2"},{"id":"applepay","gateway":null,"logoUrl":"https:\/\/corypractised-cloud-dev-vm.store.bcdev\/rHEAD\/modules\/checkout\/applepay\/images\/[email protected]","method":"applepay","supportedCards":[],"providesShippingAddress":false,"config":{"displayName":"","cardCode":null,"helpText":"","enablePaypal":null,"merchantId":"190a47ca-9061-57db-b5b7-fad5cba1ffdd","is3dsEnabled":null,"testMode":false,"isVisaCheckoutEnabled":null,"requireCustomerCode":false,"isVaultingEnabled":false,"isVaultingCvvEnabled":null,"hasDefaultStoredInstrument":false,"isHostedFormEnabled":false,"logo":null},"type":"PAYMENT_TYPE_API","initializationStrategy":{"type":"not_applicable"},"nonce":null,"initializationData":{"storeName":"My Dev Store 745516528","countryCode":"US","currencyCode":"USD","supportedNetworks":["visa","masterCard","amex","discover"],"gateway":"adyenv2","merchantCapabilities":["supports3DS"],"merchantId":"190a47ca-9061-57db-b5b7-fad5cba1ffdd","paymentsUrl":"https:\/\/bigpay.service.bcdev","sentry":"https:\/\/[email protected]\/1188037","confirmationLink":"\/checkout\/order-confirmation"},"clientToken":null,"returnUrl":null},{"id":"ach","gateway":"adyenv2","logoUrl":"","method":"ach","supportedCards":[],"providesShippingAddress":false,"config":{"displayName":"ACH Direct Debit","cardCode":null,"helpText":"","enablePaypal":null,"merchantId":null,"is3dsEnabled":null,"testMode":true,"isVisaCheckoutEnabled":null,"requireCustomerCode":false,"isVaultingEnabled":false,"isVaultingCvvEnabled":false,"hasDefaultStoredInstrument":false,"isHostedFormEnabled":true,"logo":null},"type":"PAYMENT_TYPE_API","initializationStrategy":{"type":"not_applicable"},"nonce":null,"initializationData":{"environment":"test","originKey":"pub.v2.8116106318209806.aHR0cHM6Ly9teS1kZXYtc3RvcmUtNzQ1NTE2NTI4LnN0b3JlLmJjZGV2.xsskoCN7-EHwlovnbDQ97LCnoNpwlXyazbXdKRqc4f0","clientKey":"","gateway":"adyenv2","paymentMethodsResponse":{"groups":[{"name":"WeChatPay","types":["wechatpayQR","wechatpayWeb"]},{"name":"AliPay","types":["alipay"]},{"name":"Credit Card","types":["visa","mc","amex","discover","cup","maestro","diners","jcb"]}],"paymentMethods":[{"brands":["visa","mc","amex","discover","cup","maestro","diners","jcb"],"details":[{"key":"number","type":"text"},{"key":"expiryMonth","type":"text"},{"key":"expiryYear","type":"text"},{"key":"cvc","type":"text"},{"key":"holderName","optional":true,"type":"text"}],"name":"Credit Card","supportsRecurring":true,"type":"scheme"},{"name":"AliPay","supportsRecurring":true,"type":"alipay"},{"details":[{"key":"number","type":"text"},{"key":"expiryMonth","type":"text"},{"key":"expiryYear","type":"text"},{"key":"cvc","type":"text"},{"key":"holderName","optional":true,"type":"text"},{"key":"telephoneNumber","optional":true,"type":"text"}],"name":"ExpressPay","supportsRecurring":true,"type":"cup"},{"details":[{"details":[{"key":"ownerName","type":"text"},{"key":"bankLocationId","type":"text"},{"key":"bankAccountNumber","type":"text"}],"key":"bankAccount","type":"bankAccount"}],"name":"ACH Direct Debit","supportsRecurring":true,"type":"ach"},{"name":"Pay later with Klarna.","supportsRecurring":true,"type":"klarna"},{"name":"Pay over time with Klarna.","supportsRecurring":true,"type":"klarna_account"},{"details":[{"key":"paywithgoogle.token","type":"payWithGoogleToken"}],"name":"Google Pay","supportsRecurring":true,"type":"paywithgoogle"},{"name":"WeChat Pay","supportsRecurring":true,"type":"wechatpayQR"},{"name":"WeChat Pay","supportsRecurring":true,"type":"wechatpayWeb"}]}},"clientToken":null,"returnUrl":"https:\/\/my-dev-store-745516528.store.bcdev\/checkout.php?action=set_external_checkout&provider=adyenv2"},{"id":"alipay","gateway":"adyenv2","logoUrl":"","method":"alipay","supportedCards":[],"providesShippingAddress":false,"config":{"displayName":"AliPay","cardCode":null,"helpText":"","enablePaypal":null,"merchantId":null,"is3dsEnabled":null,"testMode":true,"isVisaCheckoutEnabled":null,"requireCustomerCode":false,"isVaultingEnabled":false,"isVaultingCvvEnabled":false,"hasDefaultStoredInstrument":false,"isHostedFormEnabled":true,"logo":null},"type":"PAYMENT_TYPE_API","initializationStrategy":{"type":"not_applicable"},"nonce":null,"initializationData":{"environment":"test","originKey":"pub.v2.8116106318209806.aHR0cHM6Ly9teS1kZXYtc3RvcmUtNzQ1NTE2NTI4LnN0b3JlLmJjZGV2.xsskoCN7-EHwlovnbDQ97LCnoNpwlXyazbXdKRqc4f0","clientKey":"","gateway":"adyenv2","paymentMethodsResponse":{"groups":[{"name":"WeChatPay","types":["wechatpayQR","wechatpayWeb"]},{"name":"AliPay","types":["alipay"]},{"name":"Credit Card","types":["visa","mc","amex","discover","cup","maestro","diners","jcb"]}],"paymentMethods":[{"brands":["visa","mc","amex","discover","cup","maestro","diners","jcb"],"details":[{"key":"number","type":"text"},{"key":"expiryMonth","type":"text"},{"key":"expiryYear","type":"text"},{"key":"cvc","type":"text"},{"key":"holderName","optional":true,"type":"text"}],"name":"Credit Card","supportsRecurring":true,"type":"scheme"},{"name":"AliPay","supportsRecurring":true,"type":"alipay"},{"details":[{"key":"number","type":"text"},{"key":"expiryMonth","type":"text"},{"key":"expiryYear","type":"text"},{"key":"cvc","type":"text"},{"key":"holderName","optional":true,"type":"text"},{"key":"telephoneNumber","optional":true,"type":"text"}],"name":"ExpressPay","supportsRecurring":true,"type":"cup"},{"details":[{"details":[{"key":"ownerName","type":"text"},{"key":"bankLocationId","type":"text"},{"key":"bankAccountNumber","type":"text"}],"key":"bankAccount","type":"bankAccount"}],"name":"ACH Direct Debit","supportsRecurring":true,"type":"ach"},{"name":"Pay later with Klarna.","supportsRecurring":true,"type":"klarna"},{"name":"Pay over time with Klarna.","supportsRecurring":true,"type":"klarna_account"},{"details":[{"key":"paywithgoogle.token","type":"payWithGoogleToken"}],"name":"Google Pay","supportsRecurring":true,"type":"paywithgoogle"},{"name":"WeChat Pay","supportsRecurring":true,"type":"wechatpayQR"},{"name":"WeChat Pay","supportsRecurring":true,"type":"wechatpayWeb"}]}},"clientToken":null,"returnUrl":"https:\/\/my-dev-store-745516528.store.bcdev\/checkout.php?action=set_external_checkout&provider=adyenv2"},{"id":"bigpaypay","gateway":null,"logoUrl":"","method":"zzzblackhole","supportedCards":["VISA","AMEX","MC"],"providesShippingAddress":false,"config":{"displayName":"Test Payment Provider","cardCode":null,"helpText":"","enablePaypal":null,"merchantId":null,"is3dsEnabled":null,"testMode":false,"isVisaCheckoutEnabled":null,"requireCustomerCode":false,"isVaultingEnabled":false,"isVaultingCvvEnabled":null,"hasDefaultStoredInstrument":false,"isHostedFormEnabled":true,"logo":null},"type":"PAYMENT_TYPE_API","initializationStrategy":{"type":"not_applicable"},"nonce":null,"initializationData":null,"clientToken":null,"returnUrl":null},{"id":"klarna","gateway":"adyenv2","logoUrl":"","method":"klarna","supportedCards":[],"providesShippingAddress":false,"config":{"displayName":"Pay later with Klarna.","cardCode":null,"helpText":"","enablePaypal":null,"merchantId":null,"is3dsEnabled":null,"testMode":true,"isVisaCheckoutEnabled":null,"requireCustomerCode":false,"isVaultingEnabled":false,"isVaultingCvvEnabled":false,"hasDefaultStoredInstrument":false,"isHostedFormEnabled":true,"logo":null},"type":"PAYMENT_TYPE_API","initializationStrategy":{"type":"not_applicable"},"nonce":null,"initializationData":{"environment":"test","originKey":"pub.v2.8116106318209806.aHR0cHM6Ly9teS1kZXYtc3RvcmUtNzQ1NTE2NTI4LnN0b3JlLmJjZGV2.xsskoCN7-EHwlovnbDQ97LCnoNpwlXyazbXdKRqc4f0","clientKey":"","gateway":"adyenv2","paymentMethodsResponse":{"groups":[{"name":"WeChatPay","types":["wechatpayQR","wechatpayWeb"]},{"name":"AliPay","types":["alipay"]},{"name":"Credit Card","types":["visa","mc","amex","discover","cup","maestro","diners","jcb"]}],"paymentMethods":[{"brands":["visa","mc","amex","discover","cup","maestro","diners","jcb"],"details":[{"key":"number","type":"text"},{"key":"expiryMonth","type":"text"},{"key":"expiryYear","type":"text"},{"key":"cvc","type":"text"},{"key":"holderName","optional":true,"type":"text"}],"name":"Credit Card","supportsRecurring":true,"type":"scheme"},{"name":"AliPay","supportsRecurring":true,"type":"alipay"},{"details":[{"key":"number","type":"text"},{"key":"expiryMonth","type":"text"},{"key":"expiryYear","type":"text"},{"key":"cvc","type":"text"},{"key":"holderName","optional":true,"type":"text"},{"key":"telephoneNumber","optional":true,"type":"text"}],"name":"ExpressPay","supportsRecurring":true,"type":"cup"},{"details":[{"details":[{"key":"ownerName","type":"text"},{"key":"bankLocationId","type":"text"},{"key":"bankAccountNumber","type":"text"}],"key":"bankAccount","type":"bankAccount"}],"name":"ACH Direct Debit","supportsRecurring":true,"type":"ach"},{"name":"Pay later with Klarna.","supportsRecurring":true,"type":"klarna"},{"name":"Pay over time with Klarna.","supportsRecurring":true,"type":"klarna_account"},{"details":[{"key":"paywithgoogle.token","type":"payWithGoogleToken"}],"name":"Google Pay","supportsRecurring":true,"type":"paywithgoogle"},{"name":"WeChat Pay","supportsRecurring":true,"type":"wechatpayQR"},{"name":"WeChat Pay","supportsRecurring":true,"type":"wechatpayWeb"}]}},"clientToken":null,"returnUrl":"https:\/\/my-dev-store-745516528.store.bcdev\/checkout.php?action=set_external_checkout&provider=adyenv2"},{"id":"klarna_account","gateway":"adyenv2","logoUrl":"","method":"klarna_account","supportedCards":[],"providesShippingAddress":false,"config":{"displayName":"Pay over time with Klarna.","cardCode":null,"helpText":"","enablePaypal":null,"merchantId":null,"is3dsEnabled":null,"testMode":true,"isVisaCheckoutEnabled":null,"requireCustomerCode":false,"isVaultingEnabled":false,"isVaultingCvvEnabled":false,"hasDefaultStoredInstrument":false,"isHostedFormEnabled":true,"logo":null},"type":"PAYMENT_TYPE_API","initializationStrategy":{"type":"not_applicable"},"nonce":null,"initializationData":{"environment":"test","originKey":"pub.v2.8116106318209806.aHR0cHM6Ly9teS1kZXYtc3RvcmUtNzQ1NTE2NTI4LnN0b3JlLmJjZGV2.xsskoCN7-EHwlovnbDQ97LCnoNpwlXyazbXdKRqc4f0","clientKey":"","gateway":"adyenv2","paymentMethodsResponse":{"groups":[{"name":"WeChatPay","types":["wechatpayQR","wechatpayWeb"]},{"name":"AliPay","types":["alipay"]},{"name":"Credit Card","types":["visa","mc","amex","discover","cup","maestro","diners","jcb"]}],"paymentMethods":[{"brands":["visa","mc","amex","discover","cup","maestro","diners","jcb"],"details":[{"key":"number","type":"text"},{"key":"expiryMonth","type":"text"},{"key":"expiryYear","type":"text"},{"key":"cvc","type":"text"},{"key":"holderName","optional":true,"type":"text"}],"name":"Credit Card","supportsRecurring":true,"type":"scheme"},{"name":"AliPay","supportsRecurring":true,"type":"alipay"},{"details":[{"key":"number","type":"text"},{"key":"expiryMonth","type":"text"},{"key":"expiryYear","type":"text"},{"key":"cvc","type":"text"},{"key":"holderName","optional":true,"type":"text"},{"key":"telephoneNumber","optional":true,"type":"text"}],"name":"ExpressPay","supportsRecurring":true,"type":"cup"},{"details":[{"details":[{"key":"ownerName","type":"text"},{"key":"bankLocationId","type":"text"},{"key":"bankAccountNumber","type":"text"}],"key":"bankAccount","type":"bankAccount"}],"name":"ACH Direct Debit","supportsRecurring":true,"type":"ach"},{"name":"Pay later with Klarna.","supportsRecurring":true,"type":"klarna"},{"name":"Pay over time with Klarna.","supportsRecurring":true,"type":"klarna_account"},{"details":[{"key":"paywithgoogle.token","type":"payWithGoogleToken"}],"name":"Google Pay","supportsRecurring":true,"type":"paywithgoogle"},{"name":"WeChat Pay","supportsRecurring":true,"type":"wechatpayQR"},{"name":"WeChat Pay","supportsRecurring":true,"type":"wechatpayWeb"}]}},"clientToken":null,"returnUrl":"https:\/\/my-dev-store-745516528.store.bcdev\/checkout.php?action=set_external_checkout&provider=adyenv2"},{"id":"wechatpayQR","gateway":"adyenv2","logoUrl":"","method":"wechatpayQR","supportedCards":[],"providesShippingAddress":false,"config":{"displayName":"WeChat Pay","cardCode":null,"helpText":"","enablePaypal":null,"merchantId":null,"is3dsEnabled":null,"testMode":true,"isVisaCheckoutEnabled":null,"requireCustomerCode":false,"isVaultingEnabled":false,"isVaultingCvvEnabled":false,"hasDefaultStoredInstrument":false,"isHostedFormEnabled":true,"logo":null},"type":"PAYMENT_TYPE_API","initializationStrategy":{"type":"not_applicable"},"nonce":null,"initializationData":{"environment":"test","originKey":"pub.v2.8116106318209806.aHR0cHM6Ly9teS1kZXYtc3RvcmUtNzQ1NTE2NTI4LnN0b3JlLmJjZGV2.xsskoCN7-EHwlovnbDQ97LCnoNpwlXyazbXdKRqc4f0","clientKey":"","gateway":"adyenv2","paymentMethodsResponse":{"groups":[{"name":"WeChatPay","types":["wechatpayQR","wechatpayWeb"]},{"name":"AliPay","types":["alipay"]},{"name":"Credit Card","types":["visa","mc","amex","discover","cup","maestro","diners","jcb"]}],"paymentMethods":[{"brands":["visa","mc","amex","discover","cup","maestro","diners","jcb"],"details":[{"key":"number","type":"text"},{"key":"expiryMonth","type":"text"},{"key":"expiryYear","type":"text"},{"key":"cvc","type":"text"},{"key":"holderName","optional":true,"type":"text"}],"name":"Credit Card","supportsRecurring":true,"type":"scheme"},{"name":"AliPay","supportsRecurring":true,"type":"alipay"},{"details":[{"key":"number","type":"text"},{"key":"expiryMonth","type":"text"},{"key":"expiryYear","type":"text"},{"key":"cvc","type":"text"},{"key":"holderName","optional":true,"type":"text"},{"key":"telephoneNumber","optional":true,"type":"text"}],"name":"ExpressPay","supportsRecurring":true,"type":"cup"},{"details":[{"details":[{"key":"ownerName","type":"text"},{"key":"bankLocationId","type":"text"},{"key":"bankAccountNumber","type":"text"}],"key":"bankAccount","type":"bankAccount"}],"name":"ACH Direct Debit","supportsRecurring":true,"type":"ach"},{"name":"Pay later with Klarna.","supportsRecurring":true,"type":"klarna"},{"name":"Pay over time with Klarna.","supportsRecurring":true,"type":"klarna_account"},{"details":[{"key":"paywithgoogle.token","type":"payWithGoogleToken"}],"name":"Google Pay","supportsRecurring":true,"type":"paywithgoogle"},{"name":"WeChat Pay","supportsRecurring":true,"type":"wechatpayQR"},{"name":"WeChat Pay","supportsRecurring":true,"type":"wechatpayWeb"}]}},"clientToken":null,"returnUrl":"https:\/\/my-dev-store-745516528.store.bcdev\/checkout.php?action=set_external_checkout&provider=adyenv2"}]
export const order = {"orderId":127,"cartId":"8c92f23b-2efb-4b63-9a66-ef74e3e55249","currency":{"name":"US Dollars","code":"USD","symbol":"$","decimalPlaces":2},"isTaxIncluded":false,"baseAmount":34.95,"discountAmount":0,"orderAmount":34.95,"orderAmountAsInteger":3495,"shippingCostTotal":0,"shippingCostBeforeDiscount":0,"handlingCostTotal":0,"giftWrappingCostTotal":0,"coupons":[],"lineItems":{"physicalItems":[{"id":32,"productId":107,"name":"[Sample] Dustpan & Brush","url":"https:\/\/my-dev-store-120807872.store.bcdev\/dustpan-brush\/","sku":"DPB","quantity":1,"isTaxable":true,"giftWrapping":null,"imageUrl":"https://abc-cloud-dev-vm.store.bcdev/store/m1krj3d4yv/products/86/images/286/ablebrewingsystem4.1647253530.190.285.jpg?c=1","discounts":[],"discountAmount":0,"listPrice":34.95,"salePrice":34.95,"extendedListPrice":34.95,"extendedSalePrice":34.95,"extendedComparisonPrice":34.95,"categories":[],"type":"physical","variantId":73,"socialMedia":[{"channel":"Facebook","code":"fb","text":"I just bought '[Sample] Dustpan & Brush' on My Local Dev Store","link":"http:\/\/www.facebook.com\/sharer\/sharer.php?p%5Burl%5D=https%3A%2F%2Fmy-dev-store-120807872.store.bcdev%2Fdustpan-brush%2F"},{"channel":"Twitter","code":"tw","text":"I just bought '[Sample] Dustpan & Brush' on My Local Dev Store","link":"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fmy-dev-store-120807872.store.bcdev%2Fdustpan-brush%2F&text=I+just+bought+%27%5BSample%5D+Dustpan+%26+Brush%27+on+My+Dev+Store+120807872"}],"options":[]}],"digitalItems":[],"giftCertificates":[]},"customerId":1,"billingAddress":{"firstName":"One","lastName":"One","email":"[email protected]","company":"","address1":"wall st 2","address2":"","city":"new york","stateOrProvince":"New York","stateOrProvinceCode":"NY","country":"United States","countryCode":"US","postalCode":"10000","phone":"","customFields":[]},"status":"INCOMPLETE","customerCanBeCreated":false,"hasDigitalItems":false,"isDownloadable":false,"isComplete":false,"customerMessage":"","taxes":[{"name":"Tax","amount":0}],"taxTotal":0,"channelId":1,"consignments":{"shipping":[{"lineItems":[{"id":32}],"shippingAddressId":30,"firstName":"One","lastName":"One","company":"","address1":"wall st 2","address2":"","city":"new york","stateOrProvince":"New York","postalCode":"10000","country":"United States","countryCode":"US","email":"[email protected]","phone":"","itemsTotal":1,"itemsShipped":0,"shippingMethod":"Free Shipping","baseCost":0,"costExTax":0,"costIncTax":0,"costTax":0,"costTaxClassId":2,"baseHandlingCost":0,"handlingCostExTax":0,"handlingCostIncTax":0,"handlingCostTax":0,"handlingCostTaxClassId":2,"shippingZoneId":1,"shippingZoneName":"United States","customFields":[]}],"pickup":[]},"payments":[]}
export const submitOrder = {"data":{"order":{"orderId":109,"token":"4961ce956bb9c8c65648a873a3a1bf8d","payment":{"id":"","gateway":null,"status":"PAYMENT_STATUS_INITIALIZE","helpText":null},"socialData":{"86":{"fb":{"name":"[Sample] Able Brewing System","description":"Stemming from an intense passion for the most flavourful cup of coffee, Able Brewing set out to create a brewer that was as aesthetically pleasing as it was functional. They imagined a product that...","image":"https:\/\/corypractised-cloud-dev-vm.store.bcdev\/store\/m1krj3d4yv\/products\/86\/images\/286\/ablebrewingsystem4.1647253530.190.285.jpg?c=1","url":"https:\/\/my-dev-store-745516528.store.bcdev\/able-brewing-system\/","shareText":"I just bought '[Sample] Able Brewing System' on My Dev Store 745516528","sharingLink":"http:\/\/www.facebook.com\/sharer\/sharer.php?p%5Burl%5D=https%3A%2F%2Fmy-dev-store-745516528.store.bcdev%2Fable-brewing-system%2F","channelName":"Facebook","channelCode":"fb"},"tw":{"name":"[Sample] Able Brewing System","description":"Stemming from an intense passion for the most flavourful cup of coffee, Able Brewing set out to create a brewer that was as aesthetically pleasing as it was functional. They imagined a product that...","image":"https:\/\/corypractised-cloud-dev-vm.store.bcdev\/store\/m1krj3d4yv\/products\/86\/images\/286\/ablebrewingsystem4.1647253530.190.285.jpg?c=1","url":"https:\/\/my-dev-store-745516528.store.bcdev\/able-brewing-system\/","shareText":"I just bought '[Sample] Able Brewing System' on My Dev Store 745516528","sharingLink":"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fmy-dev-store-745516528.store.bcdev%2Fable-brewing-system%2F&text=I+just+bought+%27%5BSample%5D+Able+Brewing+System%27+on+My+Dev+Store+745516528","channelName":"Twitter","channelCode":"tw"}}},"status":"ORDER_STATUS_INCOMPLETE","customerCreated":false,"hasDigitalItems":false,"isDownloadable":false,"isComplete":false,"callbackUrl":"https:\/\/internalapi-10000455.store.bcdev\/internalapi\/v1\/checkout\/order\/109\/payment","customerCanBeCreated":false,"id":109,"items":[{"id":86,"type":"ItemPhysicalEntity","name":"[Sample] Able Brewing System","imageUrl":"https://abc-cloud-dev-vm.store.bcdev/store/m1krj3d4yv/products/86/images/286/ablebrewingsystem4.1647253530.190.285.jpg?c=1","quantity":1,"amount":225,"discount":0,"amountAfterDiscount":225,"tax":0,"attributes":[],"integerAmount":22500,"integerDiscount":0,"integerAmountAfterDiscount":22500,"integerTax":0}],"currency":"USD","subtotal":{"amount":225,"integerAmount":22500},"coupon":{"discountedAmount":0,"coupons":[]},"discount":{"amount":0,"integerAmount":0},"discountNotifications":[],"giftCertificate":{"totalDiscountedAmount":0,"appliedGiftCertificates":[]},"shipping":{"amount":0,"integerAmount":0,"amountBeforeDiscount":0,"integerAmountBeforeDiscount":0,"required":true},"storeCredit":{"amount":0},"taxSubtotal":{"amount":0,"integerAmount":0},"taxes":[{"name":"Tax","amount":0}],"taxTotal":{"amount":0,"integerAmount":0},"handling":{"amount":0,"integerAmount":0},"grandTotal":{"amount":225,"integerAmount":22500}}},"meta":{"deviceFingerprint":null}};
export const submitPayment = {"status":"ok","three_ds_result":{"acs_url":null,"payer_auth_request":null,"merchant_data":null,"callback_url":null},"errors":[]};