src/Paystack.php
public function updateSubAccount($subaccount_code){
        $data = [
            "business_name" => request()->business_name, 
            "settlement_bank" => request()->settlement_bank,
            "account_number" => request()->account_number,
            "percentage_charge" => request()->percentage_charge,
            "description" => request()->description,
            "primary_contact_email" => request()->primary_contact_email,
            "primary_contact_name" => request()->primary_contact_name,
            "primary_contact_phone" => request()->primary_contact_phone,
            "metadata" => request()->metadata,
            'settlement_schedule' => request()->settlement_schedule
        ];

        $this->setRequestOptions();
        return $this->setHttpResponse("/subaccount/{$subaccount_code}", "PUT", array_filter($data))->getResponse();

    }
public function updateSubAccount($subaccount_code){
        $data = [
            "business_name" => request()->business_name, 
            "settlement_bank" => request()->settlement_bank,
            "account_number" => request()->account_number,
            "percentage_charge" => request()->percentage_charge,
            "description" => request()->description,
            "primary_contact_email" => request()->primary_contact_email,
            "primary_contact_name" => request()->primary_contact_name,
            "primary_contact_phone" => request()->primary_contact_phone,
            "metadata" => request()->metadata,
            'settlement_schedule' => request()->settlement_schedule
        ];

        $this->setRequestOptions();
        return $this->setHttpResponse("/subaccount/{$subaccount_code}", "PUT", array_filter($data))->getResponse();

    }
public function updateSubAccount ( $ subaccount_code ) { $ data = [ "business_name" => request ( ) -> business_name , "settlement_bank" => request ( ) -> settlement_bank , "account_number" => request ( ) -> account_number , "percentage_charge" => request ( ) -> percentage_charge , "description" => request ( ) -> description , "primary_contact_email" => request ( ) -> primary_contact_email , "primary_contact_name" => request ( ) -> primary_contact_name , "primary_contact_phone" => request ( ) -> primary_contact_phone , "metadata" => request ( ) -> metadata , 'settlement_schedule' => request ( ) -> settlement_schedule ] ; $ this -> setRequestOptions ( ) ; return $ this -> setHttpResponse ( "/subaccount/{$subaccount_code}" , "PUT" , array_filter ( $ data ) ) -> getResponse ( ) ; }
Updates a subaccount to be used for split payments . Required params are business_name , settlement_bank , account_number , percentage_charge
@param subaccount code
@return array
Updates a subaccount to be used for split payments . Required params are business_name settlement_bank account_number percentage_charge