-
The provided PaymentMethod was previously used with a PaymentInent without Customer attachment, shared with a connected account without Customer attachment, or was detached from a Customer. It may not be used again. To use a PaymentMethod multiple times, you must attach it to a Customer first. In this case, we need to delete the payment method and add a new payment method.
-
422 error code: Error 422 is an HTTP code that tells you that the server can't process your request, although it understands it. The full name of the error code is 422 “unprocessable entity.” In a nutshell, the error means that you're making a request the server understands, but it can't process it. This could happen due to two reasons:
- If the wrong stripe account ID was entered. Please make sure you do not copy the account message from your Stripe account developer mode. Sample error message "The provided key 'sk_live_51*********************************************************************************************6jSi' does not have access to account 'acct_1**********' (or that account does not exist). Application access may have been revoked."
-
If a stripe connection is partially set up. For example, the Stripe account ID is entered into Xoda but not authorised to connect to Xoda’s stripe account.
-
After this step, if still getting 422 error, then it could be due to the payment method is not supported in the customer’s Stripe merchant account. Example - https://dashboard.stripe.com/acct_1Mqnb0GBtOVChauQ/logs/req_h3LCHQ8KhwTVh6?t=1696320857
-
The payment method type "au_becs_debit" is invalid. See Create a SetupIntent | Stripe API Reference for the full list of supported payment method types. Please go to https://dashboard.stripe.com/account/payments/settings in your (referring to the gym owner here) Stripe account and ensure you enable all the required payment types. Sample Xoda error message is shown below:
- Stripe account missing Australian Bank Direct Debit (triggering 422 error code).
- Stripe account with Australian Bank Direct Debit (working).
- Card payments are stuck in processing and shown as Incomplete in stripe account. This is due to Stripe requiring 3D Secure authorisation from the payer for certain cards such as AMEX cards. When the first payment is made, the payer needs to authorise the payments on their phone. If they did not do that, the staff can retry the failed payment and coordinate with the member to authorise the payment attempts.