@depay/widgets 6.23.1 → 6.27.0

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 CHANGED
@@ -52,14 +52,14 @@ via WalletConnect:
52
52
 
53
53
  DePay Payments allows you to accept and perform crypto payments.
54
54
 
55
- ### Preparation
55
+ ### Preparation (DePay Payments)
56
56
 
57
57
  In order to receive decentralized payments on any blockchain you need to have your own wallet on that particular blockchain first:
58
58
 
59
59
  - [Create an Ethereum wallet](https://ethereum.org/en/wallets/)
60
60
  - [Create an BSC wallet](https://academy.binance.com/en/articles/how-to-get-started-with-binance-smart-chain-bsc)
61
61
 
62
- ### Quick start
62
+ ### Quick start (DePay Payments)
63
63
 
64
64
  ```
65
65
  <script src="https://integrate.depay.fi/widgets/v6.js"/>
@@ -76,7 +76,7 @@ DePayWidgets.Payment({
76
76
  });
77
77
  ```
78
78
 
79
- ### Configuration
79
+ ### Configuration (DePay Payments)
80
80
 
81
81
  You need to pass a configuration object to `DePayWidgets.Payment` which needs to at least contain the `accept` field:
82
82
 
@@ -111,7 +111,7 @@ DePayWidgets.Payment({
111
111
  });
112
112
  ```
113
113
 
114
- #### accept
114
+ #### accept (DePay Payments)
115
115
 
116
116
  `blockchain`
117
117
 
@@ -141,7 +141,7 @@ If you do not pass an amount, the user will be able to select an amount within t
141
141
 
142
142
  The address receiving the payment. Always double check that you've set the right address.
143
143
 
144
- #### amount
144
+ #### amount (DePay Payments)
145
145
 
146
146
  When you want to control how the amount selection behaves, pass the `amount` configuration object,
147
147
  alongside values for `start`, `min` and `step`.
@@ -152,7 +152,7 @@ alongside values for `start`, `min` and `step`.
152
152
 
153
153
  `step`: The number by wich to increment/decremten changes to the amount.
154
154
 
155
- #### receiver
155
+ #### receiver (DePay Payments)
156
156
 
157
157
  Payment receivers can either be wallet addresses, but also smart contracts.
158
158
 
@@ -178,7 +178,7 @@ DePayWidgets.Payment({
178
178
 
179
179
  Checkout [DePay Web3 Payments](https://github.com/DePayFi/depay-web3-payments#pay-into-smart-contracts) and [DePay Router Smart Contract](https://github.com/DePayFi/depay-evm-router) for more details.
180
180
 
181
- #### fee
181
+ #### fee (DePay Payments)
182
182
 
183
183
  You can configure a fee which will be applied to every payment with it's own dedicated fee receiver address.
184
184
 
@@ -198,7 +198,7 @@ DePayWidgets.Payment({
198
198
  });
199
199
  ```
200
200
 
201
- #### fromToken, fromAmount + toToken
201
+ #### fromToken, fromAmount + toToken (DePay Payments)
202
202
 
203
203
  In case where you want to configure payments based on the source token + amount, rather than target token and amount, you can pass `fromToken`, `fromAmount` and `toToken` to `accept`.
204
204
 
@@ -218,11 +218,38 @@ DePayWidgets.Payment({
218
218
  // This will open a payment widget to send 0.1 BUSD to the receiver, converting it to BNB along the way.
219
219
  ```
220
220
 
221
- #### track
221
+ #### preload (DePay Payments)
222
+
223
+ To optimize initialization speed of the Payment Widget you can preload payment routes as soon as you become aware of the users wallet address.
224
+
225
+ Typically right after the users conncets his wallet, or in cases the user has his wallet already connected you can preload immediatelly:
226
+
227
+ ```javascript
228
+ let address = '0x4aD374e0836c26BeC213a19D3e030F8b3A8AcDE4' // e.g. retrieve it right when you perform wallet connect
229
+
230
+ DePayWidgets.Payment.preload({
231
+ account: address,
232
+ accept: [
233
+ {
234
+ blockchain: 'ethereum',
235
+ amount: 10,
236
+ token: '0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb',
237
+ receiver: '0x4e260bB2b25EC6F3A59B478fCDe5eD5B8D783B02'
238
+ },{
239
+ blockchain: 'bsc',
240
+ amount: 10,
241
+ token: '0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb',
242
+ receiver: '0x4e260bB2b25EC6F3A59B478fCDe5eD5B8D783B02'
243
+ }
244
+ ]
245
+ });
246
+ ```
247
+
248
+ #### track (DePay Payments)
222
249
 
223
250
  `track`
224
251
 
225
- Allows to track payment confirmation via DePay to enable integration into web applications.
252
+ Allows to track payment confirmation/validation via DePay API to trigger callbacks into your existing systems:
226
253
 
227
254
  ```javascript
228
255
  DePayWidgets.Payment({
@@ -278,6 +305,28 @@ Payment tracking requests will be attempted up to 3 times by the widget and will
278
305
 
279
306
  A failed payment tracking will also call the [error callback](#error) with `{code: "TRACKING_FAILED"}`.
280
307
 
308
+ ##### Asynchronous Validation
309
+
310
+ For improving user experience, we recommend performing payment validation asynchronously as in certain situation in can take up to multiple minutes.
311
+
312
+ You can configure the widget to track/validate the payment asynchronously:
313
+
314
+ ```javascript
315
+ DePayWidgets.Payment({
316
+
317
+ track: {
318
+ endpoint: '/track',
319
+ async: true
320
+ }
321
+ })
322
+ ```
323
+
324
+ Which will release the user right after the payment has been confirmed on the user's machine.
325
+
326
+ It still tracks and validates the payment asynchronously and calls back your endpoints as soon as it has been validated.
327
+
328
+ This allows you to release the user immediately, showing him some confirmation and reconfirming his payment in an asynchronous step (like a notification or email).
329
+
281
330
  ##### Additional Polling
282
331
 
283
332
  In order to ensure a 100% coverage that users are released and forwarded within your payment flow, you will need to implement polling in addition to tracking.
@@ -294,7 +343,7 @@ In case you want to redirect the user to the next step in your system the poll e
294
343
  It is not enough to rely on setting `forward_to` initially with the tracking request, you will also need to respond with `forward_to` when implementing polling
295
344
  as the entire reason for polling is to cover cases where websockets fail and the initial `forward_to` can not be communicated to the client.
296
345
 
297
- #### connected
346
+ #### connected (DePay Payments)
298
347
 
299
348
  `connected`
300
349
 
@@ -312,7 +361,7 @@ DePayWidgets.Payment({
312
361
 
313
362
  ```
314
363
 
315
- #### closed
364
+ #### closed (DePay Payments)
316
365
 
317
366
  `closed`
318
367
 
@@ -328,7 +377,7 @@ DePayWidgets.Payment({
328
377
 
329
378
  ```
330
379
 
331
- #### sent
380
+ #### sent (DePay Payments)
332
381
 
333
382
  `sent`
334
383
 
@@ -345,7 +394,7 @@ DePayWidgets.Payment({
345
394
  })
346
395
  ```
347
396
 
348
- #### confirmed
397
+ #### confirmed (DePay Payments)
349
398
 
350
399
  `confirmed`
351
400
 
@@ -362,7 +411,7 @@ DePayWidgets.Payment({
362
411
  })
363
412
  ```
364
413
 
365
- #### failed
414
+ #### failed (DePay Payments)
366
415
 
367
416
  `failed`
368
417
 
@@ -380,7 +429,7 @@ DePayWidgets.Payment({
380
429
  })
381
430
  ```
382
431
 
383
- #### critical
432
+ #### critical (DePay Payments)
384
433
 
385
434
  `critical`
386
435
 
@@ -395,7 +444,7 @@ DePayWidgets.Payment({
395
444
  })
396
445
  ```
397
446
 
398
- #### error
447
+ #### error (DePay Payments)
399
448
 
400
449
  `error`
401
450
 
@@ -411,7 +460,7 @@ DePayWidgets.Payment({
411
460
  })
412
461
  ```
413
462
 
414
- #### providers
463
+ #### providers (DePay Payments)
415
464
 
416
465
  Allows to set providers to be used for making RPC calls to the individiual blockchains:
417
466
 
@@ -425,7 +474,7 @@ DePayWidgets.Payment({
425
474
  })
426
475
  ```
427
476
 
428
- #### currency
477
+ #### currency (DePay Payments)
429
478
 
430
479
  Allows you to enforce displayed local currency (instead of automatically detecting it):
431
480
 
@@ -439,7 +488,7 @@ DePayWidgets.Payment({
439
488
 
440
489
  ```
441
490
 
442
- #### whitelist
491
+ #### whitelist (DePay Payments)
443
492
 
444
493
  Allows only the configured tokens to be eligible as means of payment (from the sender):
445
494
 
@@ -463,7 +512,7 @@ DePayWidgets.Payment({
463
512
 
464
513
  ```
465
514
 
466
- #### blacklist
515
+ #### blacklist (DePay Payments)
467
516
 
468
517
  Allows to blacklist tokens so that they will not be suggested as means of payment (from the sender):
469
518
 
@@ -498,7 +547,7 @@ DePayWidgets.Payment({
498
547
  })
499
548
  ```
500
549
 
501
- #### event
550
+ #### event (DePay Payments)
502
551
 
503
552
  `event`
504
553
 
@@ -514,7 +563,19 @@ DePayWidgets.Payment({
514
563
  })
515
564
  ```
516
565
 
517
- #### style
566
+ #### container (DePay Payments)
567
+
568
+ `container`
569
+
570
+ Allows you to pass a container element that is supposed to contain the widget:
571
+
572
+ ```javascript
573
+ DePayWidgets.Payment({
574
+ container: document.getElementById('my-container')
575
+ })
576
+ ```
577
+
578
+ #### style (DePay Payments)
518
579
 
519
580
  `style`
520
581
 
@@ -541,7 +602,7 @@ DePayWidgets.Payment({
541
602
  })
542
603
  ```
543
604
 
544
- ##### colors
605
+ ##### colors (DePay Payments)
545
606
 
546
607
  `colors`
547
608
 
@@ -561,7 +622,7 @@ DePayWidgets.Payment({
561
622
  })
562
623
  ```
563
624
 
564
- ##### fontFamily
625
+ ##### fontFamily (DePay Payments)
565
626
 
566
627
  `fontFamily`
567
628
 
@@ -576,7 +637,7 @@ DePayWidgets.Payment({
576
637
  })
577
638
  ```
578
639
 
579
- ##### css
640
+ ##### css (DePay Payments)
580
641
 
581
642
  `css`
582
643
 
@@ -597,7 +658,7 @@ DePayWidgets.Payment({
597
658
  })
598
659
  ```
599
660
 
600
- #### unmount
661
+ #### unmount (DePay Payments)
601
662
 
602
663
  `unmount`
603
664
 
@@ -609,7 +670,7 @@ let { unmount } = await DePayWidgets.Payment({})
609
670
  unmount()
610
671
  ```
611
672
 
612
- #### recover
673
+ #### recover (DePay Payments)
613
674
 
614
675
  `recover`
615
676
 
@@ -632,7 +693,7 @@ A recovered payment still results in a confirmed or failed payment, and also cal
632
693
 
633
694
  ```
634
695
 
635
- #### closable
696
+ #### closable (DePay Payments)
636
697
 
637
698
  `closable`
638
699
 
@@ -645,7 +706,7 @@ DePayWidgets.Payment({
645
706
 
646
707
  ```
647
708
 
648
- #### integration
709
+ #### integration (DePay Payments)
649
710
 
650
711
  `integration`
651
712
 
@@ -661,14 +722,14 @@ DePayWidgets.Payment({
661
722
 
662
723
  DePay Sales allows you to sell tokens directly from your website or dApp with automatic any-to-any payment conversion (so people can use any token when buying your token directly off your website or dApp).
663
724
 
664
- ### Preparation
725
+ ### Preparation (DePay Sales)
665
726
 
666
727
  In order to sell tokens in a decentralized way, that token needs to have a liquidity pool on a decentralized exchange:
667
728
 
668
729
  - [Create Uniswap v2 Liquidity Pool](https://app.uniswap.org/#/add/v2/ETH)
669
730
  - [Create Pancakeswap Liquidity Pool](https://pancakeswap.finance/add)
670
731
 
671
- ### Quick start
732
+ ### Quick start (DePay Sales)
672
733
 
673
734
  ```
674
735
  <script src="https://integrate.depay.fi/widgets/v6.js"/>
@@ -682,7 +743,7 @@ DePayWidgets.Sale({
682
743
  });
683
744
  ```
684
745
 
685
- ### Configuration
746
+ ### Configuration (DePay Sales)
686
747
 
687
748
  You need to pass a configuration object to `DePayWidgets.Sale` which needs to at least contain the `sell` field:
688
749
 
@@ -705,7 +766,7 @@ DePayWidgets.Sale({
705
766
  });
706
767
  ```
707
768
 
708
- #### sell
769
+ #### sell (DePay Sales)
709
770
 
710
771
  `"blockchain": "token"`
711
772
 
@@ -722,7 +783,7 @@ The address of the token you want to sell.
722
783
 
723
784
  Use our [sale configurator](https://depay.fi/documentation/sales#sale-configurator) in order to simplify configuring this.
724
785
 
725
- #### amount
786
+ #### amount (DePay Sales)
726
787
 
727
788
  When you want to control how the amount selection behaves, pass the `amount` configuration object,
728
789
  alongside values for `start`, `min` and `step`.
@@ -744,7 +805,7 @@ DePayWidgets.Sale({
744
805
  });
745
806
  ```
746
807
 
747
- #### connected
808
+ #### connected (DePay Sales)
748
809
 
749
810
  `connected`
750
811
 
@@ -761,7 +822,7 @@ DePayWidgets.Sale({
761
822
  });
762
823
  ```
763
824
 
764
- #### closed
825
+ #### closed (DePay Sales)
765
826
 
766
827
  `closed`
767
828
 
@@ -776,7 +837,7 @@ DePayWidgets.Sale({
776
837
  });
777
838
  ```
778
839
 
779
- #### sent
840
+ #### sent (DePay Sales)
780
841
 
781
842
  `sent`
782
843
 
@@ -793,7 +854,7 @@ DePayWidgets.Sale({
793
854
  });
794
855
  ```
795
856
 
796
- #### confirmed
857
+ #### confirmed (DePay Sales)
797
858
 
798
859
  `confirmed`
799
860
 
@@ -810,7 +871,7 @@ DePayWidgets.Sale({
810
871
  });
811
872
  ```
812
873
 
813
- #### failed
874
+ #### failed (DePay Sales)
814
875
 
815
876
  `failed`
816
877
 
@@ -828,7 +889,7 @@ DePayWidgets.Sale({
828
889
  });
829
890
  ```
830
891
 
831
- #### critical
892
+ #### critical (DePay Sales)
832
893
 
833
894
  `critical`
834
895
 
@@ -843,7 +904,7 @@ DePayWidgets.Sale({
843
904
  });
844
905
  ```
845
906
 
846
- #### error
907
+ #### error (DePay Sales)
847
908
 
848
909
  `error`
849
910
 
@@ -859,7 +920,7 @@ DePayWidgets.Sale({
859
920
  });
860
921
  ```
861
922
 
862
- #### providers
923
+ #### providers (DePay Sales)
863
924
 
864
925
  Allows to set providers to be used for making RPC calls to the individiual blockchains:
865
926
 
@@ -873,7 +934,7 @@ DePayWidgets.Sale({
873
934
  });
874
935
  ```
875
936
 
876
- #### currency
937
+ #### currency (DePay Sales)
877
938
 
878
939
  Allows you to enforce displayed local currency (instead of automatically detecting it):
879
940
 
@@ -885,7 +946,7 @@ DePayWidgets.Sale({
885
946
  });
886
947
  ```
887
948
 
888
- #### blacklist
949
+ #### blacklist (DePay Sales)
889
950
 
890
951
  Allows to blacklist tokens so that they will not be suggested as means of payment (from the sender):
891
952
 
@@ -920,7 +981,7 @@ DePayWidgets.Sale({
920
981
  });
921
982
  ```
922
983
 
923
- #### tokenImage
984
+ #### tokenImage (DePay Sales)
924
985
 
925
986
  `tokenImage`
926
987
 
@@ -934,7 +995,7 @@ DePayWidgets.Sale({
934
995
  });
935
996
  ```
936
997
 
937
- #### style
998
+ #### style (DePay Sales)
938
999
 
939
1000
  `style`
940
1001
 
@@ -962,7 +1023,7 @@ DePayWidgets.Sale({
962
1023
  });
963
1024
  ```
964
1025
 
965
- ##### colors
1026
+ ##### colors (DePay Sales)
966
1027
 
967
1028
  `colors`
968
1029
 
@@ -982,7 +1043,7 @@ DePayWidgets.Sale({
982
1043
  });
983
1044
  ```
984
1045
 
985
- ##### fontFamily
1046
+ ##### fontFamily (DePay Sales)
986
1047
 
987
1048
  `fontFamily`
988
1049
 
@@ -997,7 +1058,7 @@ DePayWidgets.Sale({
997
1058
  });
998
1059
  ```
999
1060
 
1000
- ##### css
1061
+ ##### css (DePay Sales)
1001
1062
 
1002
1063
  `css`
1003
1064
 
@@ -1018,7 +1079,7 @@ DePayWidgets.Sale({
1018
1079
  });
1019
1080
  ```
1020
1081
 
1021
- #### unmount
1082
+ #### unmount (DePay Sales)
1022
1083
 
1023
1084
  `unmount`
1024
1085
 
@@ -1030,7 +1091,7 @@ let { unmount } = await DePayWidgets.Sale({})
1030
1091
  unmount()
1031
1092
  ```
1032
1093
 
1033
- #### closable
1094
+ #### closable (DePay Sales)
1034
1095
 
1035
1096
  `closable`
1036
1097
 
@@ -1043,7 +1104,7 @@ DePayWidgets.Sale({
1043
1104
 
1044
1105
  ```
1045
1106
 
1046
- #### integration
1107
+ #### integration (DePay Sales)
1047
1108
 
1048
1109
  `integration`
1049
1110
 
@@ -1059,14 +1120,14 @@ DePayWidgets.Sale({
1059
1120
 
1060
1121
  DePay Donations allows you to accept donation payments made with thousands of different crypto currencies.
1061
1122
 
1062
- ### Preparation
1123
+ ### Preparation (DePay Donations)
1063
1124
 
1064
1125
  In order to receive decentralized donation payments on any blockchain you need to have your own wallet on that particular blockchain first:
1065
1126
 
1066
1127
  - [Create an Ethereum wallet](https://ethereum.org/en/wallets/)
1067
1128
  - [Create an BSC wallet](https://academy.binance.com/en/articles/how-to-get-started-with-binance-smart-chain-bsc)
1068
1129
 
1069
- ### Quick start
1130
+ ### Quick start (DePay Donations)
1070
1131
 
1071
1132
  ```
1072
1133
  <script src="https://integrate.depay.fi/widgets/v6.js"/>
@@ -1082,7 +1143,7 @@ DePayWidgets.Donation({
1082
1143
  });
1083
1144
  ```
1084
1145
 
1085
- ### Configuration
1146
+ ### Configuration (DePay Donations)
1086
1147
 
1087
1148
  You need to pass a configuration object to `DePayWidgets.Donation` which needs to at least contain the `accept` field:
1088
1149
 
@@ -1112,7 +1173,7 @@ DePayWidgets.Donation({
1112
1173
  });
1113
1174
  ```
1114
1175
 
1115
- #### accept
1176
+ #### accept (DePay Donations)
1116
1177
 
1117
1178
  `blockchain`
1118
1179
 
@@ -1133,7 +1194,7 @@ Use our [donation configurator](https://depay.fi/documentation/donations#donatio
1133
1194
 
1134
1195
  The address receiving the donation. Always double check that you've set the right address.
1135
1196
 
1136
- #### amount
1197
+ #### amount (DePay Donations)
1137
1198
 
1138
1199
  When you want to control how the amount selection behaves, pass the `amount` configuration object,
1139
1200
  alongside values for `start`, `min` and `step`.
@@ -1144,7 +1205,7 @@ alongside values for `start`, `min` and `step`.
1144
1205
 
1145
1206
  `step`: The number by wich to increment/decremten changes to the amount.
1146
1207
 
1147
- #### connected
1208
+ #### connected (DePay Donations)
1148
1209
 
1149
1210
  `connected`
1150
1211
 
@@ -1161,7 +1222,7 @@ DePayWidgets.Donation({
1161
1222
  });
1162
1223
  ```
1163
1224
 
1164
- #### closed
1225
+ #### closed (DePay Donations)
1165
1226
 
1166
1227
  `closed`
1167
1228
 
@@ -1176,7 +1237,7 @@ DePayWidgets.Donation({
1176
1237
  });
1177
1238
  ```
1178
1239
 
1179
- #### sent
1240
+ #### sent (DePay Donations)
1180
1241
 
1181
1242
  `sent`
1182
1243
 
@@ -1193,7 +1254,7 @@ DePayWidgets.Donation({
1193
1254
  });
1194
1255
  ```
1195
1256
 
1196
- #### confirmed
1257
+ #### confirmed (DePay Donations)
1197
1258
 
1198
1259
  `confirmed`
1199
1260
 
@@ -1210,7 +1271,7 @@ DePayWidgets.Donation({
1210
1271
  });
1211
1272
  ```
1212
1273
 
1213
- #### failed
1274
+ #### failed (DePay Donations)
1214
1275
 
1215
1276
  `failed`
1216
1277
 
@@ -1228,7 +1289,7 @@ DePayWidgets.Donation({
1228
1289
  });
1229
1290
  ```
1230
1291
 
1231
- #### critical
1292
+ #### critical (DePay Donations)
1232
1293
 
1233
1294
  `critical`
1234
1295
 
@@ -1243,7 +1304,7 @@ DePayWidgets.Donation({
1243
1304
  });
1244
1305
  ```
1245
1306
 
1246
- #### error
1307
+ #### error (DePay Donations)
1247
1308
 
1248
1309
  `error`
1249
1310
 
@@ -1259,7 +1320,7 @@ DePayWidgets.Donation({
1259
1320
  });
1260
1321
  ```
1261
1322
 
1262
- #### providers
1323
+ #### providers (DePay Donations)
1263
1324
 
1264
1325
  Allows to set providers to be used for making RPC calls to the individiual blockchains:
1265
1326
 
@@ -1273,7 +1334,7 @@ DePayWidgets.Donation({
1273
1334
  });
1274
1335
  ```
1275
1336
 
1276
- #### currency
1337
+ #### currency (DePay Donations)
1277
1338
 
1278
1339
  Allows you to enforce displayed local currency (instead of automatically detecting it):
1279
1340
 
@@ -1285,7 +1346,7 @@ DePayWidgets.Donation({
1285
1346
  });
1286
1347
  ```
1287
1348
 
1288
- #### blacklist
1349
+ #### blacklist (DePay Donations)
1289
1350
 
1290
1351
  Allows to blacklist tokens so that they will not be suggested as means of payment (from the sender):
1291
1352
 
@@ -1320,7 +1381,19 @@ DePayWidgets.Donation({
1320
1381
  })
1321
1382
  ```
1322
1383
 
1323
- #### style
1384
+ #### container (DePay Donations)
1385
+
1386
+ `container`
1387
+
1388
+ Allows you to pass a container element that is supposed to contain the widget:
1389
+
1390
+ ```javascript
1391
+ DePayWidgets.Dontaion({
1392
+ container: document.getElementById('my-container')
1393
+ })
1394
+ ```
1395
+
1396
+ #### style (DePay Donations)
1324
1397
 
1325
1398
  `style`
1326
1399
 
@@ -1348,7 +1421,7 @@ DePayWidgets.Donation({
1348
1421
  });
1349
1422
  ```
1350
1423
 
1351
- ##### colors
1424
+ ##### colors (DePay Donations)
1352
1425
 
1353
1426
  `colors`
1354
1427
 
@@ -1368,7 +1441,7 @@ DePayWidgets.Donation({
1368
1441
  });
1369
1442
  ```
1370
1443
 
1371
- ##### fontFamily
1444
+ ##### fontFamily (DePay Donations)
1372
1445
 
1373
1446
  `fontFamily`
1374
1447
 
@@ -1383,7 +1456,7 @@ DePayWidgets.Donation({
1383
1456
  });
1384
1457
  ```
1385
1458
 
1386
- ##### css
1459
+ ##### css (DePay Donations)
1387
1460
 
1388
1461
  `css`
1389
1462
 
@@ -1404,7 +1477,7 @@ DePayWidgets.Donation({
1404
1477
  });
1405
1478
  ```
1406
1479
 
1407
- #### unmount
1480
+ #### unmount (DePay Donations)
1408
1481
 
1409
1482
  `unmount`
1410
1483
 
@@ -1416,7 +1489,7 @@ let { unmount } = await DePayWidgets.Donation({})
1416
1489
  unmount()
1417
1490
  ```
1418
1491
 
1419
- #### closable
1492
+ #### closable (DePay Donations)
1420
1493
 
1421
1494
  `closable`
1422
1495
 
@@ -1429,7 +1502,7 @@ DePayWidgets.Donation({
1429
1502
 
1430
1503
  ```
1431
1504
 
1432
- #### integration
1505
+ #### integration (DePay Donations)
1433
1506
 
1434
1507
  `integration`
1435
1508
 
@@ -1441,7 +1514,7 @@ DePayWidgets.Donation({
1441
1514
  })
1442
1515
  ```
1443
1516
 
1444
- ## DePay Connect
1517
+ ## DePay Connect (DePay Donations)
1445
1518
 
1446
1519
  DePay Connect allows you to have your users connect their crypto wallet to your dApp or website.
1447
1520
 
@@ -1457,7 +1530,7 @@ let { account, accounts, wallet } = await DePayWidgets.Connect()
1457
1530
 
1458
1531
  See [depay-web3-wallets](https://github.com/depayfi/depay-web3-wallets) for more details about the returned `wallet`.
1459
1532
 
1460
- ### Rejections
1533
+ ### Rejections (DePay Donations)
1461
1534
 
1462
1535
  1. Rejects if user just closes the dialog without connecting any wallet:
1463
1536
 
@@ -1534,7 +1607,7 @@ DePayWidgets.Login({ message, recover: ({ message, signature })=>{
1534
1607
  })
1535
1608
  ```
1536
1609
 
1537
- ### Rejections
1610
+ ### Rejections (DePay Login)
1538
1611
 
1539
1612
  1. Rejects if user just closes the dialog without connecting any wallet:
1540
1613