#geimsdin

1 messages · Page 1 of 1 (latest)

warm capeBOT
void sequoia
#

hello! gimme a second to get back to you

void phoenix
#

ok

void sequoia
#

i don't think there's a great way to go about this really. The only way I can think of is to note down the remaining phases and then cancel/release the Subscription Schedule. If/when the customers makes payment for the unpaid invoice, then create a new Subscription Schedule

void phoenix
#

wow... that's a mess on my code... I just was sure that the subscription pauses until the current phase has been paid.

void sequoia
#

hmmm

#

ultimately though, even if the phases continue, the invoices are generated and left as open right?

#

what do you expect to happen when a subscription "pauses"?

void phoenix
#

sub_1LmuZpLmxBucQd158CvBtdoE

This is an example, second phase not paid, third phase paid and subscription ended.
My expectation is that the subscription pauses because the phase is not complete unless is paid.
The invoice is generated and left as unpaid at the moment

void sequoia
#

to be more specific, what do you expect to happen when a subscription pauses? Do you expect invoices to not be generated? And/or will you stop providing services?

void phoenix
#

If a payment is not received correctly the customer enters in a grace period of x days, if he fails to pay in those days the services will be suspended.

#

Yes, it is unuseful to generate the next invoice if the previous has not been paid

void sequoia
void phoenix
#

Thanks Alex. Last question for now: how can I retrieve by API a paymentlink related to an unpaid invoice? Seems I cannot find it in the docs

void sequoia
#

it's in the hosted_invoice_url of the Invoice

void phoenix
#

Found it, thanks

#

Can I trigger the payment request email form Stripe by API?

#

In case a payment fails and after 2 days (for example) I want the client to receive a reminder

void sequoia
#

Stripe will automatically send a reminder if you've configured it

#

these emails aren't sent in test mode though (in case you were planning to test it in test mode)

void phoenix
#

I know, I mean sending it on my timing

#

I can just setup the retries, not by API?

void sequoia