Once the payment is done, we get a loading spinner on the paypal component, however, it then turns back to the black "payment by card" button for a few seconds before the "onSuccess" is called. This can be confusing for users as they will think it has finished loading, but it is in fact still loading (I do a redirect on Success and it isn't immediate because of this). How can I handle it in a user-friendly way?
Once the payment is done, we get a loading spinner on the paypal component, however, it then turns back to the black "payment by card" button for a few seconds before the "onSuccess" is called. This can be confusing for users as they will think it has finished loading, but it is in fact still loading (I do a redirect on Success and it isn't immediate because of this). How can I handle it in a user-friendly way?