Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6174735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:48:06+00:00 2026-05-23T23:48:06+00:00

I am using CakePHP 1.3.10 version and want to integrate PayPal IPN for Payment

  • 0

I am using CakePHP 1.3.10 version and want to integrate PayPal IPN for Payment Process.

I have found some ready made plug-ins though not working properly and returning bunch of errors.

I would like your suggestions, Any body in community using the same with success and any tutorial to integrate in easy steps.

Your response would be appreciated.

Thanks !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T23:48:07+00:00Added an answer on May 23, 2026 at 11:48 pm

    I used Paypal IPN with cake before, and it’s simple enough to not have to reply on a plugin. Are you using that to track getting payment in a cake app? You can create the paypal form/button in your paypal account, set the url callback so paypal can notify you. Create a table in DB if you want to record the info paypal sends you. Have a method in the controller to handle the POST data from paypal. Here’s my code example:

    function blah() {
       $this->autoRender = false;
       // post back to PayPal system to validate
       $req = 'cmd=_notify-validate';
       foreach ($_POST as $key => $value) {
          $value = urlencode(stripslashes($value));
          $req .= "&$key=$value";
       }
       $header = "POST /cgi-bin/webscr HTTP/1.0\r\n";
       $header .= "Content-Type: application/x-www-form-urlencoded\r\n";
       $header .= "Content-Length: " . strlen($req) . "\r\n\r\n";
       $fp = fsockopen('ssl://www.paypal.com', 443, $errno, $errstr, 30);
       if (!$fp) {// HTTP ERROR, we should record the data still..?
       } else {
          fputs($fp, $header . $req);
          while (!feof($fp)) {
             $res = fgets($fp, 1024);
             if (strcmp($res, "VERIFIED") == 0) {// verified from paypal, processing...
             } else if (strcmp($res, "INVALID") == 0) {
                // oh no, someone is hijacking us...
             }
          }
          fclose($fp);
       }
    }
    

    What fields to have in the table depends on what you want to keep. Look up the IPN API, and you can setup sandbox testing with paypal.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using cakephp, I have a generic address table, which I want to link to
I am using cakephp framework to build my application. I want that, whenever a
I am using CakePHP framework with MySQL database and I have problem in saving
I'm using CakePHP but it's a question about the MVC pattern. I have in
I just started using CakePHP for a small project. I have rails experience, and
After I uploaded my application created using cakephp, I found out that I had
I am working on a CMS using CakePHP and I want to create a
I am using cakephp 1.26. I am doing some self-learning about Pagination in CakePHP.
We are using Cakephp framework version 2.0.6 The site is supposed to allow an
I'm writing a simple web application using CakePHP version 1.2 (the latest) and am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.