PayPal

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
wazoowazoo
Prole
Posts: 16
Joined: Sun Jan 22, 2017 2:47 pm

PayPal

Post by wazoowazoo »

Hi everybody. I'me creating an Android game, but i want to know : How can I make a simple payment systeme ?
PS :I am french
User avatar
peterrust
Prole
Posts: 42
Joined: Thu Dec 29, 2016 8:49 pm
Location: Bellingham, WA, USA
Contact:

Re: PayPal

Post by peterrust »

wazoowazoo: I would encourage you to consider Stripe as an alternative to Paypal. It has a reputation for being much better & easier to work with and that is what I have found in my experience with it.

It looks like Stripe does support France, see https://stripe.com/global (and also https://support.stripe.com/questions/ca ... y-platform).

I guess one question is: are you looking to do in-game payments, for items in your game, or payments on your website for people to purchase your game?

If you're doing in-game payments then you'll need to do it in lua. You could manually write code to hit Stripe's API, but it would be easier to use a library that is already written (maybe https://github.com/leafo/lua-payments or https://github.com/wsummerlin/stripe-lua). If neither of these works out (neither seems to have much use or popularity), Stripe does have a nice RESTful API that you can hit over http (perhaps using something like this example code: https://love2d.org/wiki/lure.tuts.xmlhttprequest).

If you just need to setup payments on your website for people to purchase your game, Stripe has a really nice pre-built solution called "checkout": https://stripe.com/checkout.
User avatar
zorg
Party member
Posts: 3444
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: PayPal

Post by zorg »

peterrust wrote:You could manually write code to hit Stripe's API, but it would be easier to use a library that is already written (maybe https://github.com/leafo/lua-payments or https://github.com/wsummerlin/stripe-lua). If neither of these works out (neither seems to have much use or popularity), Stripe does have a nice RESTful API that you can hit over http (perhaps using something like this example code: https://love2d.org/wiki/lure.tuts.xmlhttprequest).
To my knowledge, leafo uses his lua-payments on itch.io, though i'd agree that that's not a game; on the other hand, calling either of no use and unpopular doesn't reflect on the "why"-s realistically.

Not many people actually tie in moneygrab stuff into their games they make; at least here, from what i've seen (besides the bog standard one-time up-front payment, i mean), so from a very small amount of people, of course even less will notice and use it; doesn't mean it's not useful (the libs should do what they purport them doing) nor poplar (since this one is very relative, but if you view it from the other side, paypal and stripe are both of the more popular payment processor thingies on the net).
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
peterrust
Prole
Posts: 42
Joined: Thu Dec 29, 2016 8:49 pm
Location: Bellingham, WA, USA
Contact:

Re: PayPal

Post by peterrust »

zorg,

Yes, good points, agreed. Using Stripe within a game or other lua app is a bit of a niche, so it makes sense that neither project has a ton of activity on github (stars, pull requests, issues). leafo's does have 23 stars, so that's definitely better than single-digits and the fact that he uses it on itch.io is a good recommendation.
zorg wrote:calling either of no use
Sorry, I didn't mean that it was of "no use" or "little use" in that sense, I just meant that it may not be getting a lot of use, IOW there may not be a lot of active users. Yes, you're right about the reasons for that (it's most likely not because it's a poor library, but rather because it's a niche use-case), but still that does mean there may be a higher probability of bugs or edge-cases or usability gotchas that haven't been discovered yet.

I'm always a little cautious when using a library with few stars, issues and pull requests, but I would certainly recommend starting there (then if things don't go well, it may make sense to try hitting Stripe's http API directly, since it's nice & easy to use). That said, I've been surprised to find that some popular, heavily-used LÖVE libraries don't have a lot of stars, issues and pull requests on github, at least not compared to repos in the node or client-side Javascript communities. I think that may be partially due to the lua/LÖVE community being smaller than these other communities and also due to the heavy use of these forums, instead of github issues & stars, for discussion & recommendations.
User avatar
peterrust
Prole
Posts: 42
Joined: Thu Dec 29, 2016 8:49 pm
Location: Bellingham, WA, USA
Contact:

Re: PayPal

Post by peterrust »

zorg wrote:the bog standard one-time up-front payment
In case anyone else is wondering, "bog standard" is slang for "ordinary", sounds like it's popular in UK English (http://www.bbc.co.uk/worldservice/learn ... ge25.shtml).

For the record, I would personally recommend this (one-time up-front payment) over in-game payments, though I suppose it does depend a bit on your target market (in-game payments seem more accepted on mobile than on steam, for instance). My impression is that in general a one-time payment is preferred over in-game payments -- I certainly prefer that -- and that the pendulum is starting to swing in the game industry away from the emphasis on micropayments back to traditional one-time up-front payments... but that's just my vague impression, I'm no authority on the subject.
User avatar
wazoowazoo
Prole
Posts: 16
Joined: Sun Jan 22, 2017 2:47 pm

Re: PayPal

Post by wazoowazoo »

Thank you a lot i think i will have to wait until my game is finished, so i'll have a lot of time to think about this.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 88 guests