first commit
Some checks failed
Build / run (push) Has been cancelled

This commit is contained in:
maher
2025-10-29 11:42:25 +01:00
commit 703f50a09d
4595 changed files with 385164 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
import {Trans} from '../../../i18n/trans';
import {Button} from '../../../ui/buttons/button';
import {Link} from 'react-router-dom';
import {StripeElementsForm} from '../../checkout/stripe/stripe-elements-form';
import {useSettings} from '../../../core/settings/use-settings';
const previousUrl = '/billing';
export function ChangePaymentMethodPage() {
const {base_url} = useSettings();
return (
<div className="max-w-[464px]">
<StripeElementsForm
type="setupIntent"
submitLabel={<Trans message="Change" />}
returnUrl={`${base_url}/billing/change-payment-method/done`}
/>
<Button
variant="outline"
className="w-full mt-16"
size="md"
to={previousUrl}
elementType={Link}
type="button"
>
<Trans message="Go back" />
</Button>
</div>
);
}