Recently I am trying to use Preapproval API of Paypal to handle some process, the example code get from https://www.x.com/community/ppx/sdks,
in the code, when i want to import the library of this API (locate in php-sdk/samples/web/lib), i do as follow:
-
make a vendors folder under application folder.
-
copy the files from lib to protected/vendors/paypal,
-
Import in the controller.
But that, when I use code as below, I got nothing, even the errors, just a blank page.
<?php
Yii::import("application.vendors.*");
require_once("paypal/AdaptivePayments.php");
class SiteController extends Controller
{
//.......................
}
If i remove the code
require_once("paypal/AdaptivePayments.php");
then the page can render and display.
Is it that the way i locate and import the paypal wrong? Or another reason to cause the problem?
Can someone help me?
Thank you.