Skip to content

Transfer (Payouts)

Abraham Olaobaju edited this page Aug 22, 2023 · 4 revisions

Overview

Transfer funds from your Flutterwave Balances to Bank Accounts in an instant.

Initiating a Transfer

how to Initiate a transfer with Flutterwave.

use Flutterwave\Util\Currency;

$data = [
  "amount" => 2000,
  "currency" => Currency::NGN,
  "tx_ref" => "TEST-".uniqid().time()."_PMCKDU_1",
  "redirectUrl" => "https://www.example.com",
  "additionalData" => [
       "account_details" => [
           "account_bank" => "044",
           "account_number" => "0690000032",
           "amount" => "2000",
           "callback" => null
       ],
       "narration" => "Good Times in the making",
  ],
 ];

 $customerObj = $this->service->customer->create([
    "full_name" => "Time Squad",
    "email" => "[email protected]",
    "phone" => "+234900000001"
 ]);
 $data['customer'] = $customerObj;
 $payload  = $this->service->payload->create($data);
 $response = $this->service->initiate($payload);
 print_r($response);

Retry a Transfer

how to retry a previously failed transfer.

Clone this wiki locally