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

Commit

Permalink
Removed default API Key and email
Browse files Browse the repository at this point in the history
  • Loading branch information
wzul committed Sep 30, 2018
1 parent 5e87fea commit 0a7a4df
Show file tree
Hide file tree
Showing 25 changed files with 33 additions and 33 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;
$connect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();
$connect = (new Connect('<api-key-here>'))->detectMode();

// Or manually set the mode
$connect = new Connect('4e49de80-1670-4606-84f8-2f1d33a38670');
$connect = new Connect('<api-key-here>');
$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;

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

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

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

$billplz = new API($connect);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Billplz\API;
use Billplz\Connect;

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

$billplz = new API($connect);
Expand Down
6 changes: 3 additions & 3 deletions examples/v3/bank-direct-feature/bypass-billplz-bill-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Billplz\API;
use Billplz\Connect;

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

$billplz = new API($connect);
Expand All @@ -18,8 +18,8 @@
}

$parameter = array(
'collection_id' => 'salahpulok',
'email'=>'wan@billplz.com',
'collection_id' => '<collection-id-here>',
'email'=>'youremail@gmail.com',
'mobile'=>'0141234567',
'name'=>'Lol',
'amount'=>'200',
Expand Down
2 changes: 1 addition & 1 deletion examples/v3/bank-direct-feature/get-fpx-banks.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Billplz\API;
use Billplz\Connect;

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

$billplz = new API($connect);
Expand Down
6 changes: 3 additions & 3 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;

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

/*
Expand All @@ -19,8 +19,8 @@
*/

$parameter = array(
'collection_id' => 'salahpulok',
'email'=>'wan@billplz.com',
'collection_id' => '<collection-id-here>',
'email'=>'youremail@gmail.com',
'mobile'=>'0141234567',
'name'=>'Lol',
'amount'=>'200',
Expand Down
2 changes: 1 addition & 1 deletion examples/v3/bills/delete-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;

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

$billplz = new API($connect);
Expand Down
2 changes: 1 addition & 1 deletion examples/v3/bills/get-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;

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

$billplz = new API($connect);
Expand Down
2 changes: 1 addition & 1 deletion examples/v3/collections/activate-a-collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Billplz\API;
use Billplz\Connect;

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

$billplz = new API($connect);
Expand Down
2 changes: 1 addition & 1 deletion examples/v3/collections/deactivate-a-collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Billplz\API;
use Billplz\Connect;

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

$billplz = new API($connect);
Expand Down
2 changes: 1 addition & 1 deletion examples/v3/payment-methods/get-payment-method-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Billplz\API;
use Billplz\Connect;

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

$billplz = new API($connect);
Expand Down
2 changes: 1 addition & 1 deletion 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;

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

$parameter = array(
Expand Down
2 changes: 1 addition & 1 deletion examples/v3/registration-check/by-bank-account-number.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Billplz\API;
use Billplz\Connect;

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

$billplz = new API($connect);
Expand Down
2 changes: 1 addition & 1 deletion examples/v3/transactions/get-transaction-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Billplz\API;
use Billplz\Connect;

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

$bill_id = 'cjywga';
Expand Down
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,7 +7,7 @@
use Billplz\API;
use Billplz\Connect;

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

$billplz = new API($connect);
Expand All @@ -18,7 +18,7 @@
/* Does not supported to post logo */
'split_header' => true,
'split_payments' => array(
['split_payments[][email]' => 'wan@billplz.com'],
['split_payments[][email]' => 'youremail@gmail.com'],
['split_payments[][fixed_cut]' => '100'],
['split_payments[][variable_cut]' => ''],
['split_payments[][stack_order]' => '0'],
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;

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

$parameter = array(
Expand All @@ -25,7 +25,7 @@
'photo' => '',
'split_header' => true,
'split_payments' => array(
['split_payments[][email]' => 'wan@billplz.com'],
['split_payments[][email]' => 'youremail@gmail.com'],
['split_payments[][fixed_cut]' => '100'],
['split_payments[][variable_cut]' => ''],
['split_payments[][stack_order]' => '0'],
Expand Down
2 changes: 1 addition & 1 deletion examples/v4/collections/get-a-collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Billplz\API;
use Billplz\Connect;

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

$billplz = new API($connect);
Expand Down
2 changes: 1 addition & 1 deletion examples/v4/collections/get-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;

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

$billplz = new API($connect);
Expand Down
2 changes: 1 addition & 1 deletion examples/v4/collections/get-collection-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Billplz\API;
use Billplz\Connect;

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

$billplz = new API($connect);
Expand Down
2 changes: 1 addition & 1 deletion examples/v4/collections/get-open-collection-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Billplz\API;
use Billplz\Connect;

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

$billplz = new API($connect);
Expand Down
2 changes: 1 addition & 1 deletion examples/v4/mpi-collections/create-a-mpi-collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Billplz\API;
use Billplz\Connect;

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

$billplz = new API($connect);
Expand Down
2 changes: 1 addition & 1 deletion examples/v4/mpi-collections/get-mpi-collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Billplz\API;
use Billplz\Connect;

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

$billplz = new API($connect);
Expand Down
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;

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

$parameter = array(
Expand All @@ -18,7 +18,7 @@
'total' => '200'
);
$optional = array(
'email' => 'wan@billplz.com',
'email' => 'youremail@gmail.com',
'notification'=>'false',
'recipient_notification' => 'false'
);
Expand Down
2 changes: 1 addition & 1 deletion examples/v4/mpi/get-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;

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

$billplz = new API($connect);
Expand Down

0 comments on commit 0a7a4df

Please sign in to comment.