Hopefully, someone here can help me out. I'm currently integrating Laravel Cashier and I am wondering if there is a function that allows me to call the "update" endpoint (see https://stripe.com/docs/api/cards/update) for cards and if not if there is a way to extend Cashier and add our own updatePaymentMethod($paymentMethod, $options) function.
@rauchenwaldc You need to use one of the Stripe Web Elements UI components to obtain a payment method ID for your user, and then update the customer with that payment method ID. Users should not be inputting card details directly on your website any where.
@martinbean maybe I didn't phrase my question properly... your reply has IMHO nothing to do with the question, but thanks for taking the time to write one.
Just to be clear, of course, I'm using the embedded forms. Those then provide a unique ID for each card, that can also be retrieved by getting all payment methods that are attached to a specific Stripe ID.
My question is if Cashier offers a function to update the card using the endpoint described at https://stripe.com/docs/api/cards/update to allow users to update, for example, the expiry date (when they receive a new card that often has the same card number but a new expiry date).
And if Cashier doesn't offer that function yet, how I could extend Cashier and add that function? What's the best practice here?