#whisky_api

1 messages ยท Page 1 of 1 (latest)

hushed bronzeBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1298937591155916870

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

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.

floral temple
#

๐Ÿ‘‹ checking...

floral temple
#

Could you please share more details why you are calling the resume API on that Subscription

#

I'm not sure I understand the scenario here, could you please provide a step by steps to reproduce the issue you are facing ?

shrewd fable
#

We create subscriptions with trial phases in the beginning and when the trial phase ends, the customer has to attach a payment method if he wants to continue the subscription. Once he attaches the payment method, I receive the payment_method.attached webhook and check if the current subscription status is paused, then I call the resume Endpoint

floral temple
#

Thanks for the additional details. In that case set missing_payment_method=create_invoice

#

when you create thte Subscription

#

and once you collect/have the PaymentMethod

#

pay the invoice

#

and then the Subscription will resume

shrewd fable
#

Let me try it

#

Ah but that I dont want to do. So I want the subscription to pause because we will market that you can do a test phase with no payment methods. If you dont like the software then you can simply do nothing and if you want to continue, we ask you to attach a payment method

floral temple
#

You can achieve the same behavior using the Invoice. If the customer doesn't want to continue you can void it.

shrewd fable
#

True, but then I have to change all the other logic too. Isnt there a way how to do it with missing_payment_method=pause and just work on the way once a payment method is attached?

hushed bronzeBOT
floral temple
#

This seems to be a limitation when using Sepa PaymentMethod. It works with other PaymentMethod (e.g. cards)

shrewd fable
#

Yep

floral temple
shrewd fable
#

Sure, give me a sec

#

You cannot set pause_collection while a subscription is paused. Resume the subscription first before setting pause_collection.

#

Seems like we have to use the resume endpoint

#

What if we update the subscription when receiving that a payment method is attached? Is it helping to update the missing_payment_method parameter to create_invoice even though the trial ended and then asking to resume?

tender gull
#

Hi! I'm taking over from my colleague. Please, give me a moment to catch up.

shrewd fable
#

Sure. Hey Vanya! How are you doing? ๐Ÿ™‚

tender gull
#

I'm good, thanks!

shrewd fable
#

I hope it's okay that I've been flooding the Discord here for the last few days. We are currently testing our integration and so many bugs have popped up. We hope to fix them all this week ๐Ÿ˜„

tender gull
#

No worries, that's why we're here for you.

#

I just wanted to step back and clarify that pausing collection doesn't actually pause the Subscription itself. The customer is just not charged for it during this period.

#

I would suggest asking the customer to add a PaymentMethod before the trial ends.

#

Why do you reset the billing cycle anchor here? req_V2lEP4lCnSXMFU

shrewd fable
#

So that the billing cycle anchor starts once they attach the payment method and the subscriptions transitions from a trial phase with status pause to a "paid" subscription

shrewd fable
tender gull
#

Yes. Cancelling and re-creating is usually easier to manage than pausing payment collection.

shrewd fable
#

Alright. If that's the only alternative to achieve our goal, then we will set missing_payment_method to cancel

#

We'll try to setup this flow today and see if that works! Thanks again! ๐Ÿ™‚

tender gull
#

Alternatively, you can try resuming the Subscription just before setting the SEPA PaymentMethod as default.