Buy in game credits to purchase virtual goods

Hello. What I have is a game in the web player imbedded in a site. We are trying to figure how we’d go about buying credits for in game virtual goods purchases.

What I’d think is a plug in would need to be coded allowing communication between the checkout provider and the game itself. Am I wrong or is this possible without a custom plug in?

Thanks.

You can call Javascript functions from inside Unity with Application.ExternalCall. Bringing up an iframe with the checkout service shouldn’t be a problem then. Take a look at PayPal’s Digital Goods service.

After that, feeding the purchase details into your database and grabbing it from there shouldn’t be too troublesome, I believe, unless you’re using SQL Server, which Unity hates for some reason.