Yii Framework Forum: has somebody used of Preapproval API of Paypal? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

has somebody used of Preapproval API of Paypal? Rate Topic: -----

#1 User is offline   Davidhhuan 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 270
  • Joined: 08-September 09

Posted 15 July 2010 - 02:57 AM

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:

1. make a vendors folder under application folder.

2. copy the files from lib to protected/vendors/paypal,

3. 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.
no pain, no gain...

My Blog : http://cnblogs.com/davidhhuan
My website: http://sharefamily.net/
0

#2 User is offline   Davidhhuan 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 270
  • Joined: 08-September 09

Posted 16 July 2010 - 01:02 AM

Bad luck, no body knows...

But now i write the code follow the tutorial and set it as a component.
no pain, no gain...

My Blog : http://cnblogs.com/davidhhuan
My website: http://sharefamily.net/
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users