#rp

1 messages ยท Page 1 of 1 (latest)

vivid ploverBOT
tired rose
#

Hello what undocumented field are you using here? Checking in to whether there is a parameter for this

wary grail
#

I believe it was phases.payment_method_settings.payment_method_types

graceful pulsar
#

๐Ÿ‘‹ stepping in here

wary grail
#

hey! thanks ๐Ÿ™‚

graceful pulsar
#

Hmmm I think this is a Dashboard-only parameter

wary grail
#

Hmm interesting I used to see an option in the dashboard to select allowed payment method types, but its no longer there

graceful pulsar
#

Are you sure you saw it related to a Subscription Schedule

#

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

wary grail
#

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

graceful pulsar
#

Ah yeah the Dashboard just does all those steps in one.

#

But no real way to do them altogether via API

wary grail
#

Looking at the request logs it made a single create request schedule request and set that field

graceful pulsar
#

Can you show me that request?

wary grail
#

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

graceful pulsar
#

You are doing the above via the Dashboard?

wary grail
#

Using the API

#

I can't seem to find the request, but I believe this was created that way: sub_sched_1NJtJV2SxL8BfEQ6HKFvCUCn

graceful pulsar
#

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

wary grail
#

Got it, ok thanks a lot!

graceful pulsar
#

Ah interesting

#

Thanks for the example

wary grail
#

Is there an event that fires when a subscriptionperiod starts?

graceful pulsar
#

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

wary grail
#

Got it, ok thanks!

graceful pulsar
#

Understand it would make things easier

wary grail
#

Appreciate that ๐Ÿ™‚

graceful pulsar
#

In terms of an event, yep you want customer.subscription.updated

#

That fires every time a Subscription renews

wary grail
#

Perfect, thank you ๐Ÿ™‚