pay-sdk-react 1.1.12 → 1.1.14
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.
- package/README.md +226 -8
- package/README.zh-CN.md +225 -8
- package/dist/css/index.css +75 -6
- package/dist/css/index.min.css +1 -1
- package/dist/es/Airwallex/style/index.css +2 -2
- package/dist/es/Airwallex/style/index.min.css +1 -1
- package/dist/es/Alipay/style/index.css +2 -2
- package/dist/es/Alipay/style/index.min.css +1 -1
- package/dist/es/MAlipay/style/index.css +2 -2
- package/dist/es/MAlipay/style/index.min.css +1 -1
- package/dist/es/MPix/index.d.ts +2 -0
- package/dist/es/MPix/index.js +2 -0
- package/dist/es/MPix/interface.d.ts +44 -0
- package/dist/es/MPix/interface.js +1 -0
- package/dist/es/MPix/m-pix-button.d.ts +6 -0
- package/dist/es/MPix/m-pix-button.js +159 -0
- package/dist/es/MPix/style/index.css +256 -0
- package/dist/es/MPix/style/index.d.ts +1 -0
- package/dist/es/MPix/style/index.js +1 -0
- package/dist/es/MPix/style/index.min.css +1 -0
- package/dist/es/MWeChat/style/index.css +2 -2
- package/dist/es/MWeChat/style/index.min.css +1 -1
- package/dist/es/PayButton/index.js +12 -0
- package/dist/es/PayButton/interface.d.ts +28 -2
- package/dist/es/Pix/index.d.ts +11 -0
- package/dist/es/Pix/index.js +10 -0
- package/dist/es/Pix/interface.d.ts +80 -0
- package/dist/es/Pix/interface.js +1 -0
- package/dist/es/Pix/pix-button.d.ts +6 -0
- package/dist/es/Pix/pix-button.js +80 -0
- package/dist/es/Pix/pix-modal.d.ts +6 -0
- package/dist/es/Pix/pix-modal.js +57 -0
- package/dist/es/Pix/pix.d.ts +4 -0
- package/dist/es/Pix/pix.js +120 -0
- package/dist/es/Pix/style/index.css +69 -0
- package/dist/es/Pix/style/index.d.ts +1 -0
- package/dist/es/Pix/style/index.js +1 -0
- package/dist/es/Pix/style/index.min.css +1 -0
- package/dist/es/Stripe/style/index.css +2 -2
- package/dist/es/Stripe/style/index.min.css +1 -1
- package/dist/es/Wechat/style/index.css +2 -2
- package/dist/es/Wechat/style/index.min.css +1 -1
- package/dist/es/confirm-modal/style/index.css +2 -2
- package/dist/es/confirm-modal/style/index.min.css +1 -1
- package/dist/es/icons/IconCheck/index.d.ts +4 -0
- package/dist/es/icons/IconCheck/index.js +22 -0
- package/dist/es/icons/IconCopy/index.d.ts +4 -0
- package/dist/es/icons/IconCopy/index.js +27 -0
- package/dist/es/icons/IconPix/index.d.ts +4 -0
- package/dist/es/icons/IconPix/index.js +33 -0
- package/dist/es/icons/index.d.ts +3 -0
- package/dist/es/icons/index.js +4 -1
- package/dist/es/index.d.ts +17 -0
- package/dist/es/index.js +9 -0
- package/dist/es/pay-modal/style/index.css +2 -2
- package/dist/es/pay-modal/style/index.min.css +1 -1
- package/dist/es/shared/enums/index.d.ts +11 -1
- package/dist/es/shared/enums/index.js +10 -0
- package/dist/lib/Airwallex/style/index.css +2 -2
- package/dist/lib/Airwallex/style/index.min.css +1 -1
- package/dist/lib/Alipay/style/index.css +2 -2
- package/dist/lib/Alipay/style/index.min.css +1 -1
- package/dist/lib/MAlipay/style/index.css +2 -2
- package/dist/lib/MAlipay/style/index.min.css +1 -1
- package/dist/lib/MPix/index.js +28 -0
- package/dist/lib/MPix/interface.js +5 -0
- package/dist/lib/MPix/m-pix-button.js +127 -0
- package/dist/lib/MPix/style/index.css +256 -0
- package/dist/lib/MPix/style/index.js +3 -0
- package/dist/lib/MPix/style/index.min.css +1 -0
- package/dist/lib/MWeChat/style/index.css +2 -2
- package/dist/lib/MWeChat/style/index.min.css +1 -1
- package/dist/lib/PayButton/index.js +12 -0
- package/dist/lib/Pix/index.js +43 -0
- package/dist/lib/Pix/interface.js +5 -0
- package/dist/lib/Pix/pix-button.js +68 -0
- package/dist/lib/Pix/pix-modal.js +50 -0
- package/dist/lib/Pix/pix.js +92 -0
- package/dist/lib/Pix/style/index.css +69 -0
- package/dist/lib/Pix/style/index.js +3 -0
- package/dist/lib/Pix/style/index.min.css +1 -0
- package/dist/lib/Stripe/style/index.css +2 -2
- package/dist/lib/Stripe/style/index.min.css +1 -1
- package/dist/lib/Wechat/style/index.css +2 -2
- package/dist/lib/Wechat/style/index.min.css +1 -1
- package/dist/lib/confirm-modal/style/index.css +2 -2
- package/dist/lib/confirm-modal/style/index.min.css +1 -1
- package/dist/lib/icons/IconCheck/index.js +27 -0
- package/dist/lib/icons/IconCopy/index.js +32 -0
- package/dist/lib/icons/IconPix/index.js +38 -0
- package/dist/lib/icons/index.js +25 -1
- package/dist/lib/index.js +29 -0
- package/dist/lib/pay-modal/style/index.css +2 -2
- package/dist/lib/pay-modal/style/index.min.css +1 -1
- package/dist/lib/shared/enums/index.js +10 -0
- package/dist/umd/pay-sdk-react.umd.js +304 -69
- package/dist/umd/pay-sdk-react.umd.js.map +1 -1
- package/package.json +34 -25
package/README.zh-CN.md
CHANGED
|
@@ -6,20 +6,24 @@
|
|
|
6
6
|
|
|
7
7
|
# 特征
|
|
8
8
|
|
|
9
|
-
|
|
10
9
|
## 全面
|
|
11
|
-
|
|
10
|
+
|
|
11
|
+
支持支付宝、微信、PayPal、Stripe、Payssion、空中云汇(Airwallex)、PIX(巴西即时支付)等主流支付方式,覆盖绝大部分业务场景。
|
|
12
12
|
|
|
13
13
|
## 跨端适配
|
|
14
|
+
|
|
14
15
|
H5、PC、App跨端 场景均可用,适配多端,满足多样化业务需求。
|
|
15
16
|
|
|
16
17
|
## TypeScript 友好
|
|
18
|
+
|
|
17
19
|
所有组件均由 TypeScript 编写,类型安全,开发体验优秀。
|
|
18
20
|
|
|
19
21
|
## 多种承接形式
|
|
22
|
+
|
|
20
23
|
支持支付按钮、弹窗、二维码、表单、popup、modal、蒙层等多种支付承接方式,灵活组合,满足不同业务场景。
|
|
21
24
|
|
|
22
25
|
# 安装
|
|
26
|
+
|
|
23
27
|
[npm package](https://www.npmjs.com/package/pay-sdk-react)
|
|
24
28
|
|
|
25
29
|
```shell
|
|
@@ -53,6 +57,7 @@ ReactDOM.render(<App />, document.getElementById('app'));
|
|
|
53
57
|
```
|
|
54
58
|
|
|
55
59
|
### 按需加载
|
|
60
|
+
|
|
56
61
|
使用 babel-plugin-import
|
|
57
62
|
|
|
58
63
|
#### 1. 安装
|
|
@@ -61,8 +66,8 @@ ReactDOM.render(<App />, document.getElementById('app'));
|
|
|
61
66
|
npm i babel-plugin-import -D
|
|
62
67
|
```
|
|
63
68
|
|
|
64
|
-
|
|
65
69
|
#### 2. 添加配置:组件和样式的按需加载
|
|
70
|
+
|
|
66
71
|
在 babel 配置中加入:
|
|
67
72
|
|
|
68
73
|
```js
|
|
@@ -82,9 +87,11 @@ plugins: [
|
|
|
82
87
|
# 支付场景与用法
|
|
83
88
|
|
|
84
89
|
## 支付宝
|
|
90
|
+
|
|
85
91
|
### PC 端
|
|
86
92
|
|
|
87
93
|
#### 方式一:使用 PayButton
|
|
94
|
+
|
|
88
95
|
引入 PayButton 按钮,点击唤起支付弹窗,展示支付宝二维码。用户扫码完成支付后,支付宝会通知业务后端支付结果。
|
|
89
96
|
|
|
90
97
|
```typescript
|
|
@@ -113,6 +120,7 @@ export default AlipayComponent;
|
|
|
113
120
|
```
|
|
114
121
|
|
|
115
122
|
#### 方式二:Alipay.Button
|
|
123
|
+
|
|
116
124
|
引入 Alipay,Alipay.Button 点击唤起支付弹窗,展示支付宝二维码。用户扫码完成支付后,支付宝会通知业务后端支付结果。
|
|
117
125
|
|
|
118
126
|
```typescript
|
|
@@ -137,8 +145,8 @@ const AlipayComponent = () => {
|
|
|
137
145
|
export default AlipayComponent;
|
|
138
146
|
```
|
|
139
147
|
|
|
140
|
-
|
|
141
148
|
#### 方式三:自定义按钮
|
|
149
|
+
|
|
142
150
|
使用自定义按钮,调用支付弹窗组件,展示二维码。用户扫码完成支付后,支付宝会通知业务后端支付结果。
|
|
143
151
|
|
|
144
152
|
```typescript
|
|
@@ -180,6 +188,7 @@ export default AlipayComponent;
|
|
|
180
188
|
```
|
|
181
189
|
|
|
182
190
|
#### 方式四:自定义承接
|
|
191
|
+
|
|
183
192
|
直接引入二维码组件,自定义承接方式&展示时机。用户扫码完成支付后,支付宝会通知业务后端支付结果。
|
|
184
193
|
|
|
185
194
|
```typescript
|
|
@@ -201,6 +210,7 @@ export default AlipayComponent;
|
|
|
201
210
|
### H5 端
|
|
202
211
|
|
|
203
212
|
#### 方式一:PayButton
|
|
213
|
+
|
|
204
214
|
引入支付按钮,点击唤起等待支付弹窗(或蒙层),自动提交 iframe 表单唤起支付宝 App,无 App 时跳转浏览器。用户完成支付后,支付宝会通知业务后端支付结果。等待结果承接:支持弹窗和蒙层两种方式。
|
|
205
215
|
|
|
206
216
|
```typescript
|
|
@@ -232,6 +242,7 @@ export default MAlipayComponent;
|
|
|
232
242
|
```
|
|
233
243
|
|
|
234
244
|
#### 方式二:MAlipay.Button
|
|
245
|
+
|
|
235
246
|
引入 MAlipay.Button 按钮,点击唤起等待支付弹窗(或蒙层),自动提交 iframe 表单唤起支付宝 App,无 App 时跳转浏览器。用户完成支付后,支付宝会通知业务后端支付结果。
|
|
236
247
|
|
|
237
248
|
```typescript
|
|
@@ -262,8 +273,8 @@ const MAlipayComponent = () => {
|
|
|
262
273
|
export default MAlipayComponent;
|
|
263
274
|
```
|
|
264
275
|
|
|
265
|
-
|
|
266
276
|
#### 方式三:自定义表单
|
|
277
|
+
|
|
267
278
|
引入 MAlipay 表单组件,自定义触发表单时机。用户完成支付后,支付宝会通知业务后端支付结果。
|
|
268
279
|
|
|
269
280
|
```typescript
|
|
@@ -289,6 +300,7 @@ export default MAlipayComponent;
|
|
|
289
300
|
### PC 端
|
|
290
301
|
|
|
291
302
|
#### 方式一:PayButton
|
|
303
|
+
|
|
292
304
|
引入支付按钮,点击唤起支付弹窗,展示微信二维码。用户扫码完成支付后,微信会通知业务后端支付结果。
|
|
293
305
|
|
|
294
306
|
```typescript
|
|
@@ -316,6 +328,7 @@ export default WechatComponent;
|
|
|
316
328
|
```
|
|
317
329
|
|
|
318
330
|
#### 方式二:Wechat.Button
|
|
331
|
+
|
|
319
332
|
引入 Wechat.Button 按钮,点击唤起支付弹窗,展示微信二维码。用户扫码完成支付后,微信会通知业务后端支付结果。
|
|
320
333
|
|
|
321
334
|
```typescript
|
|
@@ -341,6 +354,7 @@ export default WechatComponent;
|
|
|
341
354
|
```
|
|
342
355
|
|
|
343
356
|
#### 方式三:自定义按钮
|
|
357
|
+
|
|
344
358
|
使用自定义按钮,调用支付弹窗组件,展示二维码。用户扫码完成支付后,微信会通知业务后端支付结果。
|
|
345
359
|
|
|
346
360
|
```typescript
|
|
@@ -382,6 +396,7 @@ export default WechatComponent;
|
|
|
382
396
|
```
|
|
383
397
|
|
|
384
398
|
#### 方式四:自定义承接
|
|
399
|
+
|
|
385
400
|
直接引入二维码组件,自定义承接和唤起方式。用户扫码完成支付后,微信会通知业务后端支付结果。
|
|
386
401
|
|
|
387
402
|
```typescript
|
|
@@ -404,6 +419,7 @@ export default WechatComponent;
|
|
|
404
419
|
### H5 端
|
|
405
420
|
|
|
406
421
|
#### 方式一:PayButton
|
|
422
|
+
|
|
407
423
|
引入支付按钮,点击唤起等待支付弹窗(或蒙层),自动打开微信支付链接,微信内浏览器自动唤起支付。用户完成支付后,微信会通知业务后端支付结果。等待结果承接:支持弹窗和蒙层两种方式。
|
|
408
424
|
|
|
409
425
|
```typescript
|
|
@@ -439,6 +455,7 @@ export default MWechatComponent;
|
|
|
439
455
|
```
|
|
440
456
|
|
|
441
457
|
#### 方式二:MWechatButton
|
|
458
|
+
|
|
442
459
|
引入 MWechatButton 按钮,点击唤起等待支付弹窗(或蒙层),自动打开微信支付链接,微信内浏览器自动唤起支付。用户完成支付后,微信会通知业务后端支付结果。
|
|
443
460
|
|
|
444
461
|
```typescript
|
|
@@ -465,6 +482,7 @@ export default MWechatComponent;
|
|
|
465
482
|
引入支付按钮,点击唤起支付,自动打开 PayPal 支付链接,同时展示等待支付结果蒙层。PayPal 支付完成后,PayPal 官方会重定向到业务指定的结果页面,重定向地址由业务后端服务调用 PayPal 官方创建支付订单 API 时传入。
|
|
466
483
|
|
|
467
484
|
### 方式一:PayButton
|
|
485
|
+
|
|
468
486
|
引入支付按钮,点击唤起支付,自动打开 PayPal 支付链接,同时展示等待支付结果蒙层。用户完成支付后,PayPal 会重定向到业务指定的结果页面。
|
|
469
487
|
|
|
470
488
|
```typescript
|
|
@@ -501,6 +519,7 @@ export default PaypalComponent;
|
|
|
501
519
|
```
|
|
502
520
|
|
|
503
521
|
### 方式二:PaypalButton
|
|
522
|
+
|
|
504
523
|
引入 PaypalButton 按钮,点击唤起支付,自动打开 PayPal 支付链接,同时展示等待支付结果蒙层。用户完成支付后,PayPal 会重定向到业务指定的结果页面。
|
|
505
524
|
|
|
506
525
|
```typescript
|
|
@@ -556,6 +575,7 @@ export default PaypalComponent;
|
|
|
556
575
|
引入支付组件,使用 Stripe 支付。Stripe 支付完成后,Stripe 官方会重定向到业务指定的结果页面,重定向地址由业务后端服务调用 Stripe 官方创建支付订单 API 时传入。
|
|
557
576
|
|
|
558
577
|
### 方式一:PayButton
|
|
578
|
+
|
|
559
579
|
引入支付按钮,点击唤起支付 modal 或 popup,展示 Stripe 支付表单。用户完成支付后,Stripe 会重定向到业务指定的结果页面。
|
|
560
580
|
|
|
561
581
|
```typescript
|
|
@@ -582,6 +602,7 @@ export default StripeComponent;
|
|
|
582
602
|
```
|
|
583
603
|
|
|
584
604
|
### 方式二:Stripe.Button
|
|
605
|
+
|
|
585
606
|
引入 Stripe.Button 按钮,点击唤起支付 modal 或 popup,展示 Stripe 支付表单。用户完成支付后,Stripe 会重定向到业务指定的结果页面。
|
|
586
607
|
|
|
587
608
|
```typescript
|
|
@@ -605,8 +626,8 @@ const StripeComponent = () => {
|
|
|
605
626
|
export default StripeComponent;
|
|
606
627
|
```
|
|
607
628
|
|
|
608
|
-
|
|
609
629
|
### 方式三:自定义唤起 popup - 推荐 移动端 使用
|
|
630
|
+
|
|
610
631
|
使用自定义按钮,调用 Stripe.Popup 组件,展示 Stripe 支付表单。用户完成支付后,Stripe 会重定向到业务指定的结果页面。
|
|
611
632
|
|
|
612
633
|
```typescript
|
|
@@ -650,6 +671,7 @@ export default StripeComponent;
|
|
|
650
671
|
```
|
|
651
672
|
|
|
652
673
|
### 方式四:自定义唤起 modal - 推荐 PC 端使用
|
|
674
|
+
|
|
653
675
|
使用自定义按钮,调用 Stripe.Modal 组件,展示 Stripe 支付表单。用户完成支付后,Stripe 会重定向到业务指定的结果页面。
|
|
654
676
|
|
|
655
677
|
```typescript
|
|
@@ -694,6 +716,7 @@ export default StripeComponent;
|
|
|
694
716
|
```
|
|
695
717
|
|
|
696
718
|
### 方式五:Stripe 表单
|
|
719
|
+
|
|
697
720
|
引入 Stripe 表单组件,自定义承接和展示时机。用户完成支付后,Stripe 会重定向到业务指定的结果页面。
|
|
698
721
|
|
|
699
722
|
```typescript
|
|
@@ -721,6 +744,7 @@ export default StripeComponent;
|
|
|
721
744
|
引入支付组件,使用空中云汇支付。空中云汇支付完成后,空中云汇支付组件会回调 onSuccess 方法,业务执行后续逻辑。
|
|
722
745
|
|
|
723
746
|
### 方式一:PayButton
|
|
747
|
+
|
|
724
748
|
引入支付按钮,点击唤起 popup 承接表单(推荐移动端),PC 端推荐唤起 modal。用户完成支付后,空中云汇支付组件会回调 onSuccess 方法,业务执行后续逻辑。
|
|
725
749
|
|
|
726
750
|
```typescript
|
|
@@ -770,6 +794,7 @@ export default AirwallexComponent;
|
|
|
770
794
|
```
|
|
771
795
|
|
|
772
796
|
### 方式二:自定义唤起 popup
|
|
797
|
+
|
|
773
798
|
使用自定义按钮,调用 Airwallex.Popup 组件,展示空中云汇支付表单。用户完成支付后,空中云汇支付组件会回调 onSuccess 方法,业务执行后续逻辑。
|
|
774
799
|
|
|
775
800
|
```typescript
|
|
@@ -848,6 +873,7 @@ export default AirwallexComponent;
|
|
|
848
873
|
```
|
|
849
874
|
|
|
850
875
|
### 方式三:唤起 modal
|
|
876
|
+
|
|
851
877
|
使用自定义按钮,调用 Airwallex.Modal 组件,展示空中云汇支付表单。用户完成支付后,空中云汇支付组件会回调 onSuccess 方法,业务执行后续逻辑。
|
|
852
878
|
|
|
853
879
|
```typescript
|
|
@@ -925,8 +951,8 @@ const AirwallexComponent = () => {
|
|
|
925
951
|
export default AirwallexComponent;
|
|
926
952
|
```
|
|
927
953
|
|
|
928
|
-
|
|
929
954
|
### 方式四:自定义承接
|
|
955
|
+
|
|
930
956
|
引入 Airwallex 表单组件,自定义承接和展示时机。用户完成支付后,空中云汇支付组件会回调 onSuccess 方法,业务执行后续逻辑。
|
|
931
957
|
|
|
932
958
|
```typescript
|
|
@@ -967,6 +993,7 @@ export default AirwallexComponent;
|
|
|
967
993
|
```
|
|
968
994
|
|
|
969
995
|
### 方式五:Airwallex.Button
|
|
996
|
+
|
|
970
997
|
引入支付按钮,点击打开第三方支付链接,同时唤起等待支付结果蒙层。用户完成支付后,空中云汇会重定向到业务指定的结果页面。
|
|
971
998
|
|
|
972
999
|
```typescript
|
|
@@ -993,11 +1020,200 @@ const AirwallexComponent = () => {
|
|
|
993
1020
|
export default AirwallexComponent;
|
|
994
1021
|
```
|
|
995
1022
|
|
|
1023
|
+
## PIX(巴西即时支付)
|
|
1024
|
+
|
|
1025
|
+
引入支付组件,使用 PIX 巴西即时支付。用户扫码完成支付后,业务后端会收到支付通知。
|
|
1026
|
+
|
|
1027
|
+
### PC 端
|
|
1028
|
+
|
|
1029
|
+
#### 方式一:PayButton
|
|
1030
|
+
|
|
1031
|
+
引入 PayButton 按钮,点击唤起支付弹窗,展示 PIX 二维码。用户扫码完成支付后,业务后端会收到支付通知。
|
|
1032
|
+
|
|
1033
|
+
```typescript
|
|
1034
|
+
import { PayButton, PaymentMethod } from 'pay-sdk-react';
|
|
1035
|
+
|
|
1036
|
+
const PixComponent = () => {
|
|
1037
|
+
const createOrder = async () => {
|
|
1038
|
+
const res = await fetch('/create-order', {
|
|
1039
|
+
method: 'POST',
|
|
1040
|
+
});
|
|
1041
|
+
return { pixCode: res.pixCode };
|
|
1042
|
+
};
|
|
1043
|
+
|
|
1044
|
+
return (
|
|
1045
|
+
<div className="pix-component">
|
|
1046
|
+
<h3>PayButton-基础用法</h3>
|
|
1047
|
+
<PayButton payMethod={PaymentMethod.PixPc} createOrder={createOrder}>
|
|
1048
|
+
Pay Button
|
|
1049
|
+
</PayButton>
|
|
1050
|
+
</div>
|
|
1051
|
+
);
|
|
1052
|
+
};
|
|
1053
|
+
|
|
1054
|
+
export default PixComponent;
|
|
1055
|
+
```
|
|
1056
|
+
|
|
1057
|
+
#### 方式二:Pix.Button
|
|
1058
|
+
|
|
1059
|
+
引入 Pix.Button,点击唤起支付弹窗,展示 PIX 二维码。用户扫码完成支付后,业务后端会收到支付通知。
|
|
1060
|
+
|
|
1061
|
+
```typescript
|
|
1062
|
+
import { Pix } from 'pay-sdk-react';
|
|
1063
|
+
|
|
1064
|
+
const PixComponent = () => {
|
|
1065
|
+
const createOrder = async () => {
|
|
1066
|
+
const res = await fetch('/create-order', {
|
|
1067
|
+
method: 'POST',
|
|
1068
|
+
});
|
|
1069
|
+
return { pixCode: res.pixCode };
|
|
1070
|
+
};
|
|
1071
|
+
|
|
1072
|
+
return (
|
|
1073
|
+
<div className="pix-component">
|
|
1074
|
+
<h3>Pix.Button - modal</h3>
|
|
1075
|
+
<Pix.Button createOrder={createOrder}>PIX Button</Pix.Button>
|
|
1076
|
+
</div>
|
|
1077
|
+
);
|
|
1078
|
+
};
|
|
1079
|
+
|
|
1080
|
+
export default PixComponent;
|
|
1081
|
+
```
|
|
1082
|
+
|
|
1083
|
+
#### 方式三:自定义按钮
|
|
1084
|
+
|
|
1085
|
+
使用自定义按钮,调用支付弹窗组件,展示 PIX 二维码。用户扫码完成支付后,业务后端会收到支付通知。
|
|
1086
|
+
|
|
1087
|
+
```typescript
|
|
1088
|
+
import { useRef, useState } from 'react';
|
|
1089
|
+
import { Pix, PixModalRef } from 'pay-sdk-react';
|
|
1090
|
+
|
|
1091
|
+
const pixCode = '00020126580014br.gov.bcb.pix...';
|
|
1092
|
+
|
|
1093
|
+
const PixComponent = () => {
|
|
1094
|
+
const modalRef = useRef<PixModalRef>(null);
|
|
1095
|
+
|
|
1096
|
+
const [modalVisible, setModalVisible] = useState(false);
|
|
1097
|
+
|
|
1098
|
+
const createOrder = async () => {
|
|
1099
|
+
const res = await fetch('/create-order', {
|
|
1100
|
+
method: 'POST',
|
|
1101
|
+
});
|
|
1102
|
+
modalRef.current?.open({ pixCode: res.pixCode });
|
|
1103
|
+
};
|
|
1104
|
+
|
|
1105
|
+
return (
|
|
1106
|
+
<div className="pix-component">
|
|
1107
|
+
<h3>自定义 Button - visible 参数唤起 modal</h3>
|
|
1108
|
+
<button onClick={() => setModalVisible(true)}>自定义 Button</button>
|
|
1109
|
+
<Pix.Modal
|
|
1110
|
+
visible={modalVisible}
|
|
1111
|
+
onClose={() => setModalVisible(false)}
|
|
1112
|
+
pixProps={{ pixCode }}
|
|
1113
|
+
/>
|
|
1114
|
+
|
|
1115
|
+
<h3>自定义 Button - ref open 方法唤起 modal</h3>
|
|
1116
|
+
<button onClick={() => createOrder()}>自定义 Button</button>
|
|
1117
|
+
<Pix.Modal ref={modalRef} />
|
|
1118
|
+
</div>
|
|
1119
|
+
);
|
|
1120
|
+
};
|
|
1121
|
+
|
|
1122
|
+
export default PixComponent;
|
|
1123
|
+
```
|
|
1124
|
+
|
|
1125
|
+
#### 方式四:自定义承接
|
|
1126
|
+
|
|
1127
|
+
直接引入 PIX 二维码组件,自定义承接方式&展示时机。用户扫码完成支付后,业务后端会收到支付通知。
|
|
1128
|
+
|
|
1129
|
+
```typescript
|
|
1130
|
+
import { Pix } from 'pay-sdk-react';
|
|
1131
|
+
|
|
1132
|
+
const pixCode = '00020126580014br.gov.bcb.pix...';
|
|
1133
|
+
|
|
1134
|
+
const PixComponent = () => {
|
|
1135
|
+
return (
|
|
1136
|
+
<div className="pix-component">
|
|
1137
|
+
<h3>Pix 表单 - 自定义承接</h3>
|
|
1138
|
+
<Pix pixCode={pixCode} />
|
|
1139
|
+
</div>
|
|
1140
|
+
);
|
|
1141
|
+
};
|
|
1142
|
+
|
|
1143
|
+
export default PixComponent;
|
|
1144
|
+
```
|
|
1145
|
+
|
|
1146
|
+
### H5 端
|
|
1147
|
+
|
|
1148
|
+
#### 方式一:PayButton
|
|
1149
|
+
|
|
1150
|
+
引入支付按钮,点击唤起等待支付弹窗(或蒙层),自动打开 PIX 支付链接。用户完成支付后,业务后端会收到支付通知。
|
|
1151
|
+
|
|
1152
|
+
```typescript
|
|
1153
|
+
import { PayButton, PaymentMethod } from 'pay-sdk-react';
|
|
1154
|
+
|
|
1155
|
+
const MPixComponent = () => {
|
|
1156
|
+
const createOrder = async () => {
|
|
1157
|
+
const res = await fetch('/create-order', {
|
|
1158
|
+
method: 'POST',
|
|
1159
|
+
});
|
|
1160
|
+
return { pixCode: res.pixCode };
|
|
1161
|
+
};
|
|
1162
|
+
|
|
1163
|
+
return (
|
|
1164
|
+
<div className="m-pix-component">
|
|
1165
|
+
<h3>PayButton - 基础用法</h3>
|
|
1166
|
+
<PayButton payMethod={PaymentMethod.PixH5} createOrder={createOrder}>
|
|
1167
|
+
Pay Button
|
|
1168
|
+
</PayButton>
|
|
1169
|
+
<h3>PayButton - mask</h3>
|
|
1170
|
+
<PayButton
|
|
1171
|
+
payMethod={PaymentMethod.PixH5}
|
|
1172
|
+
createOrder={createOrder}
|
|
1173
|
+
displayType="mask"
|
|
1174
|
+
>
|
|
1175
|
+
Pay Button
|
|
1176
|
+
</PayButton>
|
|
1177
|
+
</div>
|
|
1178
|
+
);
|
|
1179
|
+
};
|
|
1180
|
+
|
|
1181
|
+
export default MPixComponent;
|
|
1182
|
+
```
|
|
1183
|
+
|
|
1184
|
+
#### 方式二:MPix.Button
|
|
1185
|
+
|
|
1186
|
+
引入 MPix.Button 按钮,点击唤起等待支付弹窗(或蒙层),自动打开 PIX 支付链接。用户完成支付后,业务后端会收到支付通知。
|
|
1187
|
+
|
|
1188
|
+
```typescript
|
|
1189
|
+
import { MPixButton } from 'pay-sdk-react';
|
|
1190
|
+
|
|
1191
|
+
const pixCode = '00020126580014br.gov.bcb.pix...';
|
|
1192
|
+
|
|
1193
|
+
const MPixComponent = () => {
|
|
1194
|
+
return (
|
|
1195
|
+
<div className="m-pix-component">
|
|
1196
|
+
<h3>PIX Button - modal</h3>
|
|
1197
|
+
<MPixButton displayType="modal" pixCode={pixCode}>
|
|
1198
|
+
PIX Button
|
|
1199
|
+
</MPixButton>
|
|
1200
|
+
<h3>PIX Button - mask</h3>
|
|
1201
|
+
<MPixButton displayType="mask" pixCode={pixCode}>
|
|
1202
|
+
PIX Button
|
|
1203
|
+
</MPixButton>
|
|
1204
|
+
</div>
|
|
1205
|
+
);
|
|
1206
|
+
};
|
|
1207
|
+
|
|
1208
|
+
export default MPixComponent;
|
|
1209
|
+
```
|
|
1210
|
+
|
|
996
1211
|
## Payssion
|
|
997
1212
|
|
|
998
1213
|
引入支付组件,使用 Payssion 支付。Payssion 支付完成后,Payssion 官方会重定向到业务指定的结果页面,重定向地址由业务后端服务调用 Payssion 官方创建支付订单 API 时传入。
|
|
999
1214
|
|
|
1000
1215
|
### 方式一:PayButton
|
|
1216
|
+
|
|
1001
1217
|
引入支付按钮,点击打开第三方支付链接,同时唤起等待支付结果蒙层。用户完成支付后,Payssion 会重定向到业务指定的结果页面。
|
|
1002
1218
|
|
|
1003
1219
|
```typescript
|
|
@@ -1033,6 +1249,7 @@ export default PayssionComponent;
|
|
|
1033
1249
|
```
|
|
1034
1250
|
|
|
1035
1251
|
### 方式二:PayssionButton
|
|
1252
|
+
|
|
1036
1253
|
引入 PayssionButton 按钮,点击打开第三方支付链接,同时唤起等待支付结果蒙层。用户完成支付后,Payssion 会重定向到业务指定的结果页面。
|
|
1037
1254
|
|
|
1038
1255
|
```typescript
|
|
@@ -1076,4 +1293,4 @@ const PayssionComponent = () => {
|
|
|
1076
1293
|
};
|
|
1077
1294
|
|
|
1078
1295
|
export default PayssionComponent;
|
|
1079
|
-
```
|
|
1296
|
+
```
|
package/dist/css/index.css
CHANGED
|
@@ -558,7 +558,7 @@
|
|
|
558
558
|
max-width: 80vw;
|
|
559
559
|
box-shadow: 0 4px 24px #0001;
|
|
560
560
|
text-align: center;
|
|
561
|
-
max-height:
|
|
561
|
+
max-height: 80vh;
|
|
562
562
|
display: flex;
|
|
563
563
|
flex-direction: column;
|
|
564
564
|
}
|
|
@@ -598,7 +598,7 @@
|
|
|
598
598
|
z-index: 1;
|
|
599
599
|
text-align: center;
|
|
600
600
|
overflow-y: auto;
|
|
601
|
-
flex: 1;
|
|
601
|
+
flex: 0 1 auto;
|
|
602
602
|
min-height: 0;
|
|
603
603
|
}
|
|
604
604
|
.pay-modal__actions {
|
|
@@ -669,8 +669,8 @@
|
|
|
669
669
|
}
|
|
670
670
|
.pay-alipay-qr-iframe__iframe {
|
|
671
671
|
border: none;
|
|
672
|
-
width:
|
|
673
|
-
height:
|
|
672
|
+
width: 180px;
|
|
673
|
+
height: 180px;
|
|
674
674
|
margin-top: 10px;
|
|
675
675
|
margin-bottom: 8px;
|
|
676
676
|
}
|
|
@@ -691,8 +691,8 @@
|
|
|
691
691
|
display: flex;
|
|
692
692
|
justify-content: center;
|
|
693
693
|
align-items: center;
|
|
694
|
-
width:
|
|
695
|
-
height:
|
|
694
|
+
width: 180px;
|
|
695
|
+
height: 180px;
|
|
696
696
|
}
|
|
697
697
|
.pay-wechat-qrcode__image {
|
|
698
698
|
width: 100%;
|
|
@@ -705,3 +705,72 @@
|
|
|
705
705
|
font-size: 14px;
|
|
706
706
|
line-height: 20px;
|
|
707
707
|
}
|
|
708
|
+
.pay-pix-qrcode {
|
|
709
|
+
display: flex;
|
|
710
|
+
flex-direction: column;
|
|
711
|
+
align-items: center;
|
|
712
|
+
}
|
|
713
|
+
.pay-pix-qrcode__container {
|
|
714
|
+
background-color: #fff;
|
|
715
|
+
border-radius: 8px;
|
|
716
|
+
display: flex;
|
|
717
|
+
justify-content: center;
|
|
718
|
+
align-items: center;
|
|
719
|
+
width: 180px;
|
|
720
|
+
height: 180px;
|
|
721
|
+
}
|
|
722
|
+
.pay-pix-qrcode__image {
|
|
723
|
+
width: 100%;
|
|
724
|
+
height: 100%;
|
|
725
|
+
object-fit: cover;
|
|
726
|
+
}
|
|
727
|
+
.pay-pix-qrcode__tip {
|
|
728
|
+
text-align: center;
|
|
729
|
+
color: #333;
|
|
730
|
+
font-size: 14px;
|
|
731
|
+
line-height: 20px;
|
|
732
|
+
margin-top: 12px;
|
|
733
|
+
}
|
|
734
|
+
.pay-pix-qrcode__code-section {
|
|
735
|
+
width: 100%;
|
|
736
|
+
max-width: 320px;
|
|
737
|
+
margin-top: 16px;
|
|
738
|
+
}
|
|
739
|
+
.pay-pix-qrcode__copy-btn {
|
|
740
|
+
width: 100%;
|
|
741
|
+
padding: 10px 16px;
|
|
742
|
+
border: 1px solid #32bcad;
|
|
743
|
+
background-color: #fff;
|
|
744
|
+
color: #32bcad;
|
|
745
|
+
border-radius: 8px;
|
|
746
|
+
font-size: 13px;
|
|
747
|
+
font-weight: 600;
|
|
748
|
+
cursor: pointer;
|
|
749
|
+
transition: all 0.2s ease;
|
|
750
|
+
display: flex;
|
|
751
|
+
align-items: center;
|
|
752
|
+
justify-content: center;
|
|
753
|
+
gap: 6px;
|
|
754
|
+
}
|
|
755
|
+
.pay-pix-qrcode__copy-btn:hover {
|
|
756
|
+
background-color: rgba(50, 188, 173, 0.06);
|
|
757
|
+
}
|
|
758
|
+
.pay-pix-qrcode__copy-btn:active {
|
|
759
|
+
background-color: rgba(50, 188, 173, 0.12);
|
|
760
|
+
}
|
|
761
|
+
.pay-pix-qrcode__copy-btn--copied {
|
|
762
|
+
color: #2ecc71;
|
|
763
|
+
border-color: #2ecc71;
|
|
764
|
+
background-color: rgba(46, 204, 113, 0.04);
|
|
765
|
+
}
|
|
766
|
+
.pay-pix-qrcode__copy-btn--copied:hover {
|
|
767
|
+
background-color: rgba(46, 204, 113, 0.08);
|
|
768
|
+
}
|
|
769
|
+
.pay-pix-qrcode__copy-btn--copied:active {
|
|
770
|
+
background-color: rgba(46, 204, 113, 0.14);
|
|
771
|
+
}
|
|
772
|
+
.pay-pix-qrcode__copy-icon {
|
|
773
|
+
width: 16px;
|
|
774
|
+
height: 16px;
|
|
775
|
+
flex-shrink: 0;
|
|
776
|
+
}
|
package/dist/css/index.min.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.pay-dot-loading{display:inline-block}.pay-fullscreen-loading{position:fixed;z-index:9999;left:0;top:0;right:0;bottom:0;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center;pointer-events:auto;user-select:none}.pay-fullscreen-loading__center{display:flex;flex-direction:column;align-items:center;justify-content:center}.pay-fullscreen-loading__spinner-box{display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:rgba(17,17,17,.8);border-radius:16px;transition:width .2s,height .2s;box-sizing:border-box;padding:8px}.pay-fullscreen-loading__spinner-box--no-text{padding:4px}.pay-fullscreen-loading__spinner{margin-bottom:8px}.pay-fullscreen-loading__spinner-box--no-text .pay-fullscreen-loading__spinner{margin-bottom:0}.pay-fullscreen-loading__circle{border:3px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:1.2s linear infinite spin}.pay-fullscreen-loading__text{color:#fff;font-weight:600;letter-spacing:.25px;text-align:center;width:100%;word-break:break-all;line-height:1.2;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.pay-fullscreen-loading__dots{display:flex;align-items:center;gap:10px}.pay-fullscreen-loading__dot{background:#fff;border-radius:50%;animation:.5s ease-in-out infinite bounce}.pay-fullscreen-loading__dot:nth-child(2){animation-delay:.1s}.pay-fullscreen-loading__dot:nth-child(3){animation-delay:.2s}.pay-fullscreen-loading__spin-dots{position:relative;animation:1.2s steps(12) infinite spin}.pay-fullscreen-loading__spin-dot{position:absolute;top:0;left:50%;background:#fff;border-radius:50%}.pay-fullscreen-loading--small .pay-fullscreen-loading__spinner-box{width:88px;height:88px}.pay-fullscreen-loading--small .pay-fullscreen-loading__spinner-box--no-text{width:48px;height:48px}.pay-fullscreen-loading--small .pay-fullscreen-loading__circle{width:24px;height:24px;border-width:3px}.pay-fullscreen-loading--small .pay-fullscreen-loading__text{font-size:14px}.pay-fullscreen-loading--small .pay-fullscreen-loading__dot{width:6px;height:6px}.pay-fullscreen-loading--small .pay-fullscreen-loading__spin-dots{width:28px;height:28px}.pay-fullscreen-loading--small .pay-fullscreen-loading__spin-dot{width:3.5px;height:3.5px;margin-left:-1.75px;transform-origin:50% 14px}.pay-fullscreen-loading--medium .pay-fullscreen-loading__spinner-box{width:112px;height:112px}.pay-fullscreen-loading--medium .pay-fullscreen-loading__spinner-box--no-text{width:62px;height:62px}.pay-fullscreen-loading--medium .pay-fullscreen-loading__circle{width:36px;height:36px;border-width:4px}.pay-fullscreen-loading--medium .pay-fullscreen-loading__text{font-size:16px}.pay-fullscreen-loading--medium .pay-fullscreen-loading__dot{width:10px;height:10px}.pay-fullscreen-loading--medium .pay-fullscreen-loading__spin-dots{width:40px;height:40px}.pay-fullscreen-loading--medium .pay-fullscreen-loading__spin-dot{width:4.5px;height:4.5px;margin-left:-2.25px;transform-origin:50% 20px}.pay-fullscreen-loading--large .pay-fullscreen-loading__spinner-box{width:144px;height:144px}.pay-fullscreen-loading--large .pay-fullscreen-loading__spinner-box--no-text{width:80px;height:80px}.pay-fullscreen-loading--large .pay-fullscreen-loading__circle{width:42px;height:42px;border-width:5px}.pay-fullscreen-loading--large .pay-fullscreen-loading__text{font-size:18px}.pay-fullscreen-loading--large .pay-fullscreen-loading__dot{width:12px;height:12px}.pay-fullscreen-loading--large .pay-fullscreen-loading__spin-dots{width:48px;height:48px}.pay-fullscreen-loading--large .pay-fullscreen-loading__spin-dot{width:5.5px;height:5.5px;margin-left:-2.75px;transform-origin:50% 24px}.pay-fullscreen-loading--default .pay-fullscreen-loading__spinner-box{width:100px;height:100px}.pay-fullscreen-loading--default .pay-fullscreen-loading__spinner-box--no-text{width:56px;height:56px}.pay-fullscreen-loading--default .pay-fullscreen-loading__circle{width:32px;height:32px;border-width:4px}.pay-fullscreen-loading--default .pay-fullscreen-loading__text{font-size:16px}.pay-fullscreen-loading--default .pay-fullscreen-loading__dot{width:9px;height:9px}.pay-fullscreen-loading--default .pay-fullscreen-loading__spin-dots{width:32px;height:32px}.pay-fullscreen-loading--default .pay-fullscreen-loading__spin-dot{width:4px;height:4px;margin-left:-2px;transform-origin:50% 16px}.pay-fullscreen-loading__container{position:relative;display:block}.pay-fullscreen-loading__mask{position:absolute;left:0;top:0;right:0;bottom:0;background:hsla(0,0%,100%,.8);z-index:10;display:flex;align-items:center;justify-content:center}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}.pay-button{display:inline-block;padding:7px 12px;font-size:16px;border-radius:4px;border:1px solid #eee;background:#fff;color:#333;cursor:pointer;transition:.2s;user-select:none;position:relative;text-align:center}.pay-button-content{display:flex;align-items:center;justify-content:center;gap:6px}.pay-button-block{display:block;width:100%}.pay-button-disabled{opacity:.4;cursor:not-allowed}.pay-button-loading{cursor:wait}.pay-button-loading-wrapper{display:flex;align-items:center;justify-content:center;gap:6px}.pay-button-primary{background:#1677ff;border-color:#1677ff;color:#fff}.pay-button-primary:hover{background:#409eff}.pay-button-success{background:#00b578;border-color:#00b578;color:#fff}.pay-button-danger{background:#ff3141;border-color:#ff3141;color:#fff}.pay-button-warning{background:#ff8f1f;border-color:#ff8f1f;color:#fff}.pay-button-default{background:#fff;border-color:#eee;color:#333}.pay-button-fill-outline{background:0 0;color:inherit}.pay-button-fill-none{background:0 0;border:none;color:inherit}.pay-button-mini{font-size:12px;padding:2px 8px}.pay-button-small{font-size:14px;padding:4px 10px}.pay-button-large{font-size:18px;padding:10px 18px}.pay-button-shape-rounded{border-radius:1000px}.pay-button-shape-rectangular{border-radius:0}.pay-popup{position:fixed;z-index:1001}.pay-popup-body{position:fixed;display:flex;flex-direction:column;background-color:#fff;z-index:1010;box-sizing:border-box}.pay-popup-body.pay-popup-body-position-bottom{width:100%;left:0;bottom:0}.pay-popup-body.pay-popup-body-position-top{width:100%;left:0;top:0}.pay-popup-body.pay-popup-body-position-left{height:100%;width:80vw;left:0;top:0}.pay-popup-body.pay-popup-body-position-right{height:100%;width:80vw;right:0;top:0}.pay-popup-body.pay-popup-body-round.pay-popup-body-position-bottom{border-radius:16px 16px 0 0}.pay-popup-body.pay-popup-body-round.pay-popup-body-position-top{border-radius:0 0 16px 16px}.pay-popup-body.pay-popup-body-round.pay-popup-body-position-left{border-radius:0 16px 16px 0}.pay-popup-body.pay-popup-body-round.pay-popup-body-position-right{border-radius:16px 0 0 16px}.pay-popup-close-icon{position:absolute;z-index:1;cursor:pointer;padding:4px;font-size:18px;line-height:1;color:#999}.pay-popup-body.pay-popup-body-position-bottom .pay-popup-close-icon,.pay-popup-body.pay-popup-body-position-left .pay-popup-close-icon{top:8px;right:8px}.pay-popup-body.pay-popup-body-position-top .pay-popup-close-icon{bottom:8px;right:8px}.pay-popup-body.pay-popup-body-position-right .pay-popup-close-icon{top:8px;left:8px}.pay-popup-content{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}.pay-popup-body.pay-popup-body-with-close.pay-popup-body-position-bottom .pay-popup-content,.pay-popup-body.pay-popup-body-with-close.pay-popup-body-position-left .pay-popup-content{padding-top:40px}.pay-popup-body.pay-popup-body-with-close.pay-popup-body-position-right .pay-popup-content{padding-top:40px}.pay-popup-body.pay-popup-body-with-close.pay-popup-body-position-top .pay-popup-content{padding-bottom:40px}.pay-mask-content{position:relative;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 88px}.pay-mask-close{position:absolute;right:12px;top:12px;background:0 0;border:none;font-size:28px;color:#fff;cursor:pointer;z-index:1}.pay-mask-title{display:flex;align-items:center;gap:4px;font-weight:700;font-size:28px;color:#fff;margin-bottom:16px;text-shadow:0 2px 8px #000}.pay-mask-title>.pay-icon-paypal-white{width:36px;height:36px}.pay-mask-desc{color:#fff;text-align:center;margin-bottom:24px;line-height:1.5;white-space:pre-line}.pay-mask-continue{color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:4px;cursor:pointer;text-align:center;font-size:18px}.pay-icon{display:inline-block;color:inherit;width:16px;vertical-align:-2px;stroke:currentColor}.pay-icon[fill=currentColor]{fill:currentColor;stroke:none}.pay-icon[stroke=currentColor]{stroke:currentColor;fill:none}.pay-icon[fill=currentColor][stroke=currentColor]{fill:currentColor;stroke:currentColor}.pay-icon-paypal-text{width:64px;height:26px;max-width:72px;max-height:32px}.pay-icon-close{width:18px;height:18px}.pay-icon-stripe-text{width:24px;height:24px}.pay-icon-alipay{width:20px;height:20px}.pay-icon-wechat-pay{width:20px;height:20px}.pay-icon-payssion-pay{width:36px;height:20px}.pay-mask{position:fixed;z-index:1000;left:0;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.pay-modal{position:fixed;z-index:9999;left:0;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.pay-modal__mask{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.55);z-index:0}.pay-modal__content{position:relative;z-index:1;background:#fff;border-radius:16px;padding:42px 20px 20px;min-width:280px;max-width:80vw;box-shadow:0 4px 24px #0001;text-align:center;max-height:60vh;display:flex;flex-direction:column}.pay-modal__close{position:absolute;right:12px;top:12px;background:0 0;border:none;font-size:32px;font-weight:500;line-height:32px;cursor:pointer;text-align:left}.pay-modal__icon{display:flex;justify-content:center;margin-bottom:8px;font-size:40px}.pay-modal__title{font-size:20px;font-weight:700;color:#222;margin-bottom:12px}.pay-modal__desc{color:#222;font-size:15px;margin-bottom:24px;line-height:1.7;text-align:left}.pay-modal__content-wrapper{position:relative;z-index:1;text-align:center;overflow-y:auto;flex:1;min-height:0}.pay-modal__actions{display:flex;justify-content:center;gap:16px;margin-top:16px}.pay-modal__btn{min-width:96px;padding:8px 0;border-radius:24px;border:none;font-size:15px;font-weight:600;cursor:pointer;transition:background .2s}.pay-modal__btn--retry{background:#fff;color:#f25a5a;border:1.5px solid #f25a5a}.pay-modal__btn--finish{background:#f25a5a;color:#fff;border:none}.pay-paypal-btn.pay-button>span{display:flex;align-items:center;gap:.5rem}@media (min-width:576px){.pay-stripe-modal.pay-modal .pay-modal__content{width:72%}}@media (min-width:768px){.pay-stripe-modal.pay-modal .pay-modal__content{width:50%}}@media (min-width:992px){.pay-stripe-modal.pay-modal .pay-modal__content{width:40%}}@media (min-width:1200px){.pay-stripe-modal.pay-modal .pay-modal__content{width:27%}}@media (min-width:1600px){.pay-stripe-modal.pay-modal .pay-modal__content{width:26%}}@media (min-width:2000px){.pay-stripe-modal.pay-modal .pay-modal__content{width:20%}}.pay-alipay-qr-iframe{display:flex;flex-direction:column;align-items:center}.pay-alipay-qr-iframe__iframe{border:none;width:210px;height:210px;margin-top:10px;margin-bottom:8px}.pay-alipay-qr-iframe__tip{text-align:center;color:#333;font-size:14px;line-height:20px}.pay-wechat-qrcode{display:flex;flex-direction:column;align-items:center}.pay-wechat-qrcode__container{background-color:#fff;border-radius:8px;display:flex;justify-content:center;align-items:center;width:210px;height:210px}.pay-wechat-qrcode__image{width:100%;height:100%;object-fit:cover}.pay-wechat-qrcode__tip{text-align:center;color:#333;font-size:14px;line-height:20px}
|
|
1
|
+
.pay-dot-loading{display:inline-block}.pay-fullscreen-loading{position:fixed;z-index:9999;left:0;top:0;right:0;bottom:0;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center;pointer-events:auto;user-select:none}.pay-fullscreen-loading__center{display:flex;flex-direction:column;align-items:center;justify-content:center}.pay-fullscreen-loading__spinner-box{display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:rgba(17,17,17,.8);border-radius:16px;transition:width .2s,height .2s;box-sizing:border-box;padding:8px}.pay-fullscreen-loading__spinner-box--no-text{padding:4px}.pay-fullscreen-loading__spinner{margin-bottom:8px}.pay-fullscreen-loading__spinner-box--no-text .pay-fullscreen-loading__spinner{margin-bottom:0}.pay-fullscreen-loading__circle{border:3px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:1.2s linear infinite spin}.pay-fullscreen-loading__text{color:#fff;font-weight:600;letter-spacing:.25px;text-align:center;width:100%;word-break:break-all;line-height:1.2;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.pay-fullscreen-loading__dots{display:flex;align-items:center;gap:10px}.pay-fullscreen-loading__dot{background:#fff;border-radius:50%;animation:.5s ease-in-out infinite bounce}.pay-fullscreen-loading__dot:nth-child(2){animation-delay:.1s}.pay-fullscreen-loading__dot:nth-child(3){animation-delay:.2s}.pay-fullscreen-loading__spin-dots{position:relative;animation:1.2s steps(12) infinite spin}.pay-fullscreen-loading__spin-dot{position:absolute;top:0;left:50%;background:#fff;border-radius:50%}.pay-fullscreen-loading--small .pay-fullscreen-loading__spinner-box{width:88px;height:88px}.pay-fullscreen-loading--small .pay-fullscreen-loading__spinner-box--no-text{width:48px;height:48px}.pay-fullscreen-loading--small .pay-fullscreen-loading__circle{width:24px;height:24px;border-width:3px}.pay-fullscreen-loading--small .pay-fullscreen-loading__text{font-size:14px}.pay-fullscreen-loading--small .pay-fullscreen-loading__dot{width:6px;height:6px}.pay-fullscreen-loading--small .pay-fullscreen-loading__spin-dots{width:28px;height:28px}.pay-fullscreen-loading--small .pay-fullscreen-loading__spin-dot{width:3.5px;height:3.5px;margin-left:-1.75px;transform-origin:50% 14px}.pay-fullscreen-loading--medium .pay-fullscreen-loading__spinner-box{width:112px;height:112px}.pay-fullscreen-loading--medium .pay-fullscreen-loading__spinner-box--no-text{width:62px;height:62px}.pay-fullscreen-loading--medium .pay-fullscreen-loading__circle{width:36px;height:36px;border-width:4px}.pay-fullscreen-loading--medium .pay-fullscreen-loading__text{font-size:16px}.pay-fullscreen-loading--medium .pay-fullscreen-loading__dot{width:10px;height:10px}.pay-fullscreen-loading--medium .pay-fullscreen-loading__spin-dots{width:40px;height:40px}.pay-fullscreen-loading--medium .pay-fullscreen-loading__spin-dot{width:4.5px;height:4.5px;margin-left:-2.25px;transform-origin:50% 20px}.pay-fullscreen-loading--large .pay-fullscreen-loading__spinner-box{width:144px;height:144px}.pay-fullscreen-loading--large .pay-fullscreen-loading__spinner-box--no-text{width:80px;height:80px}.pay-fullscreen-loading--large .pay-fullscreen-loading__circle{width:42px;height:42px;border-width:5px}.pay-fullscreen-loading--large .pay-fullscreen-loading__text{font-size:18px}.pay-fullscreen-loading--large .pay-fullscreen-loading__dot{width:12px;height:12px}.pay-fullscreen-loading--large .pay-fullscreen-loading__spin-dots{width:48px;height:48px}.pay-fullscreen-loading--large .pay-fullscreen-loading__spin-dot{width:5.5px;height:5.5px;margin-left:-2.75px;transform-origin:50% 24px}.pay-fullscreen-loading--default .pay-fullscreen-loading__spinner-box{width:100px;height:100px}.pay-fullscreen-loading--default .pay-fullscreen-loading__spinner-box--no-text{width:56px;height:56px}.pay-fullscreen-loading--default .pay-fullscreen-loading__circle{width:32px;height:32px;border-width:4px}.pay-fullscreen-loading--default .pay-fullscreen-loading__text{font-size:16px}.pay-fullscreen-loading--default .pay-fullscreen-loading__dot{width:9px;height:9px}.pay-fullscreen-loading--default .pay-fullscreen-loading__spin-dots{width:32px;height:32px}.pay-fullscreen-loading--default .pay-fullscreen-loading__spin-dot{width:4px;height:4px;margin-left:-2px;transform-origin:50% 16px}.pay-fullscreen-loading__container{position:relative;display:block}.pay-fullscreen-loading__mask{position:absolute;left:0;top:0;right:0;bottom:0;background:hsla(0,0%,100%,.8);z-index:10;display:flex;align-items:center;justify-content:center}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}.pay-button{display:inline-block;padding:7px 12px;font-size:16px;border-radius:4px;border:1px solid #eee;background:#fff;color:#333;cursor:pointer;transition:.2s;user-select:none;position:relative;text-align:center}.pay-button-content{display:flex;align-items:center;justify-content:center;gap:6px}.pay-button-block{display:block;width:100%}.pay-button-disabled{opacity:.4;cursor:not-allowed}.pay-button-loading{cursor:wait}.pay-button-loading-wrapper{display:flex;align-items:center;justify-content:center;gap:6px}.pay-button-primary{background:#1677ff;border-color:#1677ff;color:#fff}.pay-button-primary:hover{background:#409eff}.pay-button-success{background:#00b578;border-color:#00b578;color:#fff}.pay-button-danger{background:#ff3141;border-color:#ff3141;color:#fff}.pay-button-warning{background:#ff8f1f;border-color:#ff8f1f;color:#fff}.pay-button-default{background:#fff;border-color:#eee;color:#333}.pay-button-fill-outline{background:0 0;color:inherit}.pay-button-fill-none{background:0 0;border:none;color:inherit}.pay-button-mini{font-size:12px;padding:2px 8px}.pay-button-small{font-size:14px;padding:4px 10px}.pay-button-large{font-size:18px;padding:10px 18px}.pay-button-shape-rounded{border-radius:1000px}.pay-button-shape-rectangular{border-radius:0}.pay-popup{position:fixed;z-index:1001}.pay-popup-body{position:fixed;display:flex;flex-direction:column;background-color:#fff;z-index:1010;box-sizing:border-box}.pay-popup-body.pay-popup-body-position-bottom{width:100%;left:0;bottom:0}.pay-popup-body.pay-popup-body-position-top{width:100%;left:0;top:0}.pay-popup-body.pay-popup-body-position-left{height:100%;width:80vw;left:0;top:0}.pay-popup-body.pay-popup-body-position-right{height:100%;width:80vw;right:0;top:0}.pay-popup-body.pay-popup-body-round.pay-popup-body-position-bottom{border-radius:16px 16px 0 0}.pay-popup-body.pay-popup-body-round.pay-popup-body-position-top{border-radius:0 0 16px 16px}.pay-popup-body.pay-popup-body-round.pay-popup-body-position-left{border-radius:0 16px 16px 0}.pay-popup-body.pay-popup-body-round.pay-popup-body-position-right{border-radius:16px 0 0 16px}.pay-popup-close-icon{position:absolute;z-index:1;cursor:pointer;padding:4px;font-size:18px;line-height:1;color:#999}.pay-popup-body.pay-popup-body-position-bottom .pay-popup-close-icon,.pay-popup-body.pay-popup-body-position-left .pay-popup-close-icon{top:8px;right:8px}.pay-popup-body.pay-popup-body-position-top .pay-popup-close-icon{bottom:8px;right:8px}.pay-popup-body.pay-popup-body-position-right .pay-popup-close-icon{top:8px;left:8px}.pay-popup-content{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}.pay-popup-body.pay-popup-body-with-close.pay-popup-body-position-bottom .pay-popup-content,.pay-popup-body.pay-popup-body-with-close.pay-popup-body-position-left .pay-popup-content{padding-top:40px}.pay-popup-body.pay-popup-body-with-close.pay-popup-body-position-right .pay-popup-content{padding-top:40px}.pay-popup-body.pay-popup-body-with-close.pay-popup-body-position-top .pay-popup-content{padding-bottom:40px}.pay-mask-content{position:relative;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 88px}.pay-mask-close{position:absolute;right:12px;top:12px;background:0 0;border:none;font-size:28px;color:#fff;cursor:pointer;z-index:1}.pay-mask-title{display:flex;align-items:center;gap:4px;font-weight:700;font-size:28px;color:#fff;margin-bottom:16px;text-shadow:0 2px 8px #000}.pay-mask-title>.pay-icon-paypal-white{width:36px;height:36px}.pay-mask-desc{color:#fff;text-align:center;margin-bottom:24px;line-height:1.5;white-space:pre-line}.pay-mask-continue{color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:4px;cursor:pointer;text-align:center;font-size:18px}.pay-icon{display:inline-block;color:inherit;width:16px;vertical-align:-2px;stroke:currentColor}.pay-icon[fill=currentColor]{fill:currentColor;stroke:none}.pay-icon[stroke=currentColor]{stroke:currentColor;fill:none}.pay-icon[fill=currentColor][stroke=currentColor]{fill:currentColor;stroke:currentColor}.pay-icon-paypal-text{width:64px;height:26px;max-width:72px;max-height:32px}.pay-icon-close{width:18px;height:18px}.pay-icon-stripe-text{width:24px;height:24px}.pay-icon-alipay{width:20px;height:20px}.pay-icon-wechat-pay{width:20px;height:20px}.pay-icon-payssion-pay{width:36px;height:20px}.pay-mask{position:fixed;z-index:1000;left:0;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.pay-modal{position:fixed;z-index:9999;left:0;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.pay-modal__mask{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.55);z-index:0}.pay-modal__content{position:relative;z-index:1;background:#fff;border-radius:16px;padding:42px 20px 20px;min-width:280px;max-width:80vw;box-shadow:0 4px 24px #0001;text-align:center;max-height:80vh;display:flex;flex-direction:column}.pay-modal__close{position:absolute;right:12px;top:12px;background:0 0;border:none;font-size:32px;font-weight:500;line-height:32px;cursor:pointer;text-align:left}.pay-modal__icon{display:flex;justify-content:center;margin-bottom:8px;font-size:40px}.pay-modal__title{font-size:20px;font-weight:700;color:#222;margin-bottom:12px}.pay-modal__desc{color:#222;font-size:15px;margin-bottom:24px;line-height:1.7;text-align:left}.pay-modal__content-wrapper{position:relative;z-index:1;text-align:center;overflow-y:auto;flex:0 1 auto;min-height:0}.pay-modal__actions{display:flex;justify-content:center;gap:16px;margin-top:16px}.pay-modal__btn{min-width:96px;padding:8px 0;border-radius:24px;border:none;font-size:15px;font-weight:600;cursor:pointer;transition:background .2s}.pay-modal__btn--retry{background:#fff;color:#f25a5a;border:1.5px solid #f25a5a}.pay-modal__btn--finish{background:#f25a5a;color:#fff;border:none}.pay-paypal-btn.pay-button>span{display:flex;align-items:center;gap:.5rem}@media (min-width:576px){.pay-stripe-modal.pay-modal .pay-modal__content{width:72%}}@media (min-width:768px){.pay-stripe-modal.pay-modal .pay-modal__content{width:50%}}@media (min-width:992px){.pay-stripe-modal.pay-modal .pay-modal__content{width:40%}}@media (min-width:1200px){.pay-stripe-modal.pay-modal .pay-modal__content{width:27%}}@media (min-width:1600px){.pay-stripe-modal.pay-modal .pay-modal__content{width:26%}}@media (min-width:2000px){.pay-stripe-modal.pay-modal .pay-modal__content{width:20%}}.pay-alipay-qr-iframe{display:flex;flex-direction:column;align-items:center}.pay-alipay-qr-iframe__iframe{border:none;width:180px;height:180px;margin-top:10px;margin-bottom:8px}.pay-alipay-qr-iframe__tip{text-align:center;color:#333;font-size:14px;line-height:20px}.pay-wechat-qrcode{display:flex;flex-direction:column;align-items:center}.pay-wechat-qrcode__container{background-color:#fff;border-radius:8px;display:flex;justify-content:center;align-items:center;width:180px;height:180px}.pay-wechat-qrcode__image{width:100%;height:100%;object-fit:cover}.pay-wechat-qrcode__tip{text-align:center;color:#333;font-size:14px;line-height:20px}.pay-pix-qrcode{display:flex;flex-direction:column;align-items:center}.pay-pix-qrcode__container{background-color:#fff;border-radius:8px;display:flex;justify-content:center;align-items:center;width:180px;height:180px}.pay-pix-qrcode__image{width:100%;height:100%;object-fit:cover}.pay-pix-qrcode__tip{text-align:center;color:#333;font-size:14px;line-height:20px;margin-top:12px}.pay-pix-qrcode__code-section{width:100%;max-width:320px;margin-top:16px}.pay-pix-qrcode__copy-btn{width:100%;padding:10px 16px;border:1px solid #32bcad;background-color:#fff;color:#32bcad;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;transition:.2s;display:flex;align-items:center;justify-content:center;gap:6px}.pay-pix-qrcode__copy-btn:hover{background-color:rgba(50,188,173,.06)}.pay-pix-qrcode__copy-btn:active{background-color:rgba(50,188,173,.12)}.pay-pix-qrcode__copy-btn--copied{color:#2ecc71;border-color:#2ecc71;background-color:rgba(46,204,113,.04)}.pay-pix-qrcode__copy-btn--copied:hover{background-color:rgba(46,204,113,.08)}.pay-pix-qrcode__copy-btn--copied:active{background-color:rgba(46,204,113,.14)}.pay-pix-qrcode__copy-icon{width:16px;height:16px;flex-shrink:0}
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
max-width: 80vw;
|
|
124
124
|
box-shadow: 0 4px 24px #0001;
|
|
125
125
|
text-align: center;
|
|
126
|
-
max-height:
|
|
126
|
+
max-height: 80vh;
|
|
127
127
|
display: flex;
|
|
128
128
|
flex-direction: column;
|
|
129
129
|
}
|
|
@@ -163,7 +163,7 @@
|
|
|
163
163
|
z-index: 1;
|
|
164
164
|
text-align: center;
|
|
165
165
|
overflow-y: auto;
|
|
166
|
-
flex: 1;
|
|
166
|
+
flex: 0 1 auto;
|
|
167
167
|
min-height: 0;
|
|
168
168
|
}
|
|
169
169
|
.pay-modal__actions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pay-dot-loading{display:inline-block}.pay-button{display:inline-block;padding:7px 12px;font-size:16px;border-radius:4px;border:1px solid #eee;background:#fff;color:#333;cursor:pointer;transition:.2s;user-select:none;position:relative;text-align:center}.pay-button-content{display:flex;align-items:center;justify-content:center;gap:6px}.pay-button-block{display:block;width:100%}.pay-button-disabled{opacity:.4;cursor:not-allowed}.pay-button-loading{cursor:wait}.pay-button-loading-wrapper{display:flex;align-items:center;justify-content:center;gap:6px}.pay-button-primary{background:#1677ff;border-color:#1677ff;color:#fff}.pay-button-primary:hover{background:#409eff}.pay-button-success{background:#00b578;border-color:#00b578;color:#fff}.pay-button-danger{background:#ff3141;border-color:#ff3141;color:#fff}.pay-button-warning{background:#ff8f1f;border-color:#ff8f1f;color:#fff}.pay-button-default{background:#fff;border-color:#eee;color:#333}.pay-button-fill-outline{background:0 0;color:inherit}.pay-button-fill-none{background:0 0;border:none;color:inherit}.pay-button-mini{font-size:12px;padding:2px 8px}.pay-button-small{font-size:14px;padding:4px 10px}.pay-button-large{font-size:18px;padding:10px 18px}.pay-button-shape-rounded{border-radius:1000px}.pay-button-shape-rectangular{border-radius:0}.pay-modal{position:fixed;z-index:9999;left:0;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.pay-modal__mask{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.55);z-index:0}.pay-modal__content{position:relative;z-index:1;background:#fff;border-radius:16px;padding:42px 20px 20px;min-width:280px;max-width:80vw;box-shadow:0 4px 24px #0001;text-align:center;max-height:
|
|
1
|
+
.pay-dot-loading{display:inline-block}.pay-button{display:inline-block;padding:7px 12px;font-size:16px;border-radius:4px;border:1px solid #eee;background:#fff;color:#333;cursor:pointer;transition:.2s;user-select:none;position:relative;text-align:center}.pay-button-content{display:flex;align-items:center;justify-content:center;gap:6px}.pay-button-block{display:block;width:100%}.pay-button-disabled{opacity:.4;cursor:not-allowed}.pay-button-loading{cursor:wait}.pay-button-loading-wrapper{display:flex;align-items:center;justify-content:center;gap:6px}.pay-button-primary{background:#1677ff;border-color:#1677ff;color:#fff}.pay-button-primary:hover{background:#409eff}.pay-button-success{background:#00b578;border-color:#00b578;color:#fff}.pay-button-danger{background:#ff3141;border-color:#ff3141;color:#fff}.pay-button-warning{background:#ff8f1f;border-color:#ff8f1f;color:#fff}.pay-button-default{background:#fff;border-color:#eee;color:#333}.pay-button-fill-outline{background:0 0;color:inherit}.pay-button-fill-none{background:0 0;border:none;color:inherit}.pay-button-mini{font-size:12px;padding:2px 8px}.pay-button-small{font-size:14px;padding:4px 10px}.pay-button-large{font-size:18px;padding:10px 18px}.pay-button-shape-rounded{border-radius:1000px}.pay-button-shape-rectangular{border-radius:0}.pay-modal{position:fixed;z-index:9999;left:0;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.pay-modal__mask{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,.55);z-index:0}.pay-modal__content{position:relative;z-index:1;background:#fff;border-radius:16px;padding:42px 20px 20px;min-width:280px;max-width:80vw;box-shadow:0 4px 24px #0001;text-align:center;max-height:80vh;display:flex;flex-direction:column}.pay-modal__close{position:absolute;right:12px;top:12px;background:0 0;border:none;font-size:32px;font-weight:500;line-height:32px;cursor:pointer;text-align:left}.pay-modal__icon{display:flex;justify-content:center;margin-bottom:8px;font-size:40px}.pay-modal__title{font-size:20px;font-weight:700;color:#222;margin-bottom:12px}.pay-modal__desc{color:#222;font-size:15px;margin-bottom:24px;line-height:1.7;text-align:left}.pay-modal__content-wrapper{position:relative;z-index:1;text-align:center;overflow-y:auto;flex:0 1 auto;min-height:0}.pay-modal__actions{display:flex;justify-content:center;gap:16px;margin-top:16px}.pay-modal__btn{min-width:96px;padding:8px 0;border-radius:24px;border:none;font-size:15px;font-weight:600;cursor:pointer;transition:background .2s}.pay-modal__btn--retry{background:#fff;color:#f25a5a;border:1.5px solid #f25a5a}.pay-modal__btn--finish{background:#f25a5a;color:#fff;border:none}.pay-mask{position:fixed;z-index:1000;left:0;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.pay-icon{display:inline-block;color:inherit;width:16px;vertical-align:-2px;stroke:currentColor}.pay-icon[fill=currentColor]{fill:currentColor;stroke:none}.pay-icon[stroke=currentColor]{stroke:currentColor;fill:none}.pay-icon[fill=currentColor][stroke=currentColor]{fill:currentColor;stroke:currentColor}.pay-icon-paypal-text{width:64px;height:26px;max-width:72px;max-height:32px}.pay-icon-close{width:18px;height:18px}.pay-icon-stripe-text{width:24px;height:24px}.pay-icon-alipay{width:20px;height:20px}.pay-icon-wechat-pay{width:20px;height:20px}.pay-icon-payssion-pay{width:36px;height:20px}.pay-popup{position:fixed;z-index:1001}.pay-popup-body{position:fixed;display:flex;flex-direction:column;background-color:#fff;z-index:1010;box-sizing:border-box}.pay-popup-body.pay-popup-body-position-bottom{width:100%;left:0;bottom:0}.pay-popup-body.pay-popup-body-position-top{width:100%;left:0;top:0}.pay-popup-body.pay-popup-body-position-left{height:100%;width:80vw;left:0;top:0}.pay-popup-body.pay-popup-body-position-right{height:100%;width:80vw;right:0;top:0}.pay-popup-body.pay-popup-body-round.pay-popup-body-position-bottom{border-radius:16px 16px 0 0}.pay-popup-body.pay-popup-body-round.pay-popup-body-position-top{border-radius:0 0 16px 16px}.pay-popup-body.pay-popup-body-round.pay-popup-body-position-left{border-radius:0 16px 16px 0}.pay-popup-body.pay-popup-body-round.pay-popup-body-position-right{border-radius:16px 0 0 16px}.pay-popup-close-icon{position:absolute;z-index:1;cursor:pointer;padding:4px;font-size:18px;line-height:1;color:#999}.pay-popup-body.pay-popup-body-position-bottom .pay-popup-close-icon,.pay-popup-body.pay-popup-body-position-left .pay-popup-close-icon{top:8px;right:8px}.pay-popup-body.pay-popup-body-position-top .pay-popup-close-icon{bottom:8px;right:8px}.pay-popup-body.pay-popup-body-position-right .pay-popup-close-icon{top:8px;left:8px}.pay-popup-content{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}.pay-popup-body.pay-popup-body-with-close.pay-popup-body-position-bottom .pay-popup-content,.pay-popup-body.pay-popup-body-with-close.pay-popup-body-position-left .pay-popup-content{padding-top:40px}.pay-popup-body.pay-popup-body-with-close.pay-popup-body-position-right .pay-popup-content{padding-top:40px}.pay-popup-body.pay-popup-body-with-close.pay-popup-body-position-top .pay-popup-content{padding-bottom:40px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pay-alipay-qr-iframe{display:flex;flex-direction:column;align-items:center}.pay-alipay-qr-iframe__iframe{border:none;width:
|
|
1
|
+
.pay-alipay-qr-iframe{display:flex;flex-direction:column;align-items:center}.pay-alipay-qr-iframe__iframe{border:none;width:180px;height:180px;margin-top:10px;margin-bottom:8px}.pay-alipay-qr-iframe__tip{text-align:center;color:#333;font-size:14px;line-height:20px}
|