PHP code example of quetzal-studio / laravel-flip
1. Go to this page and download the library: Download quetzal-studio/laravel-flip library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
quetzal-studio / laravel-flip example snippets
$account = \QuetzalStudio\Flip\Factories\BankAccountInquiryFactory::make([
"account_number" => "1122333301",
"bank_code" => "bni",
"inquiry_key" => \Illuminate\Support\Str::random(8),
]);
Flip::bankAccountInquiry($account);
$payload = \QuetzalStudio\Flip\Factories\MoneyTransferFactory::make([
'account_number' => '1122333300',
'bank_code' => 'bni',
'amount' => '10000',
'remark' => 'some remark',
'recipient_city' => '391',
'beneficiary_email' => '[email protected] ,[email protected] '
]);
Flip::moneyTransfer($idempotencyKey = 'KEY1000', $payload);
$payload = \QuetzalStudio\Flip\Factories\SpecialMoneyTransferFactory::make([
'account_number' => '1122333301',
'bank_code' => 'bni',
'amount' => '10000',
'remark' => 'some remark',
'recipient_city' => '391',
'sender_country' => 100252,
'sender_place_of_birth' => 391,
'sender_date_of_birth' => '1992-01-01',
'sender_identity_type' => 'nat_id',
'sender_name' => 'John Doe',
'sender_address' => 'Some Address Street 123',
'sender_identity_number' => '123456789',
'sender_job' => 'entrepreneur',
'direction' => 'DOMESTIC_SPECIAL_TRANSFER',
'beneficiary_email' => '[email protected] ,[email protected] '
]);
Flip::specialMoneyTransfer($idempotencyKey = 'KEY1000', $payload);