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 835015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:45:35+00:00 2026-05-15T04:45:35+00:00

I already have an express checkout integrated with my Codeigniter application. Now I want

  • 0

I already have an express checkout integrated with my Codeigniter application. Now I want to integrate seamless paypal where I collect the CC information and pass it to Paypal (via backend) and once everything is approved, my application shows that to the user. All this with out ever going to Paypal’s website.

I know that Paypal gives a bunch of sample code but they have so many different products that advertise to do the same thing.

Is there any wrapper library in PHP that I can use for handling all this?

What sort of design decision is involved in migrating to such system? Would I need SSL certificates for this?

  • 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-15T04:45:36+00:00Added an answer on May 15, 2026 at 4:45 am

    I built an e-commerce site in CodeIgniter, also doing seamless Paypal integration.

    There didn’t seem to be any suuuuuper-pretty object-oriented wrappers out there when I did my hunting, but I did notice some good attempts.

    My solution ended up being a bit bland. I downloaded the PHP API from here:
    https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_PHP_NVP_Samples.zip

    I saved the CallerService.php file as application/helpers/paypal_helper.php and added it to application/config/autoload.php to pull it into the app.

    Now, CallerService.php requires constants.php, so you either need to copy and paste it in, or include the constants.php file in your helpers directory. I just copied and pasted. Then, be sure to configure all the constants for your account.

    Once that’s set up, my code just looked like this:

      $nvp_query_string = '&PAYMENTACTION=Sale'
                    . '&AMT='.urlencode($order->total)
                    . '&CREDITCARDTYPE='.urlencode($this->input->post('credit_card_type'))
                    . '&ACCT='.urlencode($this->input->post('acct'))
                    . '&EXPDATE='.urlencode(str_pad($this->input->post('exp_date_month'), 2, '0', STR_PAD_LEFT).'20'.$this->input->post('exp_date_year'))
                    . '&CVV2='.urlencode($this->input->post('cvv2_number'))
                    . '&FIRSTNAME='.urlencode($first_name)
                    . '&LASTNAME='.urlencode($last_name)
                    . '&STREET='.urlencode($order->billing_address_1)
                    . '&CITY='.urlencode($order->billing_city)
                    . '&STATE='.urlencode($order->billing_state)
                    . '&ZIP='.urlencode($order->billing_zip)
                    . '&COUNTRYCODE=US&CURRENCYCODE=USD';
    
      $response = hash_call('doDirectPayment', $nvp_query_string);
      if (strpos(strtoupper($response['ACK']), 'SUCCESS') !== false) {
        // Product purchase was successful.
      }
      else {
        // Product purchase was unsuccessful.
        // The Paypal response will be in $response['ACK'].
        // The Paypal error message to show the customer will be in $response['L_LONGMESSAGE0'].
      }
    

    It’s not too elegant, but it definitely works well.

    Also, you DEFINITELY need an SSL certificate. These can be purchased for $30 or so for a single domain. They are a little difficult to set up at first, but you can’t skip this step. SSL protects transmission between the customer’s computer and your server, so their CC info can’t be read as it passes through all the servers and routers (or sniffed out through wifi) along the way. So, just make sure that, on the form you use to take CC info, the form submits to https:// and not an unsecured http://.

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

Sidebar

Related Questions

I already have an application built in asp.net 3.5 and now I want to
I already have VS c# express installed. And now I want to install VS
We already have the database with real data inside. Now we want to build
I already have an enterprise Java EE application. I want expose some of the
I want to install SQL Server 2008 express. I have already Visual Studio 2008
I already have code which lazy loads scripts on request. My issue now is
I already have an iPhone application (version 1.0) available in the App Store and
I have already setup syncing with Microsoft Sync Framework, and now I need to
I have already done the following. I have VS Express 2010 (trial) installed on
i want to learn C++; and i already have a compiler. i already know

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.