src/Subscriptions/Resources/Customers.php
public function updateBillingInfo($code = null, $data = [])
    {
        $payload = [];

        if (! $code) {
            $code = $this->data->code;
        }

        if (! empty($data)) {
            $payload['credit_card'] = $data;
        } elseif (isset($this->data->billing_info)) {
            $payload = $this->data->billing_info;
        }

        $this->client->put('/{code}/billing_infos', [$code], $payload);

        return $this;
    }
public function updateBillingInfo($code = null, $data = [])
    {
        $payload = [];

        if (! $code) {
            $code = $this->data->code;
        }

        if (! empty($data)) {
            $payload['credit_card'] = $data;
        } elseif (isset($this->data->billing_info)) {
            $payload = $this->data->billing_info;
        }

        $this->client->put('/{code}/billing_infos', [$code], $payload);

        return $this;
    }
public function updateBillingInfo ( $ code = null , $ data = [ ] ) { $ payload = [ ] ; if ( ! $ code ) { $ code = $ this -> data -> code ; } if ( ! empty ( $ data ) ) { $ payload [ 'credit_card' ] = $ data ; } elseif ( isset ( $ this -> data -> billing_info ) ) { $ payload = $ this -> data -> billing_info ; } $ this -> client -> put ( '/{code}/billing_infos' , [ $ code ] , $ payload ) ; return $ this ; }
Update Billing info

@param  string  $code
@param  array  $data
@return $this
Update Billing info