public function createSinglePlan(RequestModels\BaseRecurringPayment $requestModel)
    {
        $recurringPaymentMapper = new \com\checkout\ApiServices\RecurringPayments\RecurringPaymentMapper($requestModel);

        $requestPayload = array (
            'authorization' => $this->_apiSetting->getSecretKey(),
            'mode'          => $this->_apiSetting->getMode(),
            'postedParam'   => $recurringPaymentMapper->requestPayloadConverter(),

        );

        $processCharge = \com\checkout\helpers\ApiHttpClient::postRequest($this->_apiUrl->getRecurringPaymentsApiUri(),
            $this->_apiSetting->getSecretKey(),$requestPayload);

        $responseModel = new ResponseModels\RecurringPayment($processCharge);

        return $responseModel;
    }
public function createSinglePlan(RequestModels\BaseRecurringPayment $requestModel)
    {
        $recurringPaymentMapper = new \com\checkout\ApiServices\RecurringPayments\RecurringPaymentMapper($requestModel);

        $requestPayload = array (
            'authorization' => $this->_apiSetting->getSecretKey(),
            'mode'          => $this->_apiSetting->getMode(),
            'postedParam'   => $recurringPaymentMapper->requestPayloadConverter(),

        );

        $processCharge = \com\checkout\helpers\ApiHttpClient::postRequest($this->_apiUrl->getRecurringPaymentsApiUri(),
            $this->_apiSetting->getSecretKey(),$requestPayload);

        $responseModel = new ResponseModels\RecurringPayment($processCharge);

        return $responseModel;
    }
public function createSinglePlan ( RequestModels \ BaseRecurringPayment $ requestModel ) { $ recurringPaymentMapper = new \ com \ checkout \ ApiServices \ RecurringPayments \ RecurringPaymentMapper ( $ requestModel ) ; $ requestPayload = array ( 'authorization' => $ this -> _apiSetting -> getSecretKey ( ) , 'mode' => $ this -> _apiSetting -> getMode ( ) , 'postedParam' => $ recurringPaymentMapper -> requestPayloadConverter ( ) , ) ; $ processCharge = \ com \ checkout \ helpers \ ApiHttpClient :: postRequest ( $ this -> _apiUrl -> getRecurringPaymentsApiUri ( ) , $ this -> _apiSetting -> getSecretKey ( ) , $ requestPayload ) ; $ responseModel = new ResponseModels \ RecurringPayment ( $ processCharge ) ; return $ responseModel ; }
Creates a new payment plan
@param RequestModels\BaseRecurringPayment $requestModel
@return ResponseModels\RecurringPayment
Creates a new payment plan