@volr/react 0.1.98 → 0.1.100

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 CHANGED
@@ -18710,9 +18710,8 @@ function useVolrLogin() {
18710
18710
  projectId: u.projectId,
18711
18711
  projectName: u.projectName,
18712
18712
  email: u.email,
18713
- accountId: u.accountId ?? void 0,
18713
+ authWallet: u.authWallet ?? void 0,
18714
18714
  evmAddress: u.evmAddress,
18715
- authWalletAddress: u.authWalletAddress ?? void 0,
18716
18715
  keyStorageType: u.keyStorageType ?? void 0,
18717
18716
  signerType: u.signerType ?? void 0,
18718
18717
  walletConnector: u.walletConnector ?? void 0,
@@ -18928,7 +18927,7 @@ function useVolrAuthCallback(options = {}) {
18928
18927
  projectId: u.projectId,
18929
18928
  projectName: u.projectName,
18930
18929
  email: u.email,
18931
- accountId: u.accountId ?? void 0,
18930
+ authWallet: u.authWallet ?? void 0,
18932
18931
  evmAddress: u.evmAddress,
18933
18932
  keyStorageType: u.keyStorageType ?? void 0,
18934
18933
  signerType: u.signerType ?? void 0,
@@ -19681,6 +19680,12 @@ function useVolrPaymentApi() {
19681
19680
  },
19682
19681
  [client]
19683
19682
  );
19683
+ const failPendingPayment = react.useCallback(
19684
+ async (paymentId) => {
19685
+ return client.post(`/payments/${paymentId}/fail`, {});
19686
+ },
19687
+ [client]
19688
+ );
19684
19689
  const pollPaymentStatus = react.useCallback(
19685
19690
  async (paymentId) => {
19686
19691
  let attempts = 0;
@@ -19702,6 +19707,7 @@ function useVolrPaymentApi() {
19702
19707
  getPaymentHistory,
19703
19708
  updatePaymentToProcessing,
19704
19709
  cancelPayment,
19710
+ failPendingPayment,
19705
19711
  pollPaymentStatus,
19706
19712
  isLoading
19707
19713
  };