@depay/widgets 7.3.1 → 7.5.1

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
@@ -418,6 +418,24 @@ DePayWidgets.Payment({
418
418
 
419
419
  ```
420
420
 
421
+ #### before (DePay Payments)
422
+
423
+ `before`
424
+
425
+ A function that will be called before the payment is handed over to the wallet.
426
+
427
+ Allows you to stop the payment if this methods returns false.
428
+
429
+ ```javascript
430
+ DePayWidgets.Payment({
431
+
432
+ before: (payment)=> {
433
+ alert('Something went wrong')
434
+ return false // stops payment
435
+ }
436
+ })
437
+ ```
438
+
421
439
  #### sent (DePay Payments)
422
440
 
423
441
  `sent`
@@ -1732,7 +1750,7 @@ test:cypress:debug
1732
1750
  Test and debug single cypress file:
1733
1751
 
1734
1752
  ```
1735
- yarn test:cypress:debug --spec "cypress/e2e/Payment/replaced-transaction.js"
1753
+ yarn test:cypress:debug --spec "cypress/e2e/Payment/amount.js"
1736
1754
  ```
1737
1755
 
1738
1756
  ### Release new versions to npm