Server Config in PHP

NicMur
Contributor
Contributor

Probably a real "nubie" question or I'm really missing something - but I'm confused by the Server Configuration steps.

I've "unpacked" the zip and got the directory structure (I don't use composer) as per GitHub article.

Now when I look at https://developer.paypal.com/docs/api/quickstart/environment/

It says create a php file with

/ Autoload SDK package for composer based installations
require 'vendor/autoload.php';
$apiContext = new \PayPal\Rest\ApiContext(
  new \PayPal\Auth\OAuthTokenCredential(
    'YOUR APPLICATION CLIENT ID',
    'YOUR APPLICATION CLIENT SECRET'
  )
);

OK - but what should the file be called and and/or where do I need to reference it from? - I'm not seeing the point in having a file that is never accessed!

I've done the javascript side as per the Smart Payment buttons page https://developer.paypal.com/docs/checkout/integrate
and can "process" a transaction in the sandbox OK - but I'm not sure it's enough.

Thanks

 

Login to Me Too
1 REPLY 1

NicMur
Contributor
Contributor

Looking further I think this post is rubbish - but I'm still confused by the Server Config Steps - will try another.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.