PHP code example of sharik709 / laravel-transferwise
1. Go to this page and download the library: Download sharik709/laravel-transferwise 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/ */
sharik709 / laravel-transferwise example snippets
$bankDetails = [
bankName: 'State bank of India',
BanCode: '00000', // aka swift code
accountNumber: '1234567789',
holderName: 'John Doe',
additionalDetails = [] // some countries bank may ask something different. So, That will be here.
]
$user->transferwise()->receipient()->create([
'currency' => 'INR',
'type' => 'iban',
'accountHolderName' => 'John Doe',
'legalType' => 'PRIVATE', // PRIVATE OR BUSINESS
'details' => [ //Currency specific fields
'sortCode' => TEST, //Recipient bank sort code (GBP example)
'accountNumber' => '123456789'
]
])
$transfer->getETA();
OR
$user->transferwise()->transfer(<transfer-id>)->getETA()
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.