First Data Global Gateway PHP API Service

Follow @gabrielva

PHP Wrapper to post api calls to the first data payment processor.

Supports all transcation types.
Supports Transarmor Token for charging credit cards more than once without storing the actual card number.

Documentation:
https://firstdata.zendesk.com/entries/407571-First-Data-Global-Gateway-e4-Web-Service-API-Reference-Guide

Examples:

Pre Auth


[gist id=6258558 file=Pre_Auth.php]

Purchase


[gist id=6258558 file=Purchase.php]

Purchase with TransArmor Token


[gist id=6258558 file=Purchase_with_TransArmor_Token.php]

Pre Auth Complete


[gist id=6258558 file=Pre_Auth_Complete.php]

Refund


[gist id=6258558 file=Refund.php]

Void


[gist id=6258558 file=Void.php]

Github Repository

© Vadim Vincent Gabriel Follow @gabrielva 2013

Share Comments

Backbone.js Issue Tracker - Backbone Tracker

I’ve started this project to get familiar with Backbone.js and so far it’s working. I’ve recently fixed the bug where the Issues button was not working after creating an issue and added a new feature: Issue Statuses. The installation process is very simple you just need to fork the project import the schema.sql file and update the db settings under protected/config/main.php.

A screenshot is attached to give you an idea on how this project looks. Next features planned:


  1. Version Management

  2. Manage Statuses (Add/Edit/Delete)

  3. Adding Milestones

  4. Progress bar for issues

  5. Projects

  6. Comments

Share Comments

Bootstrap Wizard With jQuery Validation

Twitter Bootstrap Wizard supports jQuery Validation plugin by default, an example was added to demonstrate a simple case when a form needs to be validated in two different steps.

Example Code:

$(document).ready(function() {
      var $validator = $("#commentForm").validate({
          rules: {
            emailfield: {
              required: true,
              email: true,
              minlength: 3
            },
            namefield: {
              required: true,
              minlength: 3
            },
            urlfield: {
              required: true,
              minlength: 3,
              url: true
            }
          }
        });

          $('#rootwizard').bootstrapWizard({
              'tabClass': 'nav nav-pills',
              'onNext': function(tab, navigation, index) {
                  var $valid = $("#commentForm").valid();
                  if(!$valid) {
                      $validator.focusInvalid();
                      return false;
                  }
              }
          });
});
Share Comments

Twitter Bootstrap Wizard - Enabling, Disabling, Showing, Hiding, Removing Steps

Latest Twitter bootstrap version adds five new methods. You can now do the following:

 


// Disable step
$(‘#disable-step’).on(‘click’, function() {
$(‘#rootwizard’).bootstrapWizard(‘disable’, $(‘#stepid’).val());
});
// Enable step
$(‘#enable-step’).on(‘click’, function() {
$(‘#rootwizard’).bootstrapWizard(‘enable’, $(‘#stepid’).val());
});
// Remove step
$(‘#remove-step’).on(‘click’, function() {
$(‘#rootwizard’).bootstrapWizard(‘remove’, $(‘#stepid’).val(), true);
});
// Show step
$(‘#show-step’).on(‘click’, function() {
$(‘#rootwizard’).bootstrapWizard(‘display’, $(‘#stepid’).val());
});
// Hide step
$(‘#hide-step’).on(‘click’, function() {
$(‘#rootwizard’).bootstrapWizard(‘hide’, $(‘#stepid’).val());
});

Share Comments

Bootstrap Admin Theme - Available Free @ Github

Bootstrap Admin Theme


A generic admin theme built with Bootstrap free for both personal and commercial use.

This is still a work in progress.

Pages:


  • Login

  • Admin Dashboard (Tables, Statistics, Chart, Media Gallery)

  • Full Calendar

  • Statistics (Multiple examples of Pie, Bar, Line charts)

  • Buttons & Icons

  • UI & Interface Elements (Modals, Popovers, Tooltips, Alerts, Notifications, Labels, Progress Bars)


Demo:

http://vinceg.github.com/Bootstrap-Admin-Theme

