我使用install.php在远程服务器上安装了paypal商家sdk。 现在我已经使用netbeans连接到我的远程服务器并下载了所有代码。
当我执行setExpressCheckout功能时,我的浏览器出现以下错误。
include(PayPalAPIInterfaceServiceService.php):无法打开流:没有此类文件或目录
**This is my code in Controller :**
public function actionexpress(){
$paypalService = new PayPalAPIInterfaceServiceService($config_checkout);
$paymentDetails= new PaymentDetailsType();
$orderTotal = new BasicAmountType();
$orderTotal->currencyID = 'USD';
$orderTotal->value = 500;
$paymentDetails->OrderTotal = $orderTotal;
$paymentDetails->PaymentAction = 'Sale';
$setECReqDetails = new SetExpressCheckoutRequestDetailsType();
$setECReqDetails->PaymentDetails[0] = $paymentDetails;
$setECReqDetails->CancelURL = 'https://devtools-paypal.com/guide/recurring_payment_ec/php?cancel=true';
$setECReqDetails->ReturnURL = 'xyz.com';
$billingAgreementDetails = new BillingAgreementDetailsType('RecurringPayments');
$billingAgreementDetails->BillingAgreementDescription = 'Hello';
$setECReqDetails->BillingAgreementDetails = array($billingAgreementDetails);
$setECReqType = new SetExpressCheckoutRequestType();
//$setECReqType->Version = '3.0';
$setECReqType->Version = '104.0';
$setECReqType->SetExpressCheckoutRequestDetails = $setECReqDetails;
$setECReq = new SetExpressCheckoutReq();
$setECReq->SetExpressCheckoutRequest = $setECReqType;
$setECResponse = $paypalService->SetExpressCheckout($setECReq);
die(var_dump($setECResponse));
}
请帮帮我。
提前致谢。
答案 0 :(得分:1)
最后我解决了我的问题。
唯一的问题是路径,我明确地给出了所有的路径并且工作了,最后4小时后我就能得到输出。