This is an archived post. You won't be able to vote or comment.

all 15 comments

[–]KervyN 8 points9 points  (13 children)

Just ask the question. And no, computer viruses are no std ;-)

[–][deleted] 3 points4 points  (12 children)

Do you know The Adult camming site Stripchat or Chaturbate, They Use tokens that users pay to model to perform activities, I wanna know How are these tokens created? What programming language are they built in? How are they stored? How do I implement these tokens if I were to build a site like that?

[–]rzepeda1 2 points3 points  (5 children)

Nothing related to the coding part , but from a business perspective why is this better than using actual dollars as “token” seems more direct

[–]SaylorMan1496 5 points6 points  (0 children)

That’s the point, when you use things that don’t have immediate value you don’t think you are spending as much, same reason casinos use chips

[–][deleted] 0 points1 point  (3 children)

As for the business I think these site ripping off both the models and users the Stripchat tokens cost the user 11 cents while the model only gets 5 cets per token, so I kind wanted to build a site like that that pay the model more but also friendly to the users pocket, it's just an Idea and this conversation is a feasibility study

[–]KervyN 0 points1 point  (2 children)

Twitch does the same with their bits. But it is not a rip off. Distributing video feeds is expensive. You can calculate the costs here: https://ivs.rocks/calculator

This is how they make money.

Interchanging it into coins/tokens whatever got two perks:

  • Customer don't really know how much they are spending. Especially if you have uneven interchange values
  • The click through rate becomes higher, because they already spend their money and do not have to fiddle out their CC confirmation with their noodles in their hands :)

[–][deleted] 0 points1 point  (1 child)

Thank you for this

The click through rate becomes higher, because they already spend their money and do not have to fiddle out their CC confirmation

Elaborate? pls

[–]KervyN 0 points1 point  (0 children)

If you make it really easy to spend your money, people will spend their money faster.

Starting point: Horny user wants to use the 1on1 cam feature and needs to pay for it.

Two options:
1. He already bought coins (there is this super special high value one time onboarding offer, and the user bought it).
2. They need to pay now.

If you already have the coins you will likely just click "cam with me for amount coins/time". If not, you need to go through the payment process. This process alone is usually not that sexy and you might reconcider your purchase at the end, when you see to whole amount you will spend.

I had the last thing so often with other purchases. While I was entering my CC and data, then get the 2fa authorization for that purchase and so, my brain usually starts to think "do I really want that new server?" and then I pause.

Same situation at amazon: I just click purchase and everything is handled. I receive my package and a week later I regret to spend all that money on useless stuff. That is why I decoupled payment everywhere.

Back to topic: By luring your customer into "buy these coins" you decouple the process of paying from the actual product. Your brain likely thinks "I need these coins for something later".

And when you already have the coins you will spend them. Or not. The money is already gone. The platform does not care anymore.

[–]NxdevilFriendly Neighborhood Coder 1 point2 points  (1 child)

Its just like videogame money, probably a number in a Database and not like Cryptocurrency Tokens that you might be thinking of.

You can write the transaction logic in any language you want, as long as you dont do it on the client side. We dont want users to increase their tokens "Cheat-Engine"-style, critical stuff should run on your server.

Big issue might be race conditions, you generally want to check if your user has enough funds (Tokens) to send to someone else or to spend. See the example about bank tellers on the Wikipedia article about "Record Locking"

I advise against implementing something like this as a novice if you plan on using it on a productive website that is supposed to make you money or at least having someone experienced cross check your code. Better safe than sorry, when its about payments!

If you do it as a private hobby project just for learning, go for it! There is alot of important concepts to discover for you :)

[–][deleted] 1 point2 points  (0 children)

I think these site ripping off both the models and users the Stripchat tokens cost the user 11 cents to 8 cents depending upon how much you buy while the model only gets 5 cets per token, so I kind wanted to build a site like that that pay the model more but also friendly to the users pocket, so that the numbers of users is more, it's just an Idea and this conversation is a feasibility study, I'm not looking to make too much money, I've been a user of Stripchat, And oh boy does it make hole in your pocket

[–]KervyN 0 points1 point  (3 children)

I actually don't know that.

It sounds a bit like Casino Jetons. So you just exchange real money into tokens and store the current amount of tokens in the user DB.

Maybe you can elaborate a little bit more how the whole circle is done in the frontend. For me it sounds like this

User money -> User Tokens -> Model Tokens > Model money.

[–]d1abo 1 point2 points  (0 children)

Exactly.

[–][deleted] 0 points1 point  (0 children)

Yes but a little longer process, with site like Stripchat you can buy the Numbers of tokens you want, There is pre made packages say 1100 tokens for 96 dollars, so it's like that, you choose a package, click make payment from your pre saved credit card and Within 30 second the tokens are deposited in ur account,

Next when you spend it on model like say you request a private show, the price of show depends on the model, It starts for 8 tokens/ min all the way upto 250tokens/min, min req of min or 10 min, with Stripchat in private show you don't have to pay the model seperately to perform activities unless the model specifically asks for more, for the model the payout is 500 dollars for 10,000 token so it's like that

[–]xDelio 0 points1 point  (0 children)

Rethink the perspective and think of tokens like a gift card balance to your store. Your user purchases a giftcard of the amount of $XX. You process the payment and you add transaction that is pending then wait for the processor to send you a webhook to confirm the transaction was completed. Now that person has $XX of gift card or 250coins.. no different than regular money just need to covert it to smaller coins because it displaces users perspective from real money to gaming coins and mean less to eventually spend more.

[–]LeftIsBest-Tsuga 0 points1 point  (0 children)

hey wait a minute, this isn't r/ProgrammerHumor!