Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrating PayPal checkout

I have a shop system that integrates PayPal in the usual way, i.e. the user is redirected to paypal.com to log in and confirm the payment after which the user is directed back at a confirmation page in my shop system.

Now my customer is asking if the entire process can be run inside the shop itself.

I have two or three ideas about this (not that it really matters, but the site is PHP based):

  1. Use cURL functions serverside to talkto paypal, show all required forms inside the shop pages. Probably not a good idea.

  2. Use an <iframe> to display the paypal pages as they are. Off the top of my had this should work fine but wouldn't be as pretty.

  3. Use some kind of PayPal API. I've only seen something that seems to require a Pro account (for the seller) with PayPal and does only work with credit card payments.

I'm not an expert on PayPal integration, the current solution came with the shop software. If any of you guys could shed some light on the pros, cons and impossibles I'd be very grateful.

like image 586
Lasar Avatar asked Nov 07 '08 12:11

Lasar


2 Answers

This is from a few months ago, so may have been changed, but from what I remember Paypals APIs do not allow you to integrate a Paypal interface completely into a shop. This is because once you are off the paypal servers they lose control and can be liable for misuse of the API.

From what I remember of it using Paypal for payments does require the user to log into their paypal account and so Paypal do not want this under the control of any other site except their own.

like image 83
Jimoc Avatar answered Sep 19 '22 11:09

Jimoc


Paypal offers Direct Payment as part of their API. This allows you to process a payment without visiting the PayPal website. As noted in the document, you must also offer Express Checkout (the redirect to Paypal), if you use Direct Payment.

like image 32
Corbin March Avatar answered Sep 18 '22 11:09

Corbin March