#.abishek
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thank you. looking through it
is there a webhook that can notify if a particular payment method is expiring or if the payment method used has failed?
Nothing for the former, but you'd recieve payment_intent.payment_failed for any payment failures
so, there is no way I can notify the customer if a card is expiring?
Not with Payment Method objects no
how does stripe do this. I was hoping to use a branded email for this notification instead of the one Stripe sends
Internal logic
ok, does the payment_intent.payment_failed triggered even when using Stripe Checkout?
Yes, but you should ignore the ones generated by Checkout really
can you clarify what you mean by this?
Well during a Checkout payment the customer will be on-session when those events fire. Assume they have a paymenbt decline, the decline message will show on the payment page
It'd be weird if you had logic that sent them a failure email for example in that scenario
ok, makes sense, will the above webhook for payment_failed be triggered if an ongoing subscriptions payment fails?
ok, great. one last question, is there a way to know if a subscriptions payment method/card was updated?
Updated by the customer?
Depends on how you're facilitating that I guess
There'd likely be payment_method.attached events
Should be easy enough to test!
so, can this not be done at the subscription level? assuming if the customer has 2 separate subscriptions with separate payment methods.
Sure, yep. You'd set default_payment_method on the Sub
And customer.subscription.updated would fire
ah ok
Again, I'd recommend trying this all out end-to-end
ko, sounds good
As I said, depends on how you're integrating as to what APIs/events you'd get
can radar be used to identify early dispute frauds?
Hi! I'm taking over from my colleague. Please, give me a moment to catch up.
i have seen some people create subscriptions on the site just to raise a dispute and win them.
Is this an unrelated question?
this is the question
just trying to figure out how to prevent disputes early
I don't know much about Radar, sorry. I would suggest reaching out to Stripe Support with this type of questions: https://support.stripe.com/?contact=true
ok
I was going through the docs to pause a subscription (https://stripe.com/docs/billing/subscriptions/pause), can you advice how to resume/unpause the subscription
nvm, its on the page, looks like it was recently updated
when unpausing, does the subscription start immediately or will it charge payment on the renewal date? anyway to unpause with the charge/renewal date immediately?
It charge on the renewal date.
anyway to resume with the charge date immediately?
I don't understand what you mean by this.
so, if some one unpauses in the middle of the month after pausing for 15 days, I want to charge the customer immediately for the subscription when they unpause
i don't want to wait for another 15 days to charge the customer at the previous renewal date
does it make sense?
Then you would need to reset the billing_cycle_anchor
ok, can I do that on the same call as https://stripe.com/docs/billing/subscriptions/pause#unpausing
Yes
ok