【发布时间】:2015-11-15 09:20:07
【问题描述】:
我已经使用 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));
}
请帮帮我。
提前致谢。
【问题讨论】:
-
我在为我正在使用的商家 sdk 的 php 文件设置路径时遇到问题。
标签: paypal