#Mytras
1 messages · Page 1 of 1 (latest)
Hi, could you share some id for us to look further into?
sure
we_1Myru8KavdtumQQG7iq1r5tO
that is the webhook id
the only response I got is from a subscription that started today
but the 2 test schedule subscirption that i setup yesterday to start today
they started but did not appeared in the webhook information
Is the Subscription actually released from the Schedule?
Just because the Subscription has started doesn't necessarily mean they're released from Schedule control
I will give you some context of what I am trying to do, I want to set up a trigger/endpoint in Zapier where I receive information about scheduled subscriptions that started, once that trigger receive the information the zapier flow will create a payment link and subsequently send it to the customer
Sure, then you'd listen for customer.subscription.created event, not subscription_schedule.released
this will only be applied to schedule subscriptions for customers that have subscription that start in the future
subscription_schedule.released will only fire once the the end date of the Schedule is hit, or the phases have ran their course
It doesn't fire immediately when the Subscription is created at X date in future
The Subscription will be under the Schedule control until you either release it manually, or the phases/iterations defined on the Schedule have been completed
If you simply want to know when a Schedule creates/starts the actual Subscription then use customer.subscription.created
customer.subscription.created doesnt this fire the sending of the payment link in the moment that the subscription schedule is created in stripe, lets say i create the schedule subscritpion to start charging the customer 21 of april 2024, would that work?
customer.subscription.created doesnt this fire the sending of the payment link
Not sure what you mean
lets say i create the schedule subscritpion to start charging the customer 21 of april 2024, would that work?
Would what work?
So I need the webhook to send information to the Zapier endpoint for subscriptions schedule for the future
that will trigger the Zapier flow to create a paymentlink and after that send to the customer for payment to the correct date
When do you want the Payment Link to be sent? When you create the Schedule, or when the Schedule starts the Subscription?
when the schedule start the subscription, that is the moment that the customer needs to start paying
for example look at this customer cus_NHvItzUjNGNXwA
She has a 1 time payment that led to a subscription starting the february 2024
the day that subscritpion starts I the payment link needs to be created and sent to the customer
Then you should utilise the customer.subscription.created event. But I'm unsure why you need a Payment Link in this instance. Assuming you've already collected payment details, the Subscription will automatically bill the customer
because for 1 time payment BACS DD are not implemented and we want to give the customer the choice to pay via Bank and paymentlinks are the way that my company can do it since we do not have a checkout on the website
BACS DD are not on which surface? Payment Links?
1 time payment invoices
But via a Payment Link or via Invoicing (they're different)
I have been told from Stripe support, that for 1 time payment invoices BACS DD are not a solution not even via payment link
Should be if you enabled this checkbox when creating your Payment Link
(we're working on removing that requirement)
So what you are saying is that for customers that have 1 time payment to send them the payment link that will save the payment details that than in the future will be automatically used to charge the subscriptions
that solves (maybe) one of my problems
we also offer subscriptions only, that start NOW() and start on a future date
that is where I need to send the customer the payment link to the exact date that the subscritpion starts
and I want to automate the process without the need for customer service to do it manually
Yes, it's a quirk of BACS DD with Checkout/Payment Links that is something we want to address soon. One-time sessions/payments require the setup_future_usage parameter, which that checkbox provides: https://stripe.com/docs/payments/bacs-debit/accept-a-payment?platform=checkout#:~:text=You must include the payment_intent_data.setup_future_usage parameter with a value of off_session when creating a payment mode Session for Bacs Direct Debit.
But what about:
we also offer subscriptions only, that start NOW() and start on a future date
that is where I need to send the customer the payment link to the exact date that the subscritpion starts
and I want to automate the process without the need for customer service to do it manually
You mean you create the Payment Links via the API?
yes
There's a parameter: https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-payment_intent_data-setup_future_usage
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
my idea was to get the information from the webhook on when the subscription starts and the API will create the paymentlink and send it to the customer, but not sure which event to use
This is what I need at the moment
can you help me in finding the right event, please?
You need customer.subscription.created based on what you've told me. That will fire when the Schedule creates the Subscription, based on the start date you provide
so let's say Subscrition X starts 6th june 2023 for customer Y, the webhook will send the information to the endpoint about the subscription starting the 6th of June 2023, than my API flow will create paymentlink and send it to the customer
correct?
so the customer will receive the payment link the 6th of june and not earlier or later, correct?
Sounds about right yep
Again, you want customer.subscription.created which is the event that will fire on 6th June in your example