Payment Gateway

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
thiscatis
Forum Contributor
Posts: 434
Joined: Thu Jul 20, 2006 11:00 am

Payment Gateway

Post by thiscatis »

I have a custom build shopping cart system.
Now I want to add paypal to the payment gateways.
I can't use the paypal options (paypal shopping cart etc..) because I already have this.
Is there any way to make a gateway that sends the information of the shopping cart
(only total price) to a paypal payment page ?
User avatar
Skittlewidth
Forum Contributor
Posts: 389
Joined: Wed Nov 06, 2002 9:18 am
Location: Kent, UK

Post by Skittlewidth »

Yes, and its all in the rather hefty PayPal user guide... give me a sec and I might even be able to remember what chapter its in!
User avatar
Skittlewidth
Forum Contributor
Posts: 389
Joined: Wed Nov 06, 2002 9:18 am
Location: Kent, UK

Post by Skittlewidth »

Assuming you are registered on the developer.paypal.com site you have access to all the resources you need to find out how to do this.

I suggest you look at:
https://www.paypal.com/IntegrationCente ... ndard.html
which shows you how you pass information in a form through to paypal from your site with or without their "pay now" button.

That should at least give you an idea of how to acheive what you're after.

Oh, and you might want to read up on IPN if you want your site to perform any operations based on the success or failiure of the payment.
thiscatis
Forum Contributor
Posts: 434
Joined: Thu Jul 20, 2006 11:00 am

Post by thiscatis »

thanks mate!
It's working :)
Post Reply