Github:

https://github.com/VinceG/Bootstrap-Admin-Theme

Share Comments

PHP Console Progress Bar

PHP Console Progress Bar


This class creates and maintains progress bars to be printed to the console. This file is a replica of the ezComponents console progress bar class (@link http://ezcomponents.org/docs/api/latest/ConsoleTools/ezcConsoleProgressbar.html) allows a developer to just use the console progress bar features without the rest of the classes saving all the extra files and classes.

Available Options


  • barChar: Processed progress bar char (Default ‘=’)

  • emptyChar: Empty progress bar char (Default ‘-‘)

  • formatString: Progress bar formatted line that actually displays the processed number, step count, total count, percentage etc.. (Default ‘%act% / %max% [%bar%] %fraction%%’)

  • fractionFormat: Progress bar fraction format (Default ‘%01.2f’)

  • progressChar: Progress bar progress leading char (Default ‘>’)

  • redrawFrequency: Redraw/Update the progress bar every X step(s) (Default: 1)

  • step: Progress bar each advance call will advance X step(s) (Default: 1)

  • width: Progress bar width (Default 100)

  • actFormat: Progress bar current step format (Default ‘%.0f’)

  • maxFormat: Progress bar maximum step format (Default ‘%.0f’)

  • max: Progress bar maximum value (When it reaches 100%) (Default 100)


 


< ?php
require_once(‘ConsoleProgressBar.php’);
// initiate the class with the maximum value being 100
$progress = new ConsoleProgressBar(100);
// Setting options are done using one of the following:
// $progress = new ConsoleProgressBar(100, array(‘step’ => 5, ‘barChar’ => ‘+’));
// $progress->setOptions(array(‘step’ => 5, ‘barChar’ => ‘+’));
// $progress->setOptions(‘step’, 5);
// $progress->options = array(‘step’ => 5);
// Start the progress bar before the actual actions are taken place
$progress->start();
// This is just an example that’s why a simple look is being used
// in real world this can be a db record set process or any other long operation that is being
// done via the cli
for ($i = 0; $i < = 100; $i++) {
// Do the actual processing here
// …..
// …..
// …..
// Advance one step by default
// you can pass a second argument $step which will advance that number of steps
$progress->advance();
// For this example we will just sleep for a second
sleep(1);
}
// Call finish at the end to make sure the bar goes to 100% if it didn’t
$progress->finish();

Fork On Github

Share Comments

Backbone Tracker - Issue Tracker

Backbone.js Issue Tracker


This is a bug/issue tracker written in Backbone.js, jQuery, Underscore.js, Bootstrap and Yii Framework as the backend.

Project is under development and any contribution is welcomed and appricated.

Installation Instructions


  • Fork Repository

  • Change the DB settings under application/protected/config/main.php

  • Import the schema.sql

  • Lunch the appliation through the browser navigating to the index.html file


 

Github Repository

Share Comments

Free Bootstrap Admin Theme - Updated

Bootstrap admin theme was updated today and now includes the following pages:


  • Login

  • Admin Dashboard (Tables, Statistics, Chart, Media Gallery)

  • Full Calendar

  • Statistics (Multiple examples of Pie, Bar, Line charts)

  • Buttons & Icons

  • UI & Interface Elements (Modals, Popovers, Tooltips, Alerts, Notifications, Labels, Progress Bars)


 

Live demo:

http://vinceg.github.com/Bootstrap-Admin-Theme

Share Comments

Bootstrap Admin Theme

A generic admin theme built with Bootstrap free for both personal and commercial use.

This is still a work in progress.

Pages:


  • Login

  • Admin Dashboard


Preview:

Screen Shot 2013-02-03 at 5.38.18 PM

Share Comments

Yii eCommerce - A Look Inside

Here are screenshots taken from the Admin side of the Yii eCommerce Application. All screenshots are self explanatory. Some of the screenshots taken more then once or got deformed due to the Extension used to take those screenshots, just ignore those.

[gallery link=”file” columns=”6” ids=”1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1408,1409,1410,1411,1412”]

Share Comments