Server Config in PHP
NicMur
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Mar-16-2019
06:49 AM
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
Labels:
- Labels:
-
Mobile SDKs
-
PayPal Here SDK
-
REST SDK
1 REPLY 1
NicMur
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar-18-2019
12:34 AM
Looking further I think this post is rubbish - but I'm still confused by the Server Config Steps - will try another.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- When clicking on a payment button generates error: Unexpected token ... in PayPal Payments Standard
- Error: "Unable to change shipping method. Please try again." in PayPal popup in REST APIs
- webhook not send update notification in REST APIs
- Pay Pal integration with existing site code and databases required in Sandbox Environment
- Failed on signup onboarding for seller in REST APIs