WWBN / AVideo

Create Your Own Broadcast Network With AVideo Platform Open-Source. OAVP OVP
https://avideo.tube/AVideo_OpenSource
Other
1.9k stars 972 forks source link

Added Stripe, how to set up Premium accounts for certain things? #9457

Closed JoshWho closed 1 week ago

JoshWho commented 1 week ago

We want to make only premium accounts able to upload and live stream, how do I go about setting that up?

Also How do I turn on tips with stripe in the live stream chats for only the premium accounts?

DanielnetoDotCom commented 1 week ago

Currently livestream and upload videos permisisons must be manually added

I may add options to do it with user groups in the future.

once it is in the usergroup you will be able to create subscriptions to allow it.

JoshWho commented 1 week ago

That will be perfect. I was wondering if that is how it worked but there is no permissions for the uploading and live streaming. That is exactly what we need next.

JoshWho commented 1 week ago

When do you think you will be able to add Live streaming and Uploading to the permissions?

a1632a06-53f8-4798-b3e9-c06965013e66

JoshWho commented 1 week ago

Donate from wallet captcha is too small to read in chat

00e94332-3bdf-43e1-8a0a-bb91454879ad

DanielnetoDotCom commented 1 week ago

When do you think you will be able to add Live streaming and Uploading to the permissions?

This is not in my roadmap yet, but I have intrested to do, if you want to sponsor that I can start it next week

JoshWho commented 1 week ago

When do you think you will be able to add Live streaming and Uploading to the permissions?

This is not in my roadmap yet, but I have intrested to do, if you want to sponsor that I can start it next week

Will see, have to ask Dave will let you know.

DanielnetoDotCom commented 1 week ago

Donate from wallet captcha is too small to read in chat

I found the issue, it will require a git pull and also update the Chat2 plugin to version 16.1

JoshWho commented 1 week ago

How does a user request funds like how do they get the money someone tipped them? I see the request thing but what exactly does that do, just message us and we use our own way to send the funds?

DanielnetoDotCom commented 1 week ago

If you mean how regular users load their wallets, it can be done with real money (stripe or paypal)

JoshWho commented 1 week ago

No like when people Request Withdraw how does that work or does the admins just get the request and send out with whatever we can.

DanielnetoDotCom commented 1 week ago

https://github.com/WWBN/AVideo/wiki/YPTWallet-Usage#withdrawing-funds

JoshWho commented 1 week ago

My test payment of 5 dollars reflect to my wallet as 5 dollars but stripe takes a fee so my wallet should say 4.55 is there a way to calculate the fee in to reflect the real amount?

JoshWho commented 1 week ago

General understanding of Stripe's fee structure:

Original amount: $5.00 After fee, the amount: $4.55

From this, we calculated: Fee = $5.00 - $4.55 = $0.45

The percentage we calculated was 9%, but let's align this with Stripe's known fee structure:

Stripe's typical fee for online transactions at the time of my last update: 2.9% + $0.30.

Let's apply Stripe's fee to $5.00:

Percentage Fee: 2.9% of $5.00 = $5.00 * 0.029 = $0.145 Flat Fee: $0.30

Adding these together gives: Total Fee = $0.145 + $0.30 = $0.445, which rounds to $0.45.

Now, if we calculate the final amount after applying this fee: $5.00 - $0.445 = $4.555, which would typically round to $4.56 in practical terms due to cent rounding.

Given this calculation: ($4.55 after a $0.45 fee) doesn't align perfectly with Stripe's standard fee structure if we consider precise cent accounting. However, due to rounding or if there were slight variations in fee structure or if additional factors like currency conversion or specific account settings come into play, it could be seen as roughly consistent.

DanielnetoDotCom commented 1 week ago

in the payout you must agree you and your customers the cut for the payment gateway fees

usualy the site get a cut on the payout

each one has a different deal with the payment gateway

JoshWho commented 1 week ago

How to make it apply that fee so we do not give out more money than what we actually get though? It shouldn't say I have 5 in my wallet if we only really have 4.55 for it.

DanielnetoDotCom commented 1 week ago

this is something you must be clear on your agreement,

I do not have it yet, but I the future I can can setup a wallet donnation cut so you will get a cut on every donnation to cover your fees

JoshWho commented 1 week ago

The fee should be included with the purchase of 5 dollars so when someone wants to add $5 to their wallet then it should add the fee and make the total on checkout with the stripe fee to make it correct.

X = \frac{5.30}{0.971} \approx $5.46 Therefore, you should charge approximately $5.46 to ensure that after Stripe takes its fee, you are left with $5.00. However, since currency is typically charged to the nearest cent, you might round this up to $5.47 to ensure you cover the fee appropriately.

So basically total it with a 2.9% fee that way the wallet shows exactly what they wanted and charges the fee

JoshWho commented 1 week ago

If not set this way we will lose money in a 2.9% on every transaction

DanielnetoDotCom commented 1 week ago

For now you should discount that when you payout

JoshWho commented 1 week ago

For now you should discount that when you payout

It is going to cause lots of legal confusions and people are not going to understand

DanielnetoDotCom commented 1 week ago

We do not have it yet, but it requires the Site to get a cut, or in the donation or in the payout.

Youtube does that with super chat.

JoshWho commented 1 week ago

I can't just tell the customer there is a invisible fee and not have anything reflecting it.

JoshWho commented 1 week ago

If you pay for a super chat on Youtube like 5 dollars you get charged the 5 and their fee

DanielnetoDotCom commented 1 week ago

yes but I do not have a cut fee feature yet

JoshWho commented 1 week ago

From everything I have read up on it will be illegal to run it like this. We have to show there is a fee applied.

$5.00 wallet credit should show fee included charged $5.00 $0.46 fee

$5.46

DanielnetoDotCom commented 1 week ago

Soon I will release an update that should let you create user groups with upload and livestream permissions.

DanielnetoDotCom commented 1 week ago

From everything I have read up on it will be illegal to run it like this. We have to show there is a fee applied.

$5.00 wallet credit should show fee included charged

$5.00 $0.46 fee $5.46

can it be done in the payout?

that would be easier, because there are a lot different ways to generate income $ to the wallet.

JoshWho commented 1 week ago

I would think to just make it in the stripe plugin a auto 2.9% charge then when customer rings up 5.00 credit it will say how much it will cost them.

JoshWho commented 1 week ago

Or just add it to the pricing schema when they click purchase 5 it charges them in that transaction the fee but only reflect the correct wallet credit of $5

DanielnetoDotCom commented 1 week ago

Not a good idea, each location and payment gateway has a different fees, for example in Brazil the fees are different

also you may receive income from different ways, maybe a reward per view.

I guess the most solid would be retreive the fee in the payout.

JoshWho commented 1 week ago

As long as it doesn't negative us and we don't need to manually subtract 2.9% every payout. That will be a lot of data work and will have errors here and there.

DanielnetoDotCom commented 1 week ago

No, lets say you have a 10% fee, I will request 5 USD withdraw, We can describe in the withdraw it he will receive only 4.50 USD, and the other 0.50 is regarding the 10% fee

In your site you can also request a higher fee, so you will also make money

For example YouTube takes a 30% cut of all Super Chat revenue

JoshWho commented 1 week ago

I c. This is awesome. Thank you @DanielnetoDotCom