/** * Service Call: DoExpressCheckoutPayment * @param DoExpressCheckoutPaymentReq $doExpressCheckoutPaymentReq * @param mixed $apiCredential - Optional API credential - can either be * a username configured in sdk_config.ini or a ICredential object * created dynamically * @return PayPalAPI\DoExpressCheckoutPaymentResponseType * @throws APIException */ public function DoExpressCheckoutPayment($doExpressCheckoutPaymentReq, $apiCredential = NULL) { $apiContext = new PPApiContext($this->config); $handlers = array(new PPMerchantServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION)); $this->setStandardParams($doExpressCheckoutPaymentReq->DoExpressCheckoutPaymentRequest); $ret = new DoExpressCheckoutPaymentResponseType(); $resp = $this->call('PayPalAPIAA', 'DoExpressCheckoutPayment', $doExpressCheckoutPaymentReq, $apiContext, $handlers); $ret->init(PPUtils::xmlToArray($resp)); return $ret; }
/** * Service Call: DoExpressCheckoutPayment * @param DoExpressCheckoutPaymentReq $doExpressCheckoutPaymentReq * @param mixed $apiCredential - Optional API credential - can either be * a username configured in sdk_config.ini or a ICredential object * created dynamically * @return PayPalAPI\DoExpressCheckoutPaymentResponseType * @throws APIException */ public function DoExpressCheckoutPayment($doExpressCheckoutPaymentReq, $apiCredential = NULL) { $this->setStandardParams($doExpressCheckoutPaymentReq->DoExpressCheckoutPaymentRequest); $ret = new DoExpressCheckoutPaymentResponseType(); $resp = $this->call('PayPalAPIAA', 'DoExpressCheckoutPayment', $doExpressCheckoutPaymentReq, $apiCredential); $ret->init(PPUtils::xmlToArray($resp)); return $ret; }