#mm1356

1 messages · Page 1 of 1 (latest)

leaden baneBOT
#

Hello! We'll be with you shortly. 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.

  • mm1356, 21 hours ago, 46 messages
spring edge
arctic cairn
#

account.* events will be connected account related

spring edge
#

And how may I know the exact name ? Because I want that whenever a user buy a product to a stripe connect account, I want to keep a track in my database. So I need the name, am I clear ?

arctic cairn
#

Are you looking for the connected account creation/update related events or the payments on the connected accounts? Can you share the scenario that you intend to subscribe, so that I can advise the relevant event types?

spring edge
#

I think both.

So in my website, I have a subscription so that people can access to it. Here I don't need Stripe connect, and this is the image above where I used checkout session.

Yesterday, I implemented create.account with account link, so that a user can become a Stripe Connect account. Now this user will be able to receive funds.
This works well, but now I need to fill all those informations of this user in my database. I want to link this connected account with the subscribtion he did using checkout session. And also I want to add all payment he received through its Stripe Connect.

arctic cairn
#

I see! Thanks for sharing the details.

There are two types of Webhook - Account and Connect: https://stripe.com/docs/connect/webhooks#connect-webhooks

  • If the payments or actions are performed on the platform, the events will be sent to Account webhook.
  • If the payments or actions are performed on the connected account, i.e. use Direct Charges with Stripe-Account header, then the events will be sent to Connect webhook.

For any changes on connected account itself, you can subscribe to account.updated event.

For subscription related changes, you may find the Webhook events to subscribe for different scenarios here: https://stripe.com/docs/billing/subscriptions/webhooks#events

Learn how to use webhooks with Connect to be notified of Stripe activity.

Learn to use webhooks to receive notifications of subscription activity.

spring edge
#

Ok thank you.

I have another question. Actually, to access my site, they have to pay a subscription.

I want to add a feature where, if they fill the name of someone already existing, this people will get as longer as the new one is subscribe, 50% of the subscription.

How can I handle that ?

deep moon
#

Hi! I'm taking over this thread.

spring edge
#

Hi ! Do you want me to sum up ?

deep moon
#

The way to achieve this is to accept a payment with a custom field to grab the name or email of another user. Then find the Subscription ID of that other user, and update it to add a free trial.

spring edge
#

A free trial ? Why ? Because if he brings like 10 users to my website, if the subscription is 20 dollar, he has to earn : 10* 50% * 20 dollar = 100 dollars.

deep moon
#

Can you clarify what byou mean by "this people will get as longer as the new one is subscribe, 50% of the subscription", maybe I missunderstood.

spring edge
#

Ok, so user A is already subscribed to my site. he pays 20 dollar a month.

He bring user B user C and user D. All this 3 users pays 20 dollars, and they will stay in my website 6 month. I want that user A get, during 6 month, 50% of their subscription, and me (as the platform) get the other 50%.

#

So user A will get 3 (from the three users) * 20 (price of subscription) * 50% *6 (months)

deep moon
#

You mean a 50% discount?

spring edge
#

No

#

User A pays 20 dollar to me

#

User B pays 10 dollar to user A, and 10 dollar to me

deep moon
#

So you want to send money to some users?

spring edge
#

Yes, it is like sponsor ship

#

If someone bring users, he is rewarded by getting 50% of subscription

deep moon
#

In this case you need to use Stripe Connect and each user need to have their own Stripe account.

spring edge
#

But does it work also for subscription with stripe connect ? Or it is only one time payement ?

deep moon
#

Sure it works for both one time payments and Subscriptions.