#rita-retries

1 messages ยท Page 1 of 1 (latest)

sage solar
#

hello, not sure! I assume whatever options on the Dashboard, are what you have. I don't really know about that side of the Dashboard much

void totem
#

I screened options on daashboard, but maybe I can modify it via API?

sage solar
#

no

#

they aren't any API endpoints to update those

void totem
#

Ok, well in that case, how can I check all possible webhooks that could happen during the retries? (happy and unhappy scenarios) especially for this send_invoice payments? (I can't wait 30 days ๐Ÿ˜› )

sage solar
#

yeah there's no great way to test this afaik, there is a beta that Stripe might be running called "billing clocks" to help simulate time, that might help you, are you in that beta

#

?

void totem
#

unfortunetly no

#

I try to handle subscriptions that the user was about to pay with collection_method: sent_invoice but the payment outside Stripe failed (unhappy scenario).

  1. Is there any way to somehow expire this subscription if the user didn't pay? (something different than cancel?)
  2. I can't wait 30 days to move the subscription to unpaid without reacting.
    So, can I cancel subscription, and after 30 days the automation would move it to unpaid anyway?
#

The perfect solution would be to allow via API to move subscription status to unpaid, but from the previous thread I know it's currently impossible.

mild minnow
#

Hi Rita, let me take over and help you here. Am I correct to say that you want to set the subscription status to unpaid immediately without attempt to receovery?

void totem
#

yes

#

@mild minnow in scenario when I have a collection method: "send_invoice" I'm using using a webhook to trigger custom payment method so I can immedietly know if the invoice is paid or not

mild minnow
#

Hi Rita, if the collection_method is send_invoice, you will only be notified via Wehbook event if the invoice is paid.

#

And the subscription status will become past_due if the customer does not complete the payment within due date

#

There is no API for you to move the status from past_due to unpaid.

void totem
#

If the collection_method is set to send_invoice, and the invoice is past its due date, the state of the subscription is set to past_due.

Just to clarify I can block subscription benefits for user paying outside Stripe based on past_due status that should be in customer.subscription.update webhook after unsucessful charge, payment is still not finsalised?

mild minnow
#

When your customer has completed the out of bound payment (i.e., outside Stripe). You need to manually call inovice.pay API and only then you will receive the customer.subscription.update webhook event.

void totem
#

Yes I do it in happy scenario ๐Ÿ™‚

in unhappy scenario - no call to pay method, and invoice is after current_period_end

mild minnow
#

You mean the customer didn't complete the payment within the subscription's current_peroid_end date?

void totem
#

yes

mild minnow
#

In that case the subscription would stay as past_due