Skip to content

Commit

Permalink
20210126 deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
securesubmit-buildmaster committed Jan 26, 2021
1 parent bd7bc1a commit 2c07f3f
Show file tree
Hide file tree
Showing 16 changed files with 114 additions and 702 deletions.
7 changes: 3 additions & 4 deletions examples/consumer-authentication/cruise.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
require 'JWT.php';

use GlobalPayments\Api\PaymentMethods\CreditCardData;
use GlobalPayments\Api\ServicesConfig;
use GlobalPayments\Api\ServicesContainer;
use GlobalPayments\Api\Entities\EcommerceInfo;
use GlobalPayments\Api\ServiceConfigs\Gateways\PorticoConfig;

$_POST = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING);
$_GET = filter_input_array(INPUT_GET, FILTER_SANITIZE_STRING);
Expand All @@ -19,11 +19,10 @@
print_r($_GET);
print '</code></pre>';

$config = new ServicesConfig();
$config = new PorticoConfig();
$config->secretApiKey = 'skapi_cert_MT2PAQB-9VQA5Z1mOXQbzZcH6O5PpdhjWtFhMBoL4A';
$config->serviceUrl = 'https://cert.api2.heartlandportico.com';

ServicesContainer::configure($config);
ServicesContainer::configureService($config);

$card = new CreditCardData();
$card->token = $_GET['heartlandToken'];
Expand Down
2 changes: 1 addition & 1 deletion examples/echeck/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ <h2>Payment Information</h2>

<h2>Check Information</h2>
<div class="form-group">
<label for="check_accountnumber" class="col-sm-2 control-label">Check Number</label>
<label for="check_accountnumber" class="col-sm-2 control-label">Account Number</label>
<div class="col-sm-10">
<input type="text" name="check_accountnumber" />
</div>
Expand Down
9 changes: 3 additions & 6 deletions examples/echeck/process.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,21 @@
require_once ('../../vendor/autoload.php');

use GlobalPayments\Api\Entities\Address;
use GlobalPayments\Api\Entities\Enums\AccountType;
use GlobalPayments\Api\Entities\Enums\CheckType;
use GlobalPayments\Api\Entities\Enums\EntryMethod;
use GlobalPayments\Api\Entities\Enums\SecCode;
use GlobalPayments\Api\PaymentMethods\ECheck;
use GlobalPayments\Api\ServicesConfig;
use GlobalPayments\Api\ServiceConfigs\Gateways\PorticoConfig;
use GlobalPayments\Api\ServicesContainer;

$_POST = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING);
$_GET = filter_input_array(INPUT_GET, FILTER_SANITIZE_STRING);

$config = new ServicesConfig();
$config = new PorticoConfig();
$config->secretApiKey = 'skapi_cert_MTyMAQBiHVEAewvIzXVFcmUd2UcyBge_eCpaASUp0A';
$config->serviceUrl = 'https://cert.api2.heartlandportico.com';
$config->versionNumber = '0000';
$config->developerId = '000000';

ServicesContainer::configure($config);
ServicesContainer::configureService($config);

$address = new Address();
$address->address = $_POST['holder_address_address'];
Expand Down
167 changes: 0 additions & 167 deletions examples/end-to-end/assets/heartland-styles.css

This file was deleted.

18 changes: 9 additions & 9 deletions examples/end-to-end/charge.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@
require_once ('../../vendor/autoload.php');

use GlobalPayments\Api\PaymentMethods\CreditCardData;
use GlobalPayments\Api\ServicesConfig;
use GlobalPayments\Api\ServiceConfigs\Gateways\PorticoConfig;
use GlobalPayments\Api\ServicesContainer;
use GlobalPayments\Api\Entities\Address;

$_POST = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING);
$_GET = filter_input_array(INPUT_GET, FILTER_SANITIZE_STRING);

$config = new ServicesConfig();
$config = new PorticoConfig();
$config->secretApiKey = 'skapi_cert_MTyMAQBiHVEAewvIzXVFcmUd2UcyBge_eCpaASUp0A';
$config->serviceUrl = 'https://cert.api2.heartlandportico.com';

ServicesContainer::configure($config);
ServicesContainer::configureService($config);

$card = new CreditCardData();
$card->token = $_GET['token_value'];
Expand All @@ -28,10 +26,12 @@

try {
$response = $card->charge(15)
->withCurrency('USD')
->withAddress($address)
->withAllowDuplicates(true)
->execute();
->withCurrency('USD')
->withAddress($address)
->withAllowDuplicates(true)
->execute();

// print_r($response);

$body = '<h1>Success!</h1>';
$body .= '<p>Thank you, ' . $_GET['FirstName'] . ', for your order of $15.</p>';
Expand Down
Loading

0 comments on commit 2c07f3f

Please sign in to comment.