【问题标题】:SetExpressCheckout not working in NetbeansSetExpressCheckout 在 Netbeans 中不起作用
【发布时间】: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


【解决方案1】:

我的问题终于解决了。

唯一的问题是路径,我已经明确给出了所有路径并工作,最后在 4 小时后我能够得到输出。

【讨论】:

    猜你喜欢
    • 2015-11-08
    • 2012-04-30
    • 2012-11-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多