Skip to content
This repository has been archived by the owner on Dec 12, 2019. It is now read-only.

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
wzul committed Sep 21, 2018
1 parent cf67b8c commit 5e87fea
Show file tree
Hide file tree
Showing 25 changed files with 50 additions and 50 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ By it's design, the Connect class are able to determine the API Key is belong to
<?php

use Billplz\Connect;
$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();

// Or manually set the mode
$connnect = new Connect('4e49de80-1670-4606-84f8-2f1d33a38670');
$connect = new Connect('4e49de80-1670-4606-84f8-2f1d33a38670');
$connect->setMode(true);
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$parameter = array(
Expand All @@ -16,7 +16,7 @@
'organization'=>'true'
);

$billplz = new API($connnect);
$billplz = new API($connect);
$response = $billplz->createBankAccount($parameter);

echo '<pre>'.print_r($response, true).'</pre>';
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$billplz = new API($connnect);
$billplz = new API($connect);
$response = $billplz->getBankAccount('9230248');

echo '<pre>'.print_r($response, true).'</pre>';
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$billplz = new API($connnect);
$billplz = new API($connect);
$response = $billplz->getBankAccountIndex(array('account_numbers'=>['9230248','300']));

echo '<pre>'.print_r($response, true).'</pre>';
4 changes: 2 additions & 2 deletions examples/v3/bank-direct-feature/bypass-billplz-bill-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$billplz = new API($connnect);
$billplz = new API($connect);
$fpxBanks = $billplz->toArray($billplz->getFpxBanks());
foreach ($fpxBanks[1]['banks'] as $bank) {
if ($bank['active']) {
Expand Down
4 changes: 2 additions & 2 deletions examples/v3/bank-direct-feature/get-fpx-banks.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$billplz = new API($connnect);
$billplz = new API($connect);
$response = $billplz->getFpxBanks();

echo '<pre>'.print_r($response, true).'</pre>';
4 changes: 2 additions & 2 deletions examples/v3/bills/create-a-bill.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

/*
Expand Down Expand Up @@ -46,7 +46,7 @@
*/
$deliver = '3';

$billplz = new API($connnect);
$billplz = new API($connect);
//$response = $billplz->createBill($parameter);
//$response = $billplz->createBill($parameter, $optional) ;
$response = $billplz->createBill($parameter, $optional, $deliver) ;
Expand Down
4 changes: 2 additions & 2 deletions examples/v3/bills/delete-a-bill.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$billplz = new API($connnect);
$billplz = new API($connect);
$response = $billplz->deleteBill('cjywga');

echo '<pre>'.print_r($response, true).'</pre>';
4 changes: 2 additions & 2 deletions examples/v3/bills/get-a-bill.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$billplz = new API($connnect);
$billplz = new API($connect);
$response = $billplz->getBill('cjywga');

echo '<pre>'.print_r($response, true).'</pre>';
4 changes: 2 additions & 2 deletions examples/v3/collections/activate-a-collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$billplz = new API($connnect);
$billplz = new API($connect);
$response = $billplz->activateCollection('bbrgyvvo');

echo '<pre>'.print_r($response, true).'</pre>';
4 changes: 2 additions & 2 deletions examples/v3/collections/deactivate-a-collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$billplz = new API($connnect);
$billplz = new API($connect);
$response = $billplz->deactivateCollection('bbrgyvvo');

echo '<pre>'.print_r($response, true).'</pre>';
4 changes: 2 additions & 2 deletions examples/v3/payment-methods/get-payment-method-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$billplz = new API($connnect);
$billplz = new API($connect);
$response = $billplz->getPaymentMethodIndex('bbrgyvvo');

echo '<pre>'.print_r($response, true).'</pre>';
4 changes: 2 additions & 2 deletions examples/v3/payment-methods/update-payment-methods.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$parameter = array(
Expand All @@ -17,7 +17,7 @@
)
);

$billplz = new API($connnect);
$billplz = new API($connect);
$response = $billplz->updatePaymentMethod($parameter);

echo '<pre>'.print_r($response, true).'</pre>';
4 changes: 2 additions & 2 deletions examples/v3/registration-check/by-bank-account-number.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$billplz = new API($connnect);
$billplz = new API($connect);
/* This feature is to check for registered (Merchant) account with Billplz */
$response = $billplz->bankAccountCheck('300');

Expand Down
4 changes: 2 additions & 2 deletions examples/v3/transactions/get-transaction-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$bill_id = 'cjywga';

$billplz = new API($connnect);
$billplz = new API($connect);
$response = $billplz->getTransactionIndex($bill_id, array('page'=>'1'));

echo '<pre>'.print_r($response, true).'</pre>';
4 changes: 2 additions & 2 deletions examples/v4/collections/create-a-collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$billplz = new API($connnect);
$billplz = new API($connect);

$collectionName = 'My First Collection';

Expand Down
4 changes: 2 additions & 2 deletions examples/v4/collections/create-an-open-collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$parameter = array(
Expand Down Expand Up @@ -36,7 +36,7 @@
)
);

$billplz = new API($connnect);
$billplz = new API($connect);
$response = $billplz->createOpenCollection($parameter, $optional);
//$response = $billplz->createOpenCollection($parameter);

Expand Down
4 changes: 2 additions & 2 deletions examples/v4/collections/get-a-collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$billplz = new API($connnect);
$billplz = new API($connect);
$response = $billplz->getCollection('_n3gnf0p');

echo '<pre>'.print_r($response, true).'</pre>';
4 changes: 2 additions & 2 deletions examples/v4/collections/get-an-open-collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$billplz = new API($connnect);
$billplz = new API($connect);
$response = $billplz->getOpenCollection('cqpn0khm');

echo '<pre>'.print_r($response, true).'</pre>';
4 changes: 2 additions & 2 deletions examples/v4/collections/get-collection-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$billplz = new API($connnect);
$billplz = new API($connect);
$response = $billplz->getCollectionIndex();
//$response = $billplz->getCollectionIndex(array('page'=>'1', 'status'=>'active'));

Expand Down
4 changes: 2 additions & 2 deletions examples/v4/collections/get-open-collection-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$billplz = new API($connnect);
$billplz = new API($connect);
$response = $billplz->getOpenCollectionIndex();
//$response = $billplz->getOpenCollectionIndex(array('page'=>'1', 'status'=>'active'));

Expand Down
4 changes: 2 additions & 2 deletions examples/v4/mpi-collections/create-a-mpi-collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$billplz = new API($connnect);
$billplz = new API($connect);
$response = $billplz->createMPICollection('Satu');

echo '<pre>'.print_r($response, true).'</pre>';
4 changes: 2 additions & 2 deletions examples/v4/mpi-collections/get-mpi-collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$billplz = new API($connnect);
$billplz = new API($connect);
$response = $billplz->getMPICollection('ul9ltyq4');

echo '<pre>'.print_r($response, true).'</pre>';
4 changes: 2 additions & 2 deletions examples/v4/mpi/create-a-mpi.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$parameter = array(
Expand All @@ -23,7 +23,7 @@
'recipient_notification' => 'false'
);

$billplz = new API($connnect);
$billplz = new API($connect);
$response = $billplz->createMPI($parameter);
//$response = $billplz->createMPI($parameter,$optional);

Expand Down
4 changes: 2 additions & 2 deletions examples/v4/mpi/get-a-mpi.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
use Billplz\API;
use Billplz\Connect;

$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
//$connect->setMode(true); // true: staging | false: production (default)

$billplz = new API($connnect);
$billplz = new API($connect);
$response = $billplz->getMPI('n139qbmz');

echo '<pre>'.print_r($response, true).'</pre>';

0 comments on commit 5e87fea

Please sign in to comment.