Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sub account #77

Open
Justicea83 opened this issue Mar 13, 2022 · 1 comment
Open

Sub account #77

Justicea83 opened this issue Mar 13, 2022 · 1 comment

Comments

@Justicea83
Copy link

How do i create subaccounts like in this docs?

$ https://github.com/Flutterwave/Flutterwave-PHP-v3#subaccount-management

@christianjombo
Copy link
Contributor

christianjombo commented May 27, 2022

You can create Subaccounts like below, ensuring that you provide the properties found on https://developer.flutterwave.com/reference/endpoints/collection-subaccount#create-a-collection-subaccount

`<?php
$data = [
'account_number' => '0690000034',
'account_bank' => '044',
'business_name' => 'Christian Jombo and Sons',
'business_mobile' => '08000000000',
'split_type' => 'flat',
'split_value' => 1000
];

$subaccount = Flutterwave::subaccounts()->create($data);

dd($subaccount);`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants