@hamzazaman9
It seems you're encountering two separate issues here.
For the first error related to Stripe, it indicates that the payment method you're trying to use has been detached from a customer or was used without being attached to a customer. To resolve this, you'll need to ensure that the payment method is properly attached to a customer object in Stripe before it can be used again. This typically involves using the Stripe API to create a customer object and attaching the payment method to it.
For the second error regarding the missing CSRF token, this is usually a security measure implemented in web applications to prevent cross-site request forgery. If you're using a payment session link, ensure that you're submitting the form with a valid CSRF token which should be provided by the payment processing page.
Since these issues are quite specific and involve potentially sensitive operations, I would recommend reaching out to the support team of your payment processor or the technical team that handles your billing system. They should be able to guide you through the process of resolving these errors.
If you need further assistance or have any other questions, feel free to ask.