Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add ACH payment method #3616

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Prev Previous commit
fix tests
  • Loading branch information
suejung-sentry committed Jan 14, 2025
commit 2dc8211fc70e59b9885452ace2dd7edf76e30b09
4 changes: 3 additions & 1 deletion src/services/account/useUpdatePaymentMethod.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { useElements, useStripe } from '@stripe/react-stripe-js'
import { useMutation, useQueryClient } from '@tanstack/react-query'

import config from 'config'

import Api from 'shared/api'

import { useCreateStripeSetupIntent } from './useCreateStripeSetupIntent'
@@ -59,7 +61,7 @@ export function useUpdatePaymentMethod({
},
},
// eslint-disable-next-line camelcase
return_url: `/plan/${provider}/${owner}`,
return_url: `${config.BASE_URL}/plan/${provider}/${owner}`,
},
})
.then((result) => {
Loading
Oops, something went wrong.