4 Replies - 1300 Views - Last Post: 29 August 2012 - 11:57 PM Rate Topic: -----

#1 racidon  Icon User is offline

  • D.I.C Head

Reputation: 59
  • View blog
  • Posts: 172
  • Joined: 27-August 11

Online Store PHP-Paypal

Posted 28 August 2012 - 10:51 PM

Hi guys,

I was wondering as I've spent the last 8+ hours searching for tutorials on how to develop a paypal shop on my site using php.
Sadly however the only ones I've been able to come across are for either subscriptions or downloadable content, I run an online game and want to sell in-game currency and that is all. The users then use the in game currency to purchase in game items.

Now we already have the simple method setup, like "pay now receive latter", but for payments that clear right away we would like for the php script to automatically add the currency to the user's account. Any good tutorials (not copy/paste code) that any one suggests?

Is This A Good Question/Topic? 0
  • +

Replies To: Online Store PHP-Paypal

#2 KingCuddles  Icon User is offline

  • D.I.C Regular

Reputation: 176
  • View blog
  • Posts: 496
  • Joined: 20-December 08

Re: Online Store PHP-Paypal

Posted 29 August 2012 - 04:15 AM

I have worked with PayPal a fair bit and this should be fairly simple.

All your going to need is to generate a form/button which will ping off to PayPal, they will then accept/authorise/take payment and return the user to a call back of your choosing. On this call back, you just check to see if the payment was successful, and then add x amount of credits to said users account.

PayPal have some fairly good documentation, an integration wizard and plenty of sample code.

This post has been edited by KingCuddles: 29 August 2012 - 04:20 AM

Was This Post Helpful? 4
  • +
  • -

#3 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5309
  • View blog
  • Posts: 27,210
  • Joined: 10-May 07

Re: Online Store PHP-Paypal

Posted 29 August 2012 - 04:34 AM

View PostKingCuddles, on 29 August 2012 - 07:15 AM, said:

PayPal have some fairly good documentation

Fairly good? The PayPal API is by far the easiest API I've ever worked with, & it is because of their stellar documentation.

If you can do memberships, you can code any type of payment structure.

My advice, build your store 1st, worry about the payment gateway 2nd.
Was This Post Helpful? 4
  • +
  • -

#4 RudiVisser  Icon User is offline

  • .. does not guess solutions
  • member icon

Reputation: 1003
  • View blog
  • Posts: 3,562
  • Joined: 05-June 09

Re: Online Store PHP-Paypal

Posted 29 August 2012 - 04:48 AM

View Postno2pencil, on 29 August 2012 - 12:34 PM, said:

My advice, build your store 1st, worry about the payment gateway 2nd.

This.

Take PayPal completely out of the picture and build an abstract payment interface so that you're able to implement any backend provider in the future.
Was This Post Helpful? 2
  • +
  • -

#5 racidon  Icon User is offline

  • D.I.C Head

Reputation: 59
  • View blog
  • Posts: 172
  • Joined: 27-August 11

Re: Online Store PHP-Paypal

Posted 29 August 2012 - 11:57 PM

View PostKingCuddles, on 29 August 2012 - 04:15 AM, said:

I have worked with PayPal a fair bit and this should be fairly simple.

All your going to need is to generate a form/button which will ping off to PayPal, they will then accept/authorise/take payment and return the user to a call back of your choosing. On this call back, you just check to see if the payment was successful, and then add x amount of credits to said users account.

PayPal have some fairly good documentation, an integration wizard and plenty of sample code.

The integration wizard is great for learning how it all works. I never knew it existed, sadly paypal being as big as it is, is poorly organised when it comes to their site(s). As for their documentation it contains a lot of broken links that only further frustrated me :/ thus I gave up on the docs and wanted tuts xD
I'll be taking a look through all the steps and post my results =]
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1