We are using Kill Bill with Laravel and the Stripe plugin. The steps I took are as follows:
Canceled the existing subscription and resubscribed using a new card (the card is dynamically generated using a Stripe token, in the same way as we handled it during card expiry) .
Retrieved the existing Kill Bill account ID, added a new payment method via the API, and set it as the default.
These are the same steps that were followed when a new account was initially created in Kill Bill—at that time, the subscription was created and the payment was processed automatically via Stripe.
However, during this second attempt, although the invoice was successfully generated and the new payment method was added and set as default in Kill Bill, no changes appeared in the Stripe dashboard — neither in the transaction history nor in the payment methods. When checking the Stripe dashboard, only the error section showed the following issue:
invalid_request_error – A source must be attached to a customer to be used as a payment_method.
Here is the payment attempt payload: