Advanced Search

Results 1 to 5 of 5

Thread: CakePHP

  1. #1
    Join Date
    Apr 2012
    Posts
    81
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default CakePHP

    I am new to CakePHP. I do need to integrate First Data Payment Gateway in my project.
    I have downloaded the plugin from here : https://github.com/chronon/ggapi

    I dont know how to use this plugin, can anyone help me to use this plugin. ?

    Thanks in advance for any help.

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,624
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Your question is unclear.
    Please provide more information, and be as specific as possible.
    • What do you want to accomplish?
    • What have you already tried?
    • What problems did you encounter?

    Please be sure that you have included all relevant code and/or a link to the page in question.
    You might also consider making a reduced test case to help troubleshoot and illustrate your problem.
    We Only Torture the Folks We Don't Like (You're Probably Gonna Be Okay)
    It's a Party in the CIA

  3. #3
    Join Date
    Apr 2012
    Posts
    81
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Thanks for reply traq,


    I am building a Shopping Cart using CakePHP.
    I have already integrated Paypal functionality.
    Now i have to add "First Data Payment Gateway" in the same system, so that the customer can have the choice of "Paypal" or "First Data Payment Gateway" for Payment.

    So for that i google some data and downloaded the Plugin for "First Data Payment Gateway" from this url : https://github.com/chronon/ggapi
    I am new to cakePHP and i don't know how to use this plugin.

    Till now i just downloaded this plugin and put it into my Plugin folder. But i don't know how to proceed now.
    Can you help me to how to use it with the system ?

  4. #4
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,624
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Have you looked at the demo code provided with the plugin?
    PHP Code:
    // attempt the charge (array $data, boolean $testing)
    $response $this->Ggapi->ggProcess($datatrue);

    // update the order table with the response
    if ($response) {
        if (
    $response['r_approved'] == 'APPROVED') {
            
    // merge the response data with the order data
            
    $this->data['Order'] = array_merge($this->data['Order'], $response);
        } else {
            
    // card was DECLINED
            
    $error explode(':'$response['r_error']);
            
    $this->Session->setFlash(
                
    'Your credit card was declined. The message was: '.$error[1],
                
    'modal',
                array(
    'class' => 'modal error')
            );
            
    $this->redirect(array('controller' => 'orders''action' => 'checkout'));
        }
    } else {
        
    // no response from the gateway
        
    $this->Session->setFlash(
            
    'There was a problem connecting to our payment gateway, please try again.',
            
    'modal',
            array(
    'class' => 'modal error')
        );
        
    $this->redirect(array('controller' => 'orders''action' => 'checkout'));

    it looks like this assumes you've already collected the credit card number and other info from the user. I don't know much about CakePHP, so I couldn't say exactly how to integrate it. This isn't a "plugin" in the sense that you can just "plug it in" and expect it to work - you have to write your code to use it.

    I will say that, if you're going to deal with CC info at all, you need to find someone who really knows what they're doing so you can be sure it's secure.

    I'm not being dismissive or condescending - I'm as sincere as I can be.

    Seriously: if you have to ask, about any of it, then you shouldn't be doing it yourself.

    Money is a big responsibility, and a big risk. All of my clients get a strong recommendation for using PayPal instead.
    We Only Torture the Folks We Don't Like (You're Probably Gonna Be Okay)
    It's a Party in the CIA

  5. #5
    Join Date
    Apr 2012
    Posts
    81
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Ok No worries traq.
    I will try to code by my self.
    Anyways Thanks for your time & guidance.

Similar Threads

  1. cakePHP Penny Auction Script Help
    By CustomPowerDesigns in forum PHP
    Replies: 6
    Last Post: 11-04-2010, 03:52 PM
  2. Replies: 0
    Last Post: 05-06-2009, 05:16 PM
  3. cakephp install
    By balusamy in forum PHP
    Replies: 1
    Last Post: 05-04-2009, 10:08 PM
  4. include js,css,thtml - cakephp
    By balusamy in forum PHP
    Replies: 1
    Last Post: 09-01-2008, 07:02 AM
  5. xampp and cakephp
    By balusamy in forum PHP
    Replies: 1
    Last Post: 08-29-2008, 07:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •