Jump to content


Photo

integrating a payment gateway


  • Please log in to reply
5 replies to this topic

#1 etsonarantes

etsonarantes

    Newbie

  • New Members
  • Pip
  • 2 posts

Posted 12 November 2013 - 12:52 PM

Hey everyone, i have coded a custom script but now im trying to create a payment gateway for it, but I dont know how to start and how can I know if the payment has been made? can anyone show me how to do this.

Thank you :)



#2 requinix

requinix

    Hopeless Member

  • Moderators
  • 5,910 posts
  • LocationWA

Posted 12 November 2013 - 03:39 PM

If you're not sure how to make a payment gateway then you probably shouldn't. There are plenty of services out there that have done the work for you already.

#3 dalecosp

dalecosp

    Advanced Member

  • Members
  • PipPipPip
  • 300 posts
  • LocationJoplin, MO

Posted 12 November 2013 - 06:20 PM

If you're not sure how to make a payment gateway then you probably shouldn't. There are plenty of services out there that have done the work for you already.

I'd second that.  

If you're looking for services, PayPal would love to handle it, Amazon.com has Amazon Payments; a standard setup is a provider like Authorize.net and a merchant account at your local bank.


"God doesn't play dice" --- Albert Einstein
"Perl is hardly a paragon of beautiful syntax." --- Weedpacket

#4 etsonarantes

etsonarantes

    Newbie

  • New Members
  • Pip
  • 2 posts

Posted 12 November 2013 - 08:27 PM

Thank for your time guys :)

@dalescop so you think paypal would help me integrate their payment gateway in my script? what about authorize?



#5 cyberRobot

cyberRobot

    Advanced Member

  • Gurus
  • 1,571 posts

Posted 13 November 2013 - 06:57 AM

Thank for your time guys :)

@dalescop so you think paypal would help me integrate their payment gateway in my script? what about authorize?

 

Authorize.Net provides documentation online for integrating their service. Perhaps your questions will be answered in the FAQ:

http://developer.authorize.net/faqs/

 

...or maybe in their training videos:

http://developer.aut...e.net/training/

 

 

I haven't used PayPal in this capacity before, but I would imagine they have similar resources available.


Blogging about PHP and other web development topics at ScorpBytes.com

#6 neil.johnson

neil.johnson

    Advanced Member

  • Gurus
  • 3,580 posts
  • LocationLiverpool, UK

Posted 13 November 2013 - 10:00 AM

I have integrated Paypal Website Payments Pro (Direct Payments & Express Checkout), including Cardinal Commerce (used for 3D secure transactions i.e Verified by Visa, MasterCard SecureCode) many times. This is used for taking card payments on your own website so you will need an SSL certificate. There are code examples available that you can download, however they are nowhere near the finished article that you should put into a production website. I would not recommend even attempting to integrate this without reading all the documentation thoroughly.

 

On the other hand, if you would like to integrate a payment gateway where a user leaves your site, makes a payment (lets say, on Paypal's website) and then is returned to your website once a payment has been made, then this is not too difficult. Paypal have IPN (Instant payment notification). Basically you create a form that when submitted, sends a user to Paypal. The form contains hidden fields containing the amount, currency code, etc. You also create a page on your site that Paypal contacts (in the background) when a payment is made. This page is waiting for POST data containing certain things. If it sends a success message to the page then you can process the customers order via the same page. Most payment gateways work in the same way.

 

If you still don't feel comfortable attempting an integration then there will be web companies that will do it for you. That being said, as you site is a custom script your code maybe up for scrutiny. Most companies offering payment gateway integrations do it for off-the-shelf scripts such as osCommerce, Joomla, Drupal, Zen Cart, etc

 

I wouldn't bank on getting help from Paypal in terms of coding. Most of their code examples are written by third party developers. However, if you can understand the examples it is pretty straight forward to bastardize them to fit your script. You must read all documentation so you clearly understand how the payments process works and the data it expects to receive, and the responses it posts back to your website.


Edited by neil.johnson, 13 November 2013 - 10:05 AM.

To start, press any key. Where's the 'Any' key?





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com