@depay/widgets 8.0.4 → 8.0.6
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 +2 -24
- package/dist/esm/index.bundle.js +24 -16
- package/dist/umd/index.bundle.js +24 -16
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -366,29 +366,7 @@ Make sure you read the [Payment Tracking API](https://depay.com/documentation/ap
|
|
|
366
366
|
|
|
367
367
|
Payment tracking requests will be attempted indefinitely. After 2 minutes a warning dialog will be presented to users asking them to ensure an internet connection so that the payment tracking can be performed.
|
|
368
368
|
|
|
369
|
-
#####
|
|
370
|
-
|
|
371
|
-
For improving user experience, we recommend performing payment validation asynchronously as in certain situation in can take up to multiple minutes.
|
|
372
|
-
|
|
373
|
-
You can configure the widget to track/validate the payment asynchronously:
|
|
374
|
-
|
|
375
|
-
```javascript
|
|
376
|
-
DePayWidgets.Payment({
|
|
377
|
-
|
|
378
|
-
track: {
|
|
379
|
-
endpoint: '/track',
|
|
380
|
-
async: true
|
|
381
|
-
}
|
|
382
|
-
})
|
|
383
|
-
```
|
|
384
|
-
|
|
385
|
-
Which will release the user right after the payment has been confirmed on the user's machine.
|
|
386
|
-
|
|
387
|
-
It still tracks and validates the payment asynchronously and calls back your endpoints as soon as it has been validated.
|
|
388
|
-
|
|
389
|
-
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).
|
|
390
|
-
|
|
391
|
-
##### Additional Polling
|
|
369
|
+
##### Polling
|
|
392
370
|
|
|
393
371
|
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.
|
|
394
372
|
|
|
@@ -499,7 +477,7 @@ DePayWidgets.Payment({
|
|
|
499
477
|
|
|
500
478
|
A function that will be called once the payment has been sent to the network (but still needs to be mined/confirmed).
|
|
501
479
|
|
|
502
|
-
The widget will call this function with a transaction as single argument (see: [depay-web3-wallets](https://github.com/depayfi/depay-web3-wallets#transaction) for more details)
|
|
480
|
+
The widget will call this function with a transaction as single argument (see: [depay-web3-wallets](https://github.com/depayfi/depay-web3-wallets#transaction) for more details about the structure)
|
|
503
481
|
|
|
504
482
|
```javascript
|
|
505
483
|
DePayWidgets.Payment({
|