JP_Gonçalves Posted September 4, 2014 Share Posted September 4, 2014 Hi guys! I'm posting this because I need help to create a new payment module, I think it's possible, but I dont know how to "execute" the code... So, the problem is: I need to create a new payment module so that when the costumer finishes it's buy and goes for the payment area, he will pay with "points" instead of real money. those points must be earned by doing stuff for the community like posting videos on YT and etc.. I was thinking that I could creat a new column on the DB.. each user would have it's points on the DB, like a card, when you make a buy, the amount of points that you spent, gets taken from you of course.. The real problem is actually do the column and the new payment method, wich I have completly no idea how to do it. If you guys can help me... Thanks in advance, João Pedro Gonçalves Quote Link to comment Share on other sites More sharing options...
burt Posted September 4, 2014 Share Posted September 4, 2014 You need to think more. Is 1 point worth 1 dollar ? What happens if the buyer has 1000 points, but only buys $200 of stuff. The other 800 is ... ? What happens if the buyer has only 200 points, but is trying to buy $500 of stuff ? The other $300 is got from where. Point is: this is not a payment module, this is a discount module. Discount the price of the products by the number of points they have available. Save any excess for future use. Quote Link to comment Share on other sites More sharing options...
JP_Gonçalves Posted September 4, 2014 Author Share Posted September 4, 2014 (edited) You need to think more. Is 1 point worth 1 dollar ? What happens if the buyer has 1000 points, but only buys $200 of stuff. The other 800 is ... ? What happens if the buyer has only 200 points, but is trying to buy $500 of stuff ? The other $300 is got from where. Point is: this is not a payment module, this is a discount module. Discount the price of the products by the number of points they have available. Save any excess for future use. No money will be involved in the transactions, but the points act like real money.. if youre buying something that costs 200 points and you have 1000 points, it'll remain 800 points.. What I need is to use points instead of money. that's all Edited September 4, 2014 by JP_Gonçalves Quote Link to comment Share on other sites More sharing options...
burt Posted September 4, 2014 Share Posted September 4, 2014 If no money is to be involved at all... create a payment module that reads the person available points, if enough allow them to checkout and update the points on their account appropriately. If not enough points available, redirect back to the shopping cart page along with an appropriate message. You need to also have a way to add points to a persons account. All that is straightforward for any developer (who will likely want paying in something other than points) => http://www.oscommerce.com/forums/forum/79-commercial-support-enquiries/ Quote Link to comment Share on other sites More sharing options...
JP_Gonçalves Posted September 4, 2014 Author Share Posted September 4, 2014 (edited) the insert points feature is already though, the thing is to actually execute the code... :/ but thanks, I have an idea of how to properly do it! :D Edited September 4, 2014 by JP_Gonçalves Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.