jimleeder123 Posted July 6, 2015 Share Posted July 6, 2015 I have a website which shows lots of products by PHP/mysql database. Currently only cash payments are available. I want to add PayPal in, which I've never done before. Having looked at the integration guides, I found the PayPal payments standard bit but with this you need PayPal's buttons. If you have the add to cart buttons, apparently you need to write out each product into PayPal which shouldn't happen as the products are generated by a while loop so I should only paste the code once, but it looks like this needs to be posted individually for each product. Ideally I'd have the PayPal code only happen if the user chooses PayPal at the cart, and then send them to PayPal. The cart products, prices, options and option prices are all in session arrays. Is this possible? Is there a better way? Quote Link to comment Share on other sites More sharing options...
jcbones Posted July 6, 2015 Share Posted July 6, 2015 Yes, Paypal has an API that handles everything. You send the total amount of the sale, along with the sale items, then the payer approves the sale. I haven't used the new API, as it has been a few years since I did paypal integration. I just looked over the API, and it seems to be more complex than it used to be (payments are now 3 step processes). So, yeah, have fun with that.Things to think about:Do you want Paypal to handle credit card info?If not, does your site have SSL? (it will need to).Anyway, start here http://https://developer.paypal.com/docs/integration/web/accept-paypal-payment/ Quote Link to comment Share on other sites More sharing options...
fastsol Posted July 6, 2015 Share Posted July 6, 2015 Here is a pretty good tutorial on how to use the new api https://www.youtube.com/watch?v=BD1dOWIABe0 Quote Link to comment Share on other sites More sharing options...
jcbones Posted July 6, 2015 Share Posted July 6, 2015 Nice find fastsol, although, I really don't like the way it is set up. A lot of redundant data input, which leads to great chances of data corruption. Quote Link to comment Share on other sites More sharing options...
jimleeder123 Posted July 13, 2015 Author Share Posted July 13, 2015 Theres different methods - express, payments standard etc....what one is best to use? Quote Link to comment Share on other sites More sharing options...
fastsol Posted July 13, 2015 Share Posted July 13, 2015 That question is best left to you based on your needs/wants, but the normal I would say is "payments standard". It really also depends on how much $$ you're going to push through paypal. The payments standard doesn't have a monthly merchant fee, but has higher transaction fees. So if you do lots of $$, then paying a little merchant monthly fee will likely outweigh the savings of lower transaction fees per transaction. Quote Link to comment Share on other sites More sharing options...
jimleeder123 Posted July 14, 2015 Author Share Posted July 14, 2015 Where would you suggest I start looking into PayPal integration considering I have never done it before and have no idea about it? Quote Link to comment Share on other sites More sharing options...
scootstah Posted July 14, 2015 Share Posted July 14, 2015 Google is a start. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.