#rp
1 messages ยท Page 1 of 1 (latest)
Hello what undocumented field are you using here? Checking in to whether there is a parameter for this
I believe it was phases.payment_method_settings.payment_method_types
๐ stepping in here
hey! thanks ๐
Hmmm I think this is a Dashboard-only parameter
Hmm interesting I used to see an option in the dashboard to select allowed payment method types, but its no longer there
Are you sure you saw it related to a Subscription Schedule
You can specify for the Subscription itself: https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_settings-payment_method_types
But don't think you can specify based on Phase
I'm not overly familiar with the Dashboard since we focus on the API here
Got it, yeah the dashboard used to give the option to set it even when creating phases, but I didn't see that option listed for the API
It would be useful to avoid having to do 1. create subscription with the payment method types setting 2. create the schedule from the subscription 3. set the rest of the schedule settings
Ah yeah the Dashboard just does all those steps in one.
But no real way to do them altogether via API
Looking at the request logs it made a single create request schedule request and set that field
Can you show me that request?
Trying to find it!
I had one other question too if that's ok. I've noticed that when proration is turned on, even if I set billing_cycle_anchor and cancel_at exactly N months apart, there's a final prorated bill generated for a few hours of use or so
My goal is to prorate the first bill so I have proration turned on, but don't want to prorate any bills after that. Wondering if there's a way to do that
You are doing the above via the Dashboard?
Using the API
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I can't seem to find the request, but I believe this was created that way: sub_sched_1NJtJV2SxL8BfEQ6HKFvCUCn
Ah okay so yeah a Subscription won't cycle at the exact same second for every cycle. So this won't be reliable
The recommendation is to cancel using cancel_at_period_end
If you are multiple periods ahead of the cancellation then you would want to use a Subscription Schedule to handle a clean cancellation
Got it, ok thanks a lot!
Is there an event that fires when a subscriptionperiod starts?
Yeah I wasn't aware of how the Dashboard handled this exactly
But that phases.payment_settings is a Dashboard-only parameter
So unfortunately not accessible via the API
I can put in a feature request to get it added to the API
Got it, ok thanks!
Understand it would make things easier
Appreciate that ๐
In terms of an event, yep you want customer.subscription.updated
That fires every time a Subscription renews
Perfect, thank you ๐