Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Our Scripts Vault contains many game scripts that you can use to create your own game!
Home
Forum
Help
Login
Register
BBGameZone.net
»
Webmasters
»
Revenue & Promotion
»
What is the best way to implement a point code system
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: What is the best way to implement a point code system (Read 1107 times)
Zephren
Level 4
Posts: 14
Reputation: +0/-0
What is the best way to implement a point code system
«
on:
December 24, 2008, 09:06:23 PM »
If you've played one of those many "free" MMO's with item malls or premium items, then you'll know what I'm talking about.
Here is what I have:
I have a system to generate a code which is associated with some number of "premium points", and that code gets stored it in a table. This code needs to be presented to the user in some secure way. Once the user has this code they can input it into a form. Once the code is submitted and verified (only valid if it is in the table), it is removed from the table and the user is given the associated number of points, which can be spent in a premium shop.
Here is what I need:
I need a vendor or merchant service that a user can be sent to, so they can choose to buy one of a set of predefined number of premium points. Here is where I would like some suggestions. What is the best way for the merchant service to notify my game that a purchase has been made? I think the ideal way would be for the service to accept a payment, and once it is verified, it would run a script on the game's web server, providing it an email address. The script on the game web server would then generate a code, store it in the table, and send an email to the provided email address and or return it to the user via the merchant serivce. Is there any way that this can be accomplished? If not, what method might you suggest I use?
Thanks
Logged
codestryke
Administrator
Level 33
Posts: 589
Reputation: +22/-0
Re: What is the best way to implement a point code system
«
Reply #1 on:
December 24, 2008, 09:27:29 PM »
Each merchant system is different in how they communicate back to you.
We use two right now... PayPal which I believe is coded somewhere on this forum, if not PayPal gives some pretty good PHP code for you to use to communicate with there system for testing.
DaoPay which we use for mostly SMS overseas billing does something similar to PayPal.
If you want a specific way for a specific merchant post the merchant and I'll see how I can help
Logged
Creating online addictions, one game at a time:
Zephren
Level 4
Posts: 14
Reputation: +0/-0
Re: What is the best way to implement a point code system
«
Reply #2 on:
December 24, 2008, 10:16:39 PM »
I think I'd prefer to go with PayPal since I'm most familiar with it, and I am using PHP. I just don't know what sort of functionality it has.
Logged
Zeggy
Global Moderator
Level 35
Posts: 1,187
Reputation: +13/-4
Re: What is the best way to implement a point code system
«
Reply #3 on:
December 25, 2008, 04:45:56 AM »
It's called Paypal Instant Payment Notification (IPN). You can find loads of code samples if you google it.
Basically, after a person makes a payment successfully, it will notify your server (a page) that the payment succeeded, and it will also send along all the payment details - name, amount, email, etc.
You can also set up the payment form to include hidden details, such as the player ID, which will also be sent back to your server so you can easily identify the player who paid for something.
Logged
Zephren
Level 4
Posts: 14
Reputation: +0/-0
Re: What is the best way to implement a point code system
«
Reply #4 on:
December 25, 2008, 05:31:06 PM »
Thanks, thats exactly what I needed to know, and sounds like exactly what I need, I just couldn't find that information on their website.
Logged
Barrikor
Level 21
Posts: 248
Reputation: +3/-0
Re: What is the best way to implement a point code system
«
Reply #5 on:
December 25, 2008, 07:51:56 PM »
This is where you download Paypal's SDK's from:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_download_sdks#NVP
Logged
Projects:
Pith Framework
(at 0.5),
CactusGUI
(at 0.3)
JGadrow
Level 35
Posts: 1,133
Reputation: +23/-2
Re: What is the best way to implement a point code system
«
Reply #6 on:
December 29, 2008, 07:03:38 AM »
Just as a note... why bother with the security code? You can insert fields that would allow your system to identify the user account of the person making the transaction upon successful payment verification. Instead of having your system go through all the overhead of querying the database for the player, then creating a code, then stuffing that code into a table, and then e-mailing that code to the desired recipient. Who must then take the code, submit it back to your server, which must make another lookup in the database to validate the code and then, assuming it's valid, run another query to update the player's points.
Why don't you just update the points when you receive payment verification? Saves a TON of processing! lol Not to mention, makes for a smoother user experience.
Logged
Idiocy - Never underestimate the power of stupid people in large groups.
Scion
Level 27
Posts: 402
Reputation: +11/-0
Re: What is the best way to implement a point code system
«
Reply #7 on:
December 29, 2008, 08:37:54 AM »
aye and if you want players to be able to gift the points then just allow them to do point transfers....(assuming you dont give away free points in game, that would just ecourage point farming multi's)
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
BBGameZone.net
»
Webmasters
»
Revenue & Promotion
»
What is the best way to implement a point code system
SimplePortal 2.3.3 © 2008-2010, SimplePortal