iredhostgo-pro
Welcome, Guest
Username Password: Remember me

[Paused]"First Data Global Gateway" payment plugin
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: [Paused]"First Data Global Gateway" payment plugin

[Paused]"First Data Global Gateway" payment plugin 1 year, 5 months ago #15719

  • Sean
  • OFFLINE
  • Moderator
  • Friendly neighbourhood echidna
  • Posts: 2421
I'm posting this knowing that it's a feature for after redSHOP v1.1 comes out, but I wanted to put it down anyway before I forget, and other users have been asking for it.

You can download the First Data Global Gateway API (requires free registration), as well as get access to all user and developer manuals required to understand the payment method and how to make integrations. I also found a general GGAPI integration script which you might also find useful:


The Ggapi component simplifies credit card processing using the First Data/Yourpay/Linkpoint Global Gateway API. It supports testing and live configurations, along with local to remote field mapping.

Once configured, all you have to do is feed the component an array of order data (fields used are up to you) and it will map the fields, build the XML string, submit the string, read the response from the gateway, and convert the response back into an array.
Requirements: PHP5 with curl support and a Global Gateway API account (live or testing).


<?php 
// attempt the charge (array $data, boolean $testing)
$response = $this->Ggapi->ggProcess($data, true);

// 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'));
}
?> 
Last Edit: 1 year, 5 months ago by Nikolaj Grundtvig.

Re: "First Data Global Gateway" payment plugin 1 year, 5 months ago #15722

i took a note of this..

please bunmp it when redSHOP 1.1 is out

Re: [Paused]"First Data Global Gateway" payment plugin 7 months, 1 week ago #45113

Was this ever implemented?
  • Page:
  • 1
Time to create page: 0.21 seconds