@volr/react 0.1.97 → 0.1.99
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/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -19681,6 +19681,12 @@ function useVolrPaymentApi() {
|
|
|
19681
19681
|
},
|
|
19682
19682
|
[client]
|
|
19683
19683
|
);
|
|
19684
|
+
const failPendingPayment = react.useCallback(
|
|
19685
|
+
async (paymentId) => {
|
|
19686
|
+
return client.post(`/payments/${paymentId}/fail`, {});
|
|
19687
|
+
},
|
|
19688
|
+
[client]
|
|
19689
|
+
);
|
|
19684
19690
|
const pollPaymentStatus = react.useCallback(
|
|
19685
19691
|
async (paymentId) => {
|
|
19686
19692
|
let attempts = 0;
|
|
@@ -19702,6 +19708,7 @@ function useVolrPaymentApi() {
|
|
|
19702
19708
|
getPaymentHistory,
|
|
19703
19709
|
updatePaymentToProcessing,
|
|
19704
19710
|
cancelPayment,
|
|
19711
|
+
failPendingPayment,
|
|
19705
19712
|
pollPaymentStatus,
|
|
19706
19713
|
isLoading
|
|
19707
19714
|
};
|