Updated subscription trigger, Stripe

Status: Closed · Asked by protrav on · 0 views

protrav — Question ·

Is it possible to set up a trigger for when a subscription is updated in Stripe? Ie. when a subscriber goes from monthly to annual plan?

Pabblymember11 — Reply ·

Hey @protrav

The Stripe trigger event is a webhook-based trigger event, so for your concern, you can use the "Webhook By Pabbly" trigger event.

Further, you can check the webhook event in your stripe account to run the webhook event on "Subscription Updated".

protrav — Reply ·

When I set up the Webhook -- as soon as I start to create that step, the "waiting for webhook" button is spinning.

I've set it up in stripe.

Under that "Waiting for webhook" button it has this text:

Note: Now login to the application where you have added the webhook URL and do a test submission/record so that the data can be recorded here in the webhook response.

--I don't see where I can do a test submission anywhere within stripe, how do I get the test?

Attachments

Pabbly - Webhook.png
Pabblymember11 — Reply ·

Hey @protrav

--I don't see where I can do a test submission anywhere within stripe, how do I get the test?

You need to change the subscriber's plan from monthly to annually.

protrav — Reply ·

That did not work, it still only shows this, with the wheel constantly spinning next to "waiting for a reply"

Also, shouldn't it offer the option to grab test data like it typically does?

Attachments

Pabbly - Webhook 2.png
Pabblymember11 — Reply ·

Hey @protrav

Seems like the way you are trying to change in getting a subscription was associated with the different aspects of the subscription to update.

And the updated subscription to stripe works on the following events.

https://stripe.com/docs/billing/subscriptions/webhooks

We have tried the stripe webhook to update the subscription here please refer to the following short recorded video.

https://www.screenpresso.com/=nqVXb

protrav — Reply ·

Thank you for the video, I've got the webhook set up and working now.

My next step in the workflow was to retrieve stripe customer by ID (I need to be able to find customer email for the end goal of updating in Mailerlite). I tested using the data object metadata customer ID tag, but it keeps returning an error. However that customer ID is correct if I go look in stripe, so I don't know why it isn't pulling in the correct information.

protrav — Reply ·

Nevermind, I was able to get it working -- the Customer ID should map to Data Object Customer

Thank you!

Back to all forum threads · Log in to reply