0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PayPal SDKの使用時にエラー「Class 'PayPal\Rest\ApiContext' not found (クラス’PayPal\Rest\ApiContext’が見つかりません)」が出るのはなぜですか?

Posted at

このエラーは、PHP SDKのファイルパスが見つからなかったことを示しています。

この問題を解決するには、Composerを使ってベンダーフォルダーを更新してください。以下に例を示します。

require('vendor/autoload.php');
$api = new \PayPal\Rest\ApiContext(
 new \PayPal\Auth\OAuthTokenCredential(
    $client_ID,
    $client_Secret
  )
);
$api->setConfig([
 'mode'=>'sandbox',
 'http.ConnectionTimeOut'=>30,
 'log.LogEnabled'=>false,
 'log.FileName'=>'',
 'log.LogLevel'=>'FINE',
 'validation.level'=>'log'
]);

PayPalではテクニカルサポートの部署がありますので、何かPayPal実装関連の質問や技術的な質問がありましたら、下記URLで記事を検索してみてください。
https://jp.paypal-techsupport.com/
上記URLの一番下の「お問い合わせ」リンクをクリックしてまたは下記URLをアクセスして質問を送信してください。
https://jp.paypal-techsupport.com/app/ask

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?