feat: add Stripe card form (#43433)
* eat: add Stripe card form * Apply suggestions from code review Co-authored-by: Shaun Hamilton <shauhami020@gmail.com> * feat: adjust payload and error handling * feat: readjust error handling * Apply suggestions from code review Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Co-authored-by: Shaun Hamilton <shauhami020@gmail.com> * feat: refactors from comments * feat: prevent submition during processing * feat: redefine isSubmitting Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> * fix: show the proper paypal button on donate page * fix: handle errors from stripe Co-authored-by: Shaun Hamilton <shauhami020@gmail.com> Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
This commit is contained in:
@@ -186,6 +186,10 @@ export function addDonation(body: Donation): Promise<void> {
|
||||
export function postChargeStripe(body: Donation): Promise<void> {
|
||||
return post('/donate/charge-stripe', body);
|
||||
}
|
||||
|
||||
export function postChargeStripeCard(body: Donation): Promise<void> {
|
||||
return post('/donate/charge-stripe-card', body);
|
||||
}
|
||||
interface Report {
|
||||
username: string;
|
||||
reportDescription: string;
|
||||
|
Reference in New Issue
Block a user