@alipay/ams-checkout 0.0.1744283958-dev.0 → 0.0.1744283958-dev.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,927 @@
1
+ export var sdkAction = {
2
+ accountInfo: {
3
+ accountStatus: 'EFFECTIVE',
4
+ email: 'test10@test.com'
5
+ },
6
+ amountConfirmRequired: false,
7
+ autoDebitWithToken: false,
8
+ errorActions: {},
9
+ extendInfo: {},
10
+ links: {
11
+ privacyLink: 'https://render.alipay.com/p/c/180021490000000150/index.html?agreementId=GL00100002',
12
+ cookieLink: 'https://render.alipay.com/p/c/180021490000000147/index.html?agreementId=GL00100001'
13
+ },
14
+ needInstallmentAbility: false,
15
+ needOtherElements: true,
16
+ openPopPaymentRetryAbility: 'Y',
17
+ orderAmount: {
18
+ amount: '289.86',
19
+ currency: 'USD',
20
+ currencyLabel: 'US $',
21
+ formattedAmount: '289.86',
22
+ formattedAmountWithCurrency: 'US $289.86',
23
+ value: '28986'
24
+ },
25
+ orderAmountView: {
26
+ currency: 'USD',
27
+ currencyDivider: ' ',
28
+ currencyLabel: '$',
29
+ currencySymbolPosition: 'L',
30
+ formattedValue: '289.86',
31
+ value: '289.86'
32
+ },
33
+ paymentAmount: {
34
+ amount: '289.86',
35
+ currency: 'USD',
36
+ currencyLabel: 'US $',
37
+ formattedAmount: '289.86',
38
+ formattedAmountWithCurrency: 'US $289.86',
39
+ value: '28986'
40
+ },
41
+ paymentAmountView: {
42
+ currency: 'USD',
43
+ currencyDivider: ' ',
44
+ currencyLabel: '$',
45
+ currencySymbolPosition: 'L',
46
+ formattedValue: '289.86',
47
+ value: '289.86'
48
+ },
49
+ paymentMethods: [{
50
+ antomPage: 'paymentMetaPage',
51
+ category: 'CARD',
52
+ expressCheckout: false,
53
+ icon: 'https://cdn.marmot-cloud.com/storage/2024/07/15/c77c0d3d-a3d0-48ad-8a40-cb3e777a2608.svg',
54
+ iconName: 'Card',
55
+ links: [],
56
+ logoList: [{
57
+ cardBrand: 'VISA',
58
+ logoUrl: 'https://cdn.marmot-cloud.com/storage/2024/7/2/fb4ab30f-8f49-4632-8bb1-fd64b2f21861.svg'
59
+ }, {
60
+ cardBrand: 'MASTERCARD',
61
+ logoUrl: 'https://cdn.marmot-cloud.com/storage/2024/05/15/e9fc0f9a-14cb-4c32-9039-a746afa1a815.svg'
62
+ }, {
63
+ cardBrand: 'CARTEBANCAIRE',
64
+ logoUrl: 'https://cdn.marmot-cloud.com/storage/2024/2/23/dc4e43c8-0de1-421b-92b2-3c85f5f5a209.svg'
65
+ }],
66
+ paymentElements: [{
67
+ defaultValue: '',
68
+ elementMandatory: false,
69
+ elementType: 'DIGIT_32',
70
+ extendInfo: '{"needOtherElements":true,"isTempTokenization":"true"}',
71
+ paymentElementKey: 'paymentMethodId',
72
+ subPaymentElementView: [{
73
+ defaultText: 'Card number',
74
+ defaultValue: '',
75
+ elementMandatory: true,
76
+ elementRegx: '^\\d{14,19}$',
77
+ elementType: 'DIGIT_18',
78
+ extendInfo: '{"completeKey":"cc-number"}',
79
+ paramIllegalText: 'Enter a valid 14- to 19-digit card number.',
80
+ paymentElementKey: 'cardNo',
81
+ title: 'Enter card number',
82
+ validateFunction: '^\\d{14,19}$'
83
+ }, {
84
+ defaultText: 'Exp date (MM/YY)',
85
+ defaultValue: '',
86
+ elementMandatory: true,
87
+ elementType: 'DIGIT_4',
88
+ extendInfo: '{"completeKey":"cc-exp"}',
89
+ isPart: 'true',
90
+ paramIllegalText: 'Enter a valid expiry date.',
91
+ paymentElementKey: 'expiryYear'
92
+ }, {
93
+ defaultText: 'Exp date (MM/YY)',
94
+ defaultValue: '',
95
+ elementMandatory: true,
96
+ elementType: 'DIGIT_4',
97
+ extendInfo: '{"completeKey":"cc-exp"}',
98
+ isPart: 'true',
99
+ paramIllegalText: 'Enter a valid expiry date.',
100
+ paymentElementKey: 'expiryMonth'
101
+ }, {
102
+ defaultText: 'CVV',
103
+ defaultValue: '',
104
+ elementMandatory: true,
105
+ elementRegx: '^\\d{3,4}$',
106
+ elementType: 'TEXT',
107
+ extendInfo: '{}',
108
+ isPartEnd: 'true',
109
+ paramIllegalText: 'Enter a valid 3- or 4-digit CVV number.',
110
+ paymentElementKey: 'cardCVV',
111
+ validateFunction: '^\\d{3,4}$'
112
+ }, {
113
+ defaultText: 'Name on card',
114
+ defaultValue: '',
115
+ elementMandatory: true,
116
+ elementRegx: '^[\\w\\s]{1,128}$',
117
+ elementType: 'TEXT',
118
+ extendInfo: '{"completeKey":"cc-name"}',
119
+ paramIllegalText: 'Enter cardholder name as displayed on the card.',
120
+ paymentElementKey: 'cardHolderName',
121
+ validateFunction: '^[\\w\\s]{1,128}$'
122
+ }],
123
+ title: 'Card information'
124
+ }],
125
+ paymentMethod: 'CARD',
126
+ paymentMethodName: 'Card',
127
+ paymentMethodType: 'CARD',
128
+ recommend: false,
129
+ webRedirectType: 'PAGE_REFRESH'
130
+ }, {
131
+ antomPage: 'paymentMetaPage',
132
+ category: 'AC_WALLET',
133
+ expressCheckout: false,
134
+ icon: 'https://cdn.marmot-cloud.com/storage/2024/05/15/8c2df293-4ff8-4a1c-bd39-457c26937acb.svg',
135
+ iconName: 'Rabbit LINE Pay',
136
+ interActionType: 'REDIRECT',
137
+ paymentMethodName: 'Rabbit LINE Pay',
138
+ paymentMethodType: 'RABBIT_LINE_PAY',
139
+ recommend: false,
140
+ webRedirectType: 'PAGE_REFRESH'
141
+ }, {
142
+ antomPage: 'paymentMetaPage',
143
+ category: 'AC_WALLET',
144
+ expressCheckout: false,
145
+ icon: 'https://cdn.marmot-cloud.com/storage/2024/05/15/72aa8973-7638-4f3f-b657-7af0ae02e6cf.svg',
146
+ iconName: 'BPI',
147
+ interActionType: 'REDIRECT',
148
+ paymentMethodName: 'BPI',
149
+ paymentMethodType: 'BPI',
150
+ recommend: false,
151
+ webRedirectType: 'PAGE_REFRESH'
152
+ }, {
153
+ antomPage: 'paymentMetaPage',
154
+ category: 'AC_WALLET',
155
+ expressCheckout: true,
156
+ icon: 'https://cdn.marmot-cloud.com/storage/2024/05/15/5b829130-42d9-46e7-a23d-6774f7352900.svg',
157
+ iconName: 'Alipay',
158
+ interActionType: 'REDIRECT',
159
+ paymentMethodName: 'Alipay',
160
+ paymentMethodType: 'ALIPAY_CN',
161
+ recommend: false,
162
+ webRedirectType: 'PAGE_REFRESH'
163
+ }, {
164
+ antomPage: 'paymentMetaPage',
165
+ category: 'AC_WALLET',
166
+ expressCheckout: false,
167
+ icon: 'https://cdn.marmot-cloud.com/storage/2024/05/15/ed012d1a-06c4-4606-a493-0d81ead685b6.svg',
168
+ iconName: 'Akulaku PayLater',
169
+ interActionType: 'REDIRECT',
170
+ paymentMethodName: 'Akulaku PayLater PH',
171
+ paymentMethodType: 'AKULAKU_PAYLATER_PH',
172
+ recommend: false,
173
+ webRedirectType: 'PAGE_REFRESH'
174
+ }, {
175
+ antomPage: 'paymentMetaPage',
176
+ category: 'AC_WALLET',
177
+ expressCheckout: false,
178
+ icon: 'https://cdn.marmot-cloud.com/storage/2024/05/15/ed012d1a-06c4-4606-a493-0d81ead685b6.svg',
179
+ iconName: 'Akulaku PayLater',
180
+ interActionType: 'REDIRECT',
181
+ paymentMethodName: 'Akulaku PayLater',
182
+ paymentMethodType: 'AKULAKU_PAYLATER',
183
+ recommend: false,
184
+ webRedirectType: 'PAGE_REFRESH'
185
+ }, {
186
+ antomPage: 'paymentMetaPage',
187
+ category: 'AC_WALLET',
188
+ expressCheckout: false,
189
+ icon: 'https://cdn.marmot-cloud.com/storage/2024/05/15/fcf9ba5e-b2b4-4c33-a041-f21bcf1539e4.svg',
190
+ iconName: 'BillEase',
191
+ interActionType: 'REDIRECT',
192
+ paymentMethodName: 'BILLEASE',
193
+ paymentMethodType: 'BILLEASE',
194
+ recommend: false,
195
+ webRedirectType: 'PAGE_REFRESH'
196
+ }, {
197
+ antomPage: 'paymentMetaPage',
198
+ category: 'AC_WALLET',
199
+ expressCheckout: false,
200
+ icon: 'https://cdn.marmot-cloud.com/storage/2024/05/15/dfcedf07-3135-49b6-9e39-6ab89b5ba5a1.svg',
201
+ iconName: 'Kredivo',
202
+ interActionType: 'REDIRECT',
203
+ paymentMethodName: 'KREDIVO',
204
+ paymentMethodType: 'KREDIVO_ID',
205
+ recommend: false,
206
+ webRedirectType: 'PAGE_REFRESH'
207
+ }, {
208
+ antomPage: 'paymentMetaPage',
209
+ category: 'AC_WALLET',
210
+ expressCheckout: false,
211
+ icon: 'https://cdn.marmot-cloud.com/storage/2024/05/15/6c7baedf-cb9e-47b1-8c2e-d2477b0d3018.svg',
212
+ iconName: 'Toss Pay',
213
+ interActionType: 'REDIRECT',
214
+ paymentMethodName: 'Toss Pay',
215
+ paymentMethodType: 'TOSSPAY',
216
+ recommend: false,
217
+ webRedirectType: 'PAGE_REFRESH'
218
+ }, {
219
+ antomPage: 'paymentMetaPage',
220
+ category: 'AC_WALLET',
221
+ expressCheckout: false,
222
+ icon: 'https://cdn.marmot-cloud.com/storage/2024/05/15/89c1063e-c7d3-4b60-82a0-6e4c40426612.svg',
223
+ iconName: 'Kakao Pay',
224
+ interActionType: 'REDIRECT',
225
+ paymentMethodName: 'KAKAOPAY',
226
+ paymentMethodType: 'KAKAOPAY',
227
+ recommend: false,
228
+ webRedirectType: 'PAGE_REFRESH'
229
+ }, {
230
+ antomPage: 'paymentMetaPage',
231
+ category: 'AC_WALLET',
232
+ expressCheckout: false,
233
+ icon: 'https://cdn.marmot-cloud.com/storage/2024/05/15/46ac203c-21fd-4feb-80c6-fd19faf1a9b7.svg',
234
+ iconName: 'GCash',
235
+ interActionType: 'REDIRECT',
236
+ paymentMethodName: 'GCash',
237
+ paymentMethodType: 'GCASH',
238
+ recommend: false,
239
+ webRedirectType: 'PAGE_REFRESH'
240
+ }, {
241
+ antomPage: 'paymentMetaPage',
242
+ category: 'AC_WALLET',
243
+ expressCheckout: false,
244
+ icon: 'https://cdn.marmot-cloud.com/storage/2024/05/15/8409ec96-3153-4d31-9bcb-a6b60f6ce11f.svg',
245
+ iconName: 'Boost',
246
+ interActionType: 'REDIRECT',
247
+ paymentMethodName: 'Boost',
248
+ paymentMethodType: 'BOOST',
249
+ recommend: false,
250
+ webRedirectType: 'PAGE_REFRESH'
251
+ }, {
252
+ antomPage: 'paymentMetaPage',
253
+ category: 'AC_WALLET',
254
+ expressCheckout: false,
255
+ icon: 'https://cdn.marmot-cloud.com/storage/2024/05/15/dd81e7d9-d845-434e-95b8-87b726d44aa4.svg',
256
+ iconName: 'DOKU',
257
+ interActionType: 'REDIRECT',
258
+ paymentMethodName: 'DOKU',
259
+ paymentMethodType: 'DOKU',
260
+ recommend: false,
261
+ webRedirectType: 'PAGE_REFRESH'
262
+ }, {
263
+ antomPage: 'paymentMetaPage',
264
+ category: 'AC_WALLET',
265
+ expressCheckout: false,
266
+ icon: 'https://cdn.marmot-cloud.com/storage/2024/05/15/2ec693a8-2c42-4efe-8acd-efdeeabd3210.svg',
267
+ iconName: 'K PLUS',
268
+ interActionType: 'REDIRECT',
269
+ paymentMethodName: 'KPLUS',
270
+ paymentMethodType: 'KPLUS',
271
+ recommend: false,
272
+ webRedirectType: 'PAGE_REFRESH'
273
+ }, {
274
+ antomPage: 'paymentMetaPage',
275
+ category: 'AC_WALLET',
276
+ expressCheckout: false,
277
+ icon: 'https://cdn.marmot-cloud.com/storage/2024/05/15/82288753-bc33-4f4c-9c07-e54c5da5c8f8.svg',
278
+ iconName: "Touch'n Go eWallet",
279
+ interActionType: 'REDIRECT',
280
+ paymentMethodName: 'TNG',
281
+ paymentMethodType: 'TNG',
282
+ recommend: false,
283
+ webRedirectType: 'PAGE_REFRESH'
284
+ }, {
285
+ antomPage: 'paymentMetaPage',
286
+ category: 'AC_WALLET',
287
+ expressCheckout: false,
288
+ icon: 'https://cdn.marmot-cloud.com/storage/2024/05/15/db94babb-71db-42c4-80be-a65de641631a.svg',
289
+ iconName: 'NAVER Pay',
290
+ interActionType: 'REDIRECT',
291
+ paymentMethodName: 'NAVER Pay',
292
+ paymentMethodType: 'NAVERPAY',
293
+ recommend: false,
294
+ webRedirectType: 'PAGE_REFRESH'
295
+ }, {
296
+ antomPage: 'paymentMetaPage',
297
+ category: 'AC_WALLET',
298
+ expressCheckout: false,
299
+ icon: 'https://cdn.marmot-cloud.com/storage/2024/05/15/5b1ec246-b49f-4390-b356-3af2af5acf09.svg',
300
+ iconName: 'TrueMoney',
301
+ interActionType: 'REDIRECT',
302
+ paymentMethodName: 'TrueMoney Wallet',
303
+ paymentMethodType: 'TRUEMONEY',
304
+ recommend: false,
305
+ webRedirectType: 'PAGE_REFRESH'
306
+ }, {
307
+ antomPage: 'paymentMetaPage',
308
+ category: 'AC_WALLET',
309
+ expressCheckout: false,
310
+ icon: 'https://cdn.marmot-cloud.com/storage/2024/05/15/97dbcec8-7bdd-464b-b49a-5d9af6d98c0b.svg',
311
+ iconName: 'AlipayHK',
312
+ interActionType: 'REDIRECT',
313
+ paymentMethodName: 'ALIPAY_HK',
314
+ paymentMethodType: 'ALIPAY_HK',
315
+ recommend: false,
316
+ webRedirectType: 'PAGE_REFRESH'
317
+ }, {
318
+ antomPage: 'paymentMetaPage',
319
+ category: 'AC_WALLET',
320
+ expressCheckout: false,
321
+ icon: 'https://cdn.marmot-cloud.com/storage/2024/05/15/6148dd94-9d28-43d5-9073-c99bfb8e7ace.svg',
322
+ iconName: 'DANA',
323
+ interActionType: 'REDIRECT',
324
+ paymentMethodName: 'DANA',
325
+ paymentMethodType: 'DANA',
326
+ recommend: false,
327
+ webRedirectType: 'PAGE_REFRESH'
328
+ }],
329
+ redirectUrl: 'https://www.baidu.com',
330
+ savedPaymentMethods: [],
331
+ shippingInfo: {
332
+ shippingAddress: {
333
+ address1: "06 Raffles Place Cecil Marina People's Park",
334
+ address2: 'USD',
335
+ city: '',
336
+ region: 'SG',
337
+ state: '',
338
+ zipCode: '068898'
339
+ },
340
+ shippingFee: {
341
+ amount: '1.00',
342
+ currency: 'USD',
343
+ currencyLabel: 'US $',
344
+ formattedAmount: '1.00',
345
+ formattedAmountWithCurrency: 'US $1.00',
346
+ value: '100'
347
+ },
348
+ shippingFeeView: {
349
+ currency: 'USD',
350
+ currencyDivider: ' ',
351
+ currencyLabel: '$',
352
+ currencySymbolPosition: 'L',
353
+ formattedValue: '1.00',
354
+ value: '1.00'
355
+ },
356
+ shippingName: {
357
+ firstName: 'swd',
358
+ lastName: ''
359
+ },
360
+ shippingPhoneNo: '+651234571'
361
+ },
362
+ success: true
363
+ };
364
+ export var oneAccount1 = {
365
+ accountInfo: {
366
+ accountStatus: 'EFFECTIVE',
367
+ email: 'test10@test.com',
368
+ oneAccountId: '20241107190000000200000000000079939'
369
+ },
370
+ actionForm: {
371
+ challengeAutoTriggered: false,
372
+ challengeRetrySupported: true,
373
+ estimatedDuration: 0,
374
+ resendLeftTimes: 0
375
+ },
376
+ errorActions: {},
377
+ extendInfo: {},
378
+ paymentMethods: [{
379
+ paymentMethodType: 'CARD',
380
+ iconName: 'VISA',
381
+ icon: 'https://cdn.marmot-cloud.com/storage/2022/8/2/bc7cb991-c8e2-4379-945f-aadae2bdf932.svg',
382
+ paymentMethodId: 'card-id',
383
+ paymentMethodDetail: {
384
+ last4: '**** 1233'
385
+ }
386
+ }, {
387
+ paymentMethodType: 'CARD',
388
+ iconName: 'VISA2',
389
+ icon: 'https://cdn.marmot-cloud.com/storage/2022/8/2/bc7cb991-c8e2-4379-945f-aadae2bdf932.svg',
390
+ paymentMethodId: 'card-id2',
391
+ paymentMethodDetail: {
392
+ last4: '**** 1235'
393
+ }
394
+ }],
395
+ shippings: [{
396
+ notes: '',
397
+ prefer: '1',
398
+ shippingAddress: {
399
+ address1: "06 Raffles Place Cecil Marina People's Park",
400
+ address2: 'USD',
401
+ city: '',
402
+ region: 'SG',
403
+ state: '',
404
+ zipCode: '068898'
405
+ },
406
+ shippingId: '20241109190000000600000000009947475',
407
+ shippingName: {
408
+ firstName: 'swd',
409
+ lastName: ''
410
+ },
411
+ shippingPhoneNo: '+651234571',
412
+ userId: '20241107190000000300000000010741992'
413
+ }],
414
+ success: true
415
+ };
416
+ export var oneAccount2 = {
417
+ accountInfo: {
418
+ email: 'xxxxx@163.com',
419
+ accountStatus: 'UNREGISTERED'
420
+ },
421
+ goods: {
422
+ goodsName: 'xxxxx@163.com',
423
+ goodsImageUrl: '',
424
+ goodsQuantity: 100,
425
+ goodsUnitAmount: {
426
+ currency: 'EUR',
427
+ value: 100,
428
+ currencyLabel: ''
429
+ }
430
+ },
431
+ paymentMethods: [],
432
+ links: {
433
+ privacyLink: 'https://global.alipay.com/docs/ac/Platform/bahzqeb-',
434
+ cookieLink: 'https://global.alipay.com/docs/ac/Platform/x1rhufzj'
435
+ },
436
+ metaData: {
437
+ countryList: [{
438
+ countryName: 'China',
439
+ default: true
440
+ }, {
441
+ countryName: 'Singapore',
442
+ default: false
443
+ }]
444
+ },
445
+ errorActions: {},
446
+ extendInfo: {},
447
+ merchantId: '111xT8bLnciQgqcy20+oOJoWUEbPMTwI0YILNBIicpASIs=',
448
+ needInstallmentAbility: false,
449
+ needOtherElements: false,
450
+ orderDescription: 'AMSDM_GIFT',
451
+ success: true,
452
+ supportedLanguages: [{
453
+ locale: 'en_US',
454
+ preferred: true,
455
+ title: 'English'
456
+ }, {
457
+ country: 'BR',
458
+ locale: 'pt_BR',
459
+ preferred: false,
460
+ title: 'Português'
461
+ }, {
462
+ country: 'KR',
463
+ locale: 'ko_KR',
464
+ preferred: false,
465
+ title: '한국어'
466
+ }, {
467
+ country: 'MX,CL,PE',
468
+ locale: 'es_ES',
469
+ preferred: false,
470
+ title: 'Español'
471
+ }]
472
+ };
473
+ export var oneAccount = oneAccount1;
474
+ // export const oneAccount = oneAccount2;
475
+
476
+ export var paymentResult = {
477
+ success: true,
478
+ data: {
479
+ success: true,
480
+ data: {
481
+ paymentSessionData: 'y8YCw0/4HDCCF16rRvzkONkNdJkJuZmuZHZdDdekdqfEMzKn7ovplH0mL2gd4/h9rS/7yIwWdw2wA+eg7ydx9Q==&&SG&&188&&eyJhY3Rpb24iOnsibmVlZFZlcmlmeUFuZFJlc3VtZSI6ZmFsc2UsInNraXBTZGtRdWVyeSI6ZmFsc2V9LCJjbGllbnRJZCI6IjVKNVk5MjBMMlkySjZFMDIxODIiLCJjb25uZWN0RmFjdG9yIjp7ImVuYWJsZUNvbm5lY3QiOnRydWV9LCJleHRlbmRJbmZvIjoie1wiZXhwcmVzc0NoZWNrb3V0XCI6XCJmYWxzZVwiLFwidmVyc2lvbk1hcFwiOlwie1xcXCJ3ZWJcXFwiOntcXFwiMS4xLjBcXFwiOntcXFwidGFyZ2V0V2ViVmVyaXNvblxcXCI6XFxcIjEuMS4wXFxcIn0sXFxcIjEuMi4wXFxcIjp7XFxcInRhcmdldFdlYlZlcmlzb25cXFwiOlxcXCIxLjIuMFxcXCJ9fSxcXFwiaU9TXFxcIjp7XFxcIjEuMS4wXFxcIjp7XFxcInRhcmdldFdlYlZlcmlzb25cXFwiOlxcXCIxLjEuMFxcXCJ9LFxcXCIxLjIuMFxcXCI6e1xcXCJ0YXJnZXRXZWJWZXJpc29uXFxcIjpcXFwiMS4yLjBcXFwifX0sXFxcIkFuZHJvaWRcXFwiOntcXFwiMS4xLjBcXFwiOntcXFwidGFyZ2V0V2ViVmVyaXNvblxcXCI6XFxcIjEuMS4wXFxcIn0sXFxcIjEuMi4wXFxcIjp7XFxcInRhcmdldFdlYlZlcmlzb25cXFwiOlxcXCIxLjIuMFxcXCJ9fX1cIn0iLCJwYXltZW50U2Vzc2lvbkNvbmZpZyI6eyJwYXltZW50TWV0aG9kQ2F0ZWdvcnlUeXBlIjoiQUxMIiwicHJvZHVjdFNjZW5lIjoiRUxFTUVOVF9QQVlNRU5UIiwicHJvZHVjdFNjZW5lVmVyc2lvbiI6IjEuMCJ9fQ==',
482
+ paymentSessionConfig: {
483
+ paymentMethodCategoryType: 'ALL',
484
+ productScene: 'ELEMENT_PAYMENT',
485
+ productSceneVersion: '1.0'
486
+ },
487
+ paymentMethod: {
488
+ paymentMethodType: 'CARD',
489
+ category: '',
490
+ paymentMethodDetail: {
491
+ logoUrl: 'https://cdn.marmot-cloud.com/storage/2022/9/26/dfd471f3-da7d-4ef1-8486-cfa4301045c6.svg',
492
+ cardBrand: 'VISA',
493
+ last4: '5914',
494
+ logoName: '**** ****5914'
495
+ }
496
+ },
497
+ paymentFactors: {
498
+ paymentMethodId: '20240715190000000400000002801015427',
499
+ paymentRedirectUrl: 'undefined/threed-page/index.html?sessionData=qv%2BMhtbdDKi7lGsorcg3h0SdB63hZsQlO0u5acUqsPL8cSDIEz%2FUDOlvezwHlDWQm%2F5RqaM%2FR9IZxWbuV58%2BnA%3D%3D%26%26SG%26%26188%26%26eyJhY3Rpb24iOnsibmVlZFZlcmlmeUFuZFJlc3VtZSI6ZmFsc2UsInNraXBTZGtRdWVyeSI6ZmFsc2V9LCJjbGllbnRJZCI6IjVKNVk5MjBMMlkySjZFMDIxODIiLCJjb25uZWN0RmFjdG9yIjp7ImVuYWJsZUNvbm5lY3QiOnRydWV9LCJleHRlbmRJbmZvIjoie1wiZXhwcmVzc0NoZWNrb3V0XCI6XCJmYWxzZVwiLFwidmVyc2lvbk1hcFwiOlwie1xcXCJ3ZWJcXFwiOntcXFwiMS4xLjBcXFwiOntcXFwidGFyZ2V0V2ViVmVyaXNvblxcXCI6XFxcIjEuMS4wXFxcIn0sXFxcIjEuMi4wXFxcIjp7XFxcInRhcmdldFdlYlZlcmlzb25cXFwiOlxcXCIxLjIuMFxcXCJ9fSxcXFwiaU9TXFxcIjp7XFxcIjEuMS4wXFxcIjp7XFxcInRhcmdldFdlYlZlcmlzb25cXFwiOlxcXCIxLjEuMFxcXCJ9LFxcXCIxLjIuMFxcXCI6e1xcXCJ0YXJnZXRXZWJWZXJpc29uXFxcIjpcXFwiMS4yLjBcXFwifX0sXFxcIkFuZHJvaWRcXFwiOntcXFwiMS4xLjBcXFwiOntcXFwidGFyZ2V0V2ViVmVyaXNvblxcXCI6XFxcIjEuMS4wXFxcIn0sXFxcIjEuMi4wXFxcIjp7XFxcInRhcmdldFdlYlZlcmlzb25cXFwiOlxcXCIxLjIuMFxcXCJ9fX1cIn0iLCJwYXltZW50U2Vzc2lvbkNvbmZpZyI6eyJwYXltZW50TWV0aG9kQ2F0ZWdvcnlUeXBlIjoiQUxMIiwicHJvZHVjdFNjZW5lIjoiRUxFTUVOVF9QQVlNRU5UIiwicHJvZHVjdFNjZW5lVmVyc2lvbiI6IjEuMCJ9fQ%3D%3D&displayType=inline&locale=&instanceId=f84f56e3-35ca-450a-b9b5-de93ac752e0e&appMatched=false&analyticsEnabled=true&sdkVersion=1.21.0&refUrl=http%3A%2F%2Flocalhost%3A5174%2Fdemo%2Fsrc%2Fpages%2Fconnect-element-dev%2Findex.html%3Fenvironment%3Ddev%26_moreEnv%3Dtrue%26requestHost%3Dhttp%3A%2F%2Fimgs-9993.sggz00b.dl.alipaydev.com%2Fmgw.htm%26groupId%3DGROUP_20240816101823&_componentStartTime=1728642669250&isPreload=&hostSign=SG&requestHost=http%3A%2F%2Fimgs-9993.sggz00b.dl.alipaydev.com%2Fmgw.htm&groupId=GROUP_20240816101823&scene=callbackPage'
500
+ },
501
+ autofillConnectInfo: false
502
+ }
503
+ },
504
+ source: 'PAYMENT_ELEMENT',
505
+ target: 'CONTAINER_ELEMENT'
506
+ };
507
+ export var submitResult = {
508
+ actionForm: {
509
+ actionFormType: 'RedirectActionForm',
510
+ method: 'GET',
511
+ normalUrl: 'https://open-sea.alipayplus.com/api/open/v1/ac/cashier/self/codevalue/checkout.htm?codeValue=https%3A%2F%2Fglobal.alipay.com%2F281002040092rqa01k6Ed31LA96JETxv4IP8',
512
+ redirectUrl: 'https://open-sea.alipayplus.com/api/open/v1/ac/cashier/self/codevalue/checkout.htm?codeValue=https%3A%2F%2Fglobal.alipay.com%2F281002040092rqa01k6Ed31LA96JETxv4IP8'
513
+ },
514
+ codeFormViews: [{
515
+ code: 'https://global.alipay.com/281002040092rqa01k6Ed31LA96JETxv4IP8',
516
+ codeExpireTime: '1732567070000',
517
+ displayType: 'QRCODE'
518
+ }],
519
+ errorActions: {},
520
+ extendInfo: {
521
+ iconName: 'AlipayHK',
522
+ paymentRedirectUrl: 'http://gol.alipay.net:8080/amsdemo/result?paymentRequestId=amsdmpay_20240410_143002_4shkjh123',
523
+ icon: 'https://cdn.marmot-cloud.com/storage/2024/05/15/97dbcec8-7bdd-464b-b49a-5d9af6d98c0b.svg',
524
+ paymentMethod: 'ALIPAY_HK'
525
+ },
526
+ orderAmount: {
527
+ amount: '1.10',
528
+ currency: 'EUR',
529
+ currencyLabel: '€',
530
+ formattedAmount: '1,10',
531
+ formattedAmountWithCurrency: '€ 1,10',
532
+ value: '110'
533
+ },
534
+ orderAmountView: {
535
+ currency: 'EUR',
536
+ currencyDivider: ' ',
537
+ currencyLabel: '€',
538
+ currencySymbolPosition: 'L',
539
+ formattedValue: '1,10',
540
+ value: '1.10'
541
+ },
542
+ paymentAmount: {
543
+ amount: '1.10',
544
+ currency: 'EUR',
545
+ currencyLabel: '€',
546
+ formattedAmount: '1,10',
547
+ formattedAmountWithCurrency: '€ 1,10',
548
+ value: '110'
549
+ },
550
+ paymentAmountView: {
551
+ currency: 'EUR',
552
+ currencyDivider: ' ',
553
+ currencyLabel: '€',
554
+ currencySymbolPosition: 'L',
555
+ formattedValue: '1,10',
556
+ value: '1.10'
557
+ },
558
+ paymentMethodType: 'ALIPAY_HK',
559
+ paymentResultCode: 'PAYMENT_IN_PROCESS',
560
+ paymentStatus: 'PROCESSING',
561
+ serverTime: '1731566233772',
562
+ success: true,
563
+ supportedLanguages: [{
564
+ locale: 'en_US',
565
+ preferred: true
566
+ }]
567
+ };
568
+ export var sdkActionUpdate = {
569
+ amountConfirmRequired: false,
570
+ autoDebitWithToken: false,
571
+ checkoutSettings: '{\n "addressAutoComplete": true,\n "publicDetail": {\n "legalBusinessName": "Lazada Group",\n "businessName": "Lazada"\n },\n "paymentSettings": {\n "displayExpressCheckout": true,\n "allowPromotion": true,\n "collectCustomerEmail": true,\n "collectCustomerPhoneNo": true,\n "collectShippingPhoneNo": true,\n "collectShippingName": true,\n "displayAntomLogo": true,\n "displayLanguage": true,\n "defaultLanguage": "en_US",\n "redirectToMerchant": true,\n "paymentRedirectUrl": "https://www.baidu.com",\n "customFields": [\n {\n "labelType": "DROPDOWN",\n "labelName": "How did you hear about us?",\n "minLength": 0,\n "maxLength": 255,\n "labelCondition": "REQUIRED",\n "options": [\n "Search engine (Google, Bing, etc.)",\n "Social media",\n "Word of Mouth"\n ],\n "picLink": "http://100.88.104.107:8081/download?bucketName=ipay-ipaycrm-attachment&key=20240409009064IMHaa2545f192c99a8481deaecd9b8ea5ad_2tiZTpB3_20240402143510.jpg&expires=2028172654&accessKeyId=FM49eWrrO8EFqUO4&signature=rnLBSUx4M1I1zPWuZLqInjP79u4%3D&signatureType=OBJECT",\n "picTitle": "picTitle",\n "picTip": "picTip"\n }\n ]\n },\n "displaySettings": {\n "iconUrl": "https://cdn.marmot-cloud.com/storage/2022/8/2/bc7cb991-c8e2-4379-945f-aadae2bdf932.svg",\n "logoUrl": "https://cdn.marmot-cloud.com/storage/2022/9/26/dfd471f3-da7d-4ef1-8486-cfa4301045c6.svg",\n "useLogo": true,\n "themeType": "LIGHT",\n "backgroundColor": "#ffffff",\n "accentColor": "#ffffff",\n "font": "POPPINS",\n "shape": "ROUNDED",\n "displayLayout": "LEFT_ORDER_AND_RIGHT_PAYMENT"\n }\n }',
572
+ errorActions: {},
573
+ extendInfo: {},
574
+ goods: [{
575
+ goodsName: 'Goods No.1',
576
+ goodsQuantity: '1',
577
+ goodsTotalAmount: {
578
+ amount: '200.00',
579
+ currency: 'PEN',
580
+ currencyLabel: 'S/.',
581
+ formattedAmount: '200.00',
582
+ formattedAmountWithCurrency: 'S/. 200.00',
583
+ value: '20000'
584
+ },
585
+ goodsTotalAmountView: {
586
+ currency: 'PEN',
587
+ currencyDivider: ' ',
588
+ currencyLabel: 'S/.',
589
+ currencySymbolPosition: 'L',
590
+ formattedValue: '200.00',
591
+ value: '200.00'
592
+ },
593
+ goodsUnitAmount: {
594
+ amount: '200.00',
595
+ currency: 'PEN',
596
+ currencyLabel: 'S/.',
597
+ formattedAmount: '200.00',
598
+ formattedAmountWithCurrency: 'S/. 200.00',
599
+ value: '20000'
600
+ },
601
+ goodsUnitAmountView: {
602
+ currency: 'PEN',
603
+ currencyDivider: ' ',
604
+ currencyLabel: 'S/.',
605
+ currencySymbolPosition: 'L',
606
+ formattedValue: '200.00',
607
+ value: '200.00'
608
+ },
609
+ referenceGoodsId: 'amsdm_good_tony_c_20230227_095825_922'
610
+ }, {
611
+ goodsName: 'Goods No.2',
612
+ goodsQuantity: '2',
613
+ goodsTotalAmount: {
614
+ amount: '40000',
615
+ currency: 'KRW',
616
+ currencyLabel: '₩',
617
+ formattedAmount: '40,000',
618
+ formattedAmountWithCurrency: '₩ 40,000',
619
+ value: '40000'
620
+ },
621
+ goodsTotalAmountView: {
622
+ currency: 'KRW',
623
+ currencyDivider: ' ',
624
+ currencyLabel: '₩',
625
+ currencySymbolPosition: 'L',
626
+ formattedValue: '40,000',
627
+ value: '40000'
628
+ },
629
+ goodsUnitAmount: {
630
+ amount: '20000',
631
+ currency: 'KRW',
632
+ currencyLabel: '₩',
633
+ formattedAmount: '20,000',
634
+ formattedAmountWithCurrency: '₩ 20,000',
635
+ value: '20000'
636
+ },
637
+ goodsUnitAmountView: {
638
+ currency: 'KRW',
639
+ currencyDivider: ' ',
640
+ currencyLabel: '₩',
641
+ currencySymbolPosition: 'L',
642
+ formattedValue: '20,000',
643
+ value: '20000'
644
+ },
645
+ referenceGoodsId: 'amsdm_good_tony_c_20230227_095825_922'
646
+ }],
647
+ links: {
648
+ policyInfo: '["{\\"title\\":\\"CheckoutPaymentLegal\\",\\"content\\":[{\\"title\\":\\"CheckoutPaymentLegal\\",\\"content\\":\\"<p>hello<a href=\\\\\\"https://www.baidu.com/\\\\\\"target=\\\\\\"_blank\\\\\\">world</a></p><ol><li>123123123</li><li>123123123123</li></ol>\\"}]}"]',
649
+ privacyLink: 'https://render.alipay.com/p/c/180021490000000150/index.html?agreementId=GL00100002',
650
+ cookieLink: 'https://render.alipay.com/p/c/180021490000000147/index.html?agreementId=GL00100001'
651
+ },
652
+ needInstallmentAbility: false,
653
+ needOtherElements: true,
654
+ orderAmount: {
655
+ amount: '200.00',
656
+ currency: 'BRL',
657
+ currencyLabel: 'R$',
658
+ formattedAmount: '200,00',
659
+ formattedAmountWithCurrency: 'R$ 200,00',
660
+ value: '20000'
661
+ },
662
+ orderAmountView: {
663
+ currency: 'BRL',
664
+ currencyDivider: ' ',
665
+ currencyLabel: 'R$',
666
+ currencySymbolPosition: 'L',
667
+ formattedValue: '200.00',
668
+ value: '200.00'
669
+ },
670
+ pageStyle: {
671
+ checkoutSettings: '{"addressAutoComplete":false}'
672
+ },
673
+ paymentAmount: {
674
+ amount: '200.00',
675
+ currency: 'BRL',
676
+ currencyLabel: 'R$',
677
+ formattedAmount: '200,00',
678
+ formattedAmountWithCurrency: 'R$ 200,00',
679
+ value: '20000'
680
+ },
681
+ paymentAmountView: {
682
+ currency: 'BRL',
683
+ currencyDivider: ' ',
684
+ currencyLabel: 'R$',
685
+ currencySymbolPosition: 'L',
686
+ formattedValue: '200.00',
687
+ value: '200.00'
688
+ },
689
+ paymentMethods: [{
690
+ antomPage: 'paymentMetaPage',
691
+ category: 'CARD',
692
+ icon: 'https://gw.alipay.com/icon/medium/default/ALIPAY_GENERAL_CARD.svg',
693
+ iconName: 'Card',
694
+ links: [],
695
+ logoList: [{
696
+ cardBrand: 'GWANGJUBANK',
697
+ logoUrl: 'https: //cdn.marmot-cloud.com/storage/2024/2/21/635b04a7-1086-4184-8122-98d9c2b99f0f.svg'
698
+ }, {
699
+ cardBrand: 'SHINHYEOP',
700
+ logoUrl: 'https: //cdn.marmot-cloud.com/storage/2024/2/23/bc083008-b6ca-4b51-8767-1aa0dce48f5a.svg'
701
+ }],
702
+ paymentElements: [{
703
+ paymentElementKey: 'paymentMethodId',
704
+ elementType: 'CARD',
705
+ elementMandatory: false,
706
+ title: 'Card Information',
707
+ defaultValue: '',
708
+ extendInfo: '{"needOtherElements":false,"isTempTokenization":"true"}',
709
+ subPaymentElementView: [{
710
+ defaultText: 'Card Number',
711
+ elementMandatory: true,
712
+ elementRegx: '^\\d{15,18}$',
713
+ elementType: 'DIGIT_18',
714
+ paramIllegalText: 'cardNo error',
715
+ paymentElementKey: 'cardNo',
716
+ title: 'Card Number',
717
+ defaultValue: '',
718
+ extendInfo: '{"excludeMetaDataCodes":"null","completeKey":"cc-number"}'
719
+ }, {
720
+ defaultText: 'CVV',
721
+ defaultValue: '',
722
+ elementMandatory: true,
723
+ elementRegx: '^\\d{3,4}$',
724
+ elementType: 'DIGIT_4',
725
+ extendInfo: '{"excludeMetaDataCodes":"null"}',
726
+ paramIllegalText: 'Please enter a valid 3 or 4 digit CVV number',
727
+ paymentElementKey: 'cardCVV'
728
+ }, {
729
+ defaultText: 'Name on Card',
730
+ elementMandatory: true,
731
+ elementRegx: '',
732
+ elementType: 'TEXT',
733
+ paramIllegalText: 'Please enter a Name on Card',
734
+ paymentElementKey: 'cardHolderName',
735
+ defaultValue: '',
736
+ extendInfo: '{"excludeMetaDataCodes":"null","completeKey":"cc-name"}'
737
+ }, {
738
+ defaultText: 'Exp Date(MM/YY)',
739
+ elementMandatory: true,
740
+ elementRegx: '.{5}',
741
+ paramIllegalText: 'Please enter a Exp Date',
742
+ elementType: 'TEXT',
743
+ paymentElementKey: 'expiryYear',
744
+ title: 'Please enter a Exp Date',
745
+ defaultValue: '',
746
+ extendInfo: '{"excludeMetaDataCodes":"null","completeKey":"cc-exp"}'
747
+ }, {
748
+ defaultText: 'Exp Date(MM/YY)',
749
+ elementMandatory: true,
750
+ elementRegx: '',
751
+ elementType: 'TEXT',
752
+ paymentElementKey: 'expiryMonth',
753
+ title: 'Please enter a Exp Date',
754
+ defaultValue: '',
755
+ extendInfo: '{"excludeMetaDataCodes":"null","completeKey":"cc-exp"}'
756
+ }]
757
+ }, {
758
+ defaultText: 'Save this payment method for future use.',
759
+ elementMandatory: false,
760
+ elementType: 'CHECKBOX',
761
+ extendInfo: '{}',
762
+ paymentElementKey: 'bindPaymentMethod'
763
+ }, {
764
+ elementMandatory: false,
765
+ elementType: 'DIGIT_4',
766
+ extendInfo: '[{"currency":"BRL","installmentAmount":"21,39","interestFree":"true","interestRate":"0.12%","orderAmount":"21,39","tenor":"1"}, {"currency":"BRL","installmentAmount":"10,39","interestFree":"true","interestRate":"0.12%","orderAmount":"21,39","tenor":"2"}]',
767
+ paymentElementKey: 'tenor',
768
+ title: 'Instalment plan',
769
+ defaultValue: ''
770
+ }, {
771
+ defaultText: '_ _ _. _ _ _. _ _ _-_ _',
772
+ defaultValue: '',
773
+ elementMandatory: true,
774
+ elementRegx: '^\\d{11}$',
775
+ elementType: 'DIGIT_11',
776
+ extendInfo: '{"customerId":"r35fPjeD0IhNOJrciVqCq10AKiD/uxk8rzaySdJM4tI=","merchantId":"188r35fPjeD0IhNOJrciVqCq10AKiD/uxk8rzaySdJM4tI=","needVerify":"true"}',
777
+ paramIllegalText: 'Please enter a valid 11-digit CPF number',
778
+ paymentElementKey: 'cpf',
779
+ title: 'CPF Code'
780
+ }, {
781
+ defaultText: 'Enter your email address',
782
+ defaultValue: '',
783
+ elementMandatory: true,
784
+ elementRegx: '^(([\\w-\\+\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([\\w-]+\\.)+))([a-zA-Z]{2,18}|[0-9]{1,3})(\\]?))$',
785
+ elementType: 'TEXT',
786
+ extendInfo: '{"excludeMetaDataCodes":"null"}',
787
+ paramIllegalText: 'Email address format invalid',
788
+ paymentElementKey: 'payerEmail',
789
+ title: 'Email'
790
+ }],
791
+ paymentMethod: 'CARD',
792
+ paymentMethodName: 'Card',
793
+ paymentMethodType: 'CARD',
794
+ webRedirectType: 'PAGE_REFRESH'
795
+ }],
796
+ savedPaymentMethods: [],
797
+ storePolicies: '[\\"{\\\\\\\\\\"title\\\\\\\\\\":\\\\\\\\\\"CheckoutPaymentLegal\\\\\\\\\\",\\\\\\\\\\"content\\\\\\\\\\":[{\\\\\\\\\\"title\\\\\\\\\\":\\\\\\\\\\"CheckoutPaymentLegal\\\\\\\\\\",\\\\\\\\\\"content\\\\\\\\\\":\\\\\\\\\\"<p>hello<ahref=\\\\\\\\\\\\\\\\\\\\\\\\\\"https://www.baidu.com/\\\\\\\\\\\\\\\\\\\\\\\\\\"target=\\\\\\\\\\\\\\\\\\\\\\\\\\"_blank\\\\\\\\\\\\\\\\\\\\\\\\\\">world</a></p><ol><li>123123123</li><li>123123123123</li></ol>\\\\\\\\\\"}]}\\",\\"{\\\\\\\\\\"title\\\\\\\\\\":\\\\\\\\\\"2188120013275594MerchantLegal\\\\\\\\\\",\\\\\\\\\\"content\\\\\\\\\\":[{\\\\\\\\\\"title\\\\\\\\\\":\\\\\\\\\\"2188120013275594MerchantLegal_0\\\\\\\\\\",\\\\\\\\\\"content\\\\\\\\\\":\\\\\\\\\\"<p>hello<ahref=\\\\\\\\\\\\\\\\\\\\\\\\\\"https://www.baidu.com/\\\\\\\\\\\\\\\\\\\\\\\\\\"target=\\\\\\\\\\\\\\\\\\\\\\\\\\"_blank\\\\\\\\\\\\\\\\\\\\\\\\\\">world</a></p><ol><li>MerchantLegal_0</li><li>MerchantLegal_0</li></ol>\\\\\\\\\\"},{\\\\\\\\\\"title\\\\\\\\\\":\\\\\\\\\\"2188120013275594MerchantLegal_1\\\\\\\\\\",\\\\\\\\\\"content\\\\\\\\\\":\\\\\\\\\\"<p>hello<ahref=\\\\\\\\\\\\\\\\\\\\\\\\\\"https://www.baidu.com/\\\\\\\\\\\\\\\\\\\\\\\\\\"target=\\\\\\\\\\\\\\\\\\\\\\\\\\"_blank\\\\\\\\\\\\\\\\\\\\\\\\\\">world</a></p><ol><li>MerchantLegal_1</li><li>MerchantLegal_1</li></ol>\\\\\\\\\\"}]}\\"]',
798
+ success: true,
799
+ redirectUrl: '',
800
+ supportedLanguages: [{
801
+ locale: 'en_US',
802
+ preferred: true,
803
+ title: 'English'
804
+ }, {
805
+ locale: 'it_IT',
806
+ preferred: false,
807
+ title: 'Português'
808
+ }, {
809
+ locale: 'de_DE',
810
+ preferred: false
811
+ }, {
812
+ locale: 'fr_FR',
813
+ preferred: false
814
+ }, {
815
+ locale: 'nl_NL',
816
+ preferred: false
817
+ }, {
818
+ locale: 'es_ES',
819
+ preferred: false
820
+ }, {
821
+ locale: 'zh_CN',
822
+ preferred: false
823
+ }, {
824
+ country: 'KR',
825
+ locale: 'ko_KR',
826
+ preferred: false,
827
+ title: '한국어'
828
+ }]
829
+ };
830
+ export var oneAccountUpdate = {
831
+ accountInfo: {
832
+ email: 'xxxxx@163.com',
833
+ accountStatus: 'EFFECTIVE',
834
+ oneAccountId: 'xxxxxxkk'
835
+ },
836
+ goods: {
837
+ goodsName: 'xxxxxxx',
838
+ goodsImageUrl: '',
839
+ goodsQuantity: 100,
840
+ goodsUnitAmount: {
841
+ currency: 'EUR',
842
+ value: 100,
843
+ currencyLabel: ''
844
+ }
845
+ },
846
+ paymentMethods: [{
847
+ paymentMethodType: 'CARD',
848
+ iconName: 'VISA',
849
+ icon: 'https://cdn.marmot-cloud.com/storage/2022/8/2/bc7cb991-c8e2-4379-945f-aadae2bdf932.svg',
850
+ paymentMethodId: 'card-id',
851
+ paymentMethodDetail: {
852
+ last4: '**** 1233'
853
+ }
854
+ }, {
855
+ paymentMethodType: 'CARD',
856
+ iconName: 'VISA2',
857
+ icon: 'https://cdn.marmot-cloud.com/storage/2022/8/2/bc7cb991-c8e2-4379-945f-aadae2bdf932.svg',
858
+ paymentMethodId: 'card-id2',
859
+ paymentMethodDetail: {
860
+ last4: '**** 1235'
861
+ }
862
+ }
863
+ // {
864
+ // "paymentMethodType": "dana",
865
+ // "iconName": "DANA",
866
+ // "icon": "https://cdn.marmot-cloud.com/storage/2022/8/2/bc7cb991-c8e2-4379-945f-aadae2bdf932.svg",
867
+ // "paymentMethodElements": {},
868
+ // },
869
+ ],
870
+ links: {
871
+ privacyLink: 'https://global.alipay.com/docs/ac/Platform/bahzqeb-',
872
+ cookieLink: 'https://global.alipay.com/docs/ac/Platform/x1rhufzj'
873
+ },
874
+ shippings: [{
875
+ shippingName: {
876
+ firstName: '111111',
877
+ lastName: '11111'
878
+ },
879
+ prefer: '1',
880
+ shippingId: 'xxxx1',
881
+ shippingPhoneNo: 'xxxxxx123',
882
+ shippingAddress: {
883
+ region: 'ID',
884
+ state: 'Nusa',
885
+ city: 'Nusa Tenggara Bar.',
886
+ address1: 'Kec. Mataram, Kota Mataram',
887
+ address2: 'Jl. Bangil V No.6, Pagesangan Tim',
888
+ zipCode: '123445'
889
+ }
890
+ }],
891
+ metaData: {
892
+ countryList: [{
893
+ countryName: 'China',
894
+ default: true
895
+ }, {
896
+ countryName: 'Singapore',
897
+ default: false
898
+ }]
899
+ },
900
+ errorActions: {},
901
+ extendInfo: {},
902
+ merchantId: '111xT8bLnciQgqcy20+oOJoWUEbPMTwI0YILNBIicpASIs=',
903
+ needInstallmentAbility: false,
904
+ needOtherElements: false,
905
+ orderDescription: 'AMSDM_GIFT',
906
+ success: true,
907
+ supportedLanguages: [{
908
+ locale: 'en_US',
909
+ preferred: true,
910
+ title: 'English'
911
+ }, {
912
+ country: 'BR',
913
+ locale: 'pt_BR',
914
+ preferred: false,
915
+ title: 'Português'
916
+ }, {
917
+ country: 'KR',
918
+ locale: 'ko_KR',
919
+ preferred: false,
920
+ title: '한국어'
921
+ }, {
922
+ country: 'MX,CL,PE',
923
+ locale: 'es_ES',
924
+ preferred: false,
925
+ title: 'Español'
926
+ }]
927
+ };