#theonlybigbad_affiliate-payment-links
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1326683014737952872
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- theonlybigbad_api, 5 hours ago, 12 messages
Here's a previous discussion: Question
I just watched "Affiliate marketing with Payment Links" https://www.youtube.com/watch?v=ytRkVL1Dm50 and want to know if this also works for Subscriptions. E.g. I have a $15/month product and price, and I want to setup Affiliate marketing where the affiliate (referrer) gets $1/month/subscriber commission.
What have you already attempted?
Just watched the video, haven't found any other videos referencing this with subscriptions yet.
What are you working on?
We have a new subscription site and are in the process of adding affiliate marketing so we can get influencers to drive membership to our site. Ty.
StripeBot added Rubeus to the thread. โ Today at 11:44 AM
TheOnlyBigBad โ Today at 11:54 AM
The video goes through setting up a PriceLink with transfer_data: { destination: referrer's StripeAccountId, amount: commission_rate } and when the Affiliate distributes the link and when users make a purchase a the amount is transferred to the referrer's account. I'm wondering if that will work if the product is a subscription and each month when the subscription renews, does the affiliate get the same amount again.
In this episode, you'll learn how to use the Payment Links API with Stripe Connect to build an affiliate marketing tool. We'll show how you can pay out affiliates a portion of the proceeds when they help you make a sale.
Presenter
CJ Avilla - Developer Advocate at Stripe - https://twitter.com/cjav_dev
Table of contents
00:00 Introducti...
Rubeus โ Today at 11:56 AM
Hello! I'm taking over and catching up...
When you say "PriceLink" do you mean a Payment Link?
TheOnlyBigBad โ Today at 11:57 AM
Sorry Yes Payment Link
Rubeus โ Today at 11:58 AM
It sounds like you probably want to use application_fee_percent instead: https://docs.stripe.com/api/payment-link/object#payment_link_object-application_fee_percent
TheOnlyBigBad โ Today at 12:04 PM
But the description seems backwards, such that the Application Owner is us, and the connect account is the affiliate... We just want to give the affiliate a small portion. But I guess our application fee could be $14 or 0.9333 if doing application_fee_percent... so the affiliate/connect account is getting only $1.
I guess that will work.
Rubeus โ Today at 12:09 PM
Yep, give that a try in test mode and see if it works the way you want/expect.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ok. That worked. But it shows in the Affiliate's Dashboard that they are getting $14.99 for each subscription each month, but there's only the $1.00 a month per sub in their account. In the Transactions it shows an Application_fee of $13.99. Ideally, we just want to transfer $1.00/per month/per sub to the Connected account. Not All of the funds and a fee of 93.33%, the $13.99.
I've done this all in the Test dashboard. And can possibly use postman, or right code to try it out, but was hoping you would be able to tell me yes it should, or no it won't. Or if there is a better way to do this. TY!
Hi, if you're not wanting to use the Application fee, you could use this, https://docs.stripe.com/api/payment-link/object#payment_link_object-transfer_data to transfer a specific amount to the connected account. Are you able to try this?
Will that issue the commission payment each month to the affiliate Connected Account automatically when the subscription renews?
That is what I am hoping will work.
Yes. I also reccomend that you test things to ensure that it's how you want it to behave
Awesome. I will definitely try it. Thank you.
I'm new to Discord, is there a way to reopen a thread in here, or do I just do what I did before and just copy/paste over the content?
There is not, you do not have to copy over the entire discussion just the summary would work for us
ok. Thank you!
If I want to post a snippet, e.g. try this, would it be easiest to just use PostMan?
Sure, whatever works for you
E.g. Old:
{
"application_fee_percent": "93.33",
"payment_method_collection": "always",
"line_items": {
"0": {
"quantity": "1",
"price": "price_1QFhpFBbIM8a9vp8FH37VQrd"
}
},
"automatic_tax": {
"enabled": "false"
},
"allow_promotion_codes": "false",
"billing_address_collection": "auto",
"tax_id_collection": {
"enabled": "false"
},
"consent_collection": {
"terms_of_service": "none"
},
"phone_number_collection": {
"enabled": "false"
},
"transfer_data": {
"amount": 100,
"destination": "acct_1Qf6aMB9miLYr8Qi"
},
"after_completion": {
"type": "redirect",
"redirect": {
"url": "https://localhost:44302/PremiumThankyou"
}
}
}
To:
{
"payment_method_collection": "always",
"line_items": {
"0": {
"quantity": "1",
"price": "price_1QFhpFBbIM8a9vp8FH37VQrd"
}
},
"automatic_tax": {
"enabled": "false"
},
"allow_promotion_codes": "false",
"billing_address_collection": "auto",
"tax_id_collection": {
"enabled": "false"
},
"consent_collection": {
"terms_of_service": "none"
},
"phone_number_collection": {
"enabled": "false"
},
"transfer_data": {
**** "amount": 100,
"destination": "acct_1Qf6aMB9miLYr8Qi"
},
"after_completion": {
"type": "redirect",
"redirect": {
"url": "https://localhost:44302/PremiumThankyou"
}
}
}
OK. thanks