#keith-payment-offsession
1 messages · Page 1 of 1 (latest)
Can you share an example payment intent ID here?
You're trying to save a payment method for future use during payment?
Ye, so I essentially take a MOTO payment payment and want to set that payment method for the customers existing subscription, I was just wondering what to set to do this correctly as I don't see that off_session message in the timeline the same way I do when creating a subscription.
Here's a test payment intent: pi_3NO3clAjtNFaRAYo0hNiQvLd
Oh, this is a payment intent from an invoice, you can't manipulate this directly like you're asking
You can do this when creating the payment intents directly, yourself: https://stripe.com/docs/payments/save-during-payment?platform=web#create-the-paymentintent
Ah okay, I need to use invoices
For VAT
Is there anyway I can achieve this? I just need to make sure the payment method can be used for future off_session payments
You likely want to use setup intents first then, to save the payment method, then you can use it both for future invoices and other payments:
https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements
That's what I was trying
but it doesn't seem to be working
I was paying the invoice with the setup_intent->payment_method
Can you share exactly what wasnt working? Example erroring requests ?
It's all going through fine
I just don't see this message
E.g that one is a subscription pi_3NO3YrAjtNFaRAYo0VP2DmpJ
Right, that payment is for the first invoice of a new subscription, it's meant to do the payment method setup so it can be used for the future invoices of that subscription
I see, so I'd essentially want to replicate that. So in my scenario say for example we collected another customer card for that subscription via an invoice. I'd want to set up that payment method for future off_session payments
As in a one time invoice and then later re-use that payment method?
Yes, we sometimes take payments over the phone (MOTO) and may want to update the customers existing subscription with that payment method collected to pay that invoice
Does that make sense?
Yes it does. If you are already saving these payment methods you can set them as the default payment method on either the customer or the subscription https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
https://stripe.com/docs/api/subscriptions/update#update_subscription-default_payment_method
Once it is set as one of those, it will be used for recurring payments on that customer or subscription
Ah okay, I am doing that and everything is fine
I was just confused why I wasn't seeing that off_session message on the payment intent