src/Paystack.php
public function createSubscription()
    {
        $data = [
            "customer" => request()->customer, //Customer email or code
            "plan" => request()->plan,
            "authorization" => request()->authorization_code
        ];

        $this->setRequestOptions();
        $this->setHttpResponse('/subscription', 'POST', $data);
    }
public function createSubscription()
    {
        $data = [
            "customer" => request()->customer, //Customer email or code
            "plan" => request()->plan,
            "authorization" => request()->authorization_code
        ];

        $this->setRequestOptions();
        $this->setHttpResponse('/subscription', 'POST', $data);
    }
public function createSubscription ( ) { $ data = [ "customer" => request ( ) -> customer , //Customer email or code "plan" => request ( ) -> plan , "authorization" => request ( ) -> authorization_code ] ; $ this -> setRequestOptions ( ) ; $ this -> setHttpResponse ( '/subscription' , 'POST' , $ data ) ; }
Create a subscription to a plan from a customer.
Create a subscription to a plan from a customer .