forked from LiveCarta/PayPal-PHP-SDK
Updated version of SDK Core
- Updated sample to not use its own composer.json
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
Rest API Samples
|
||||
===================
|
||||
|
||||
This sample project is a simple web app that you can explore to understand what the payment APIs can do for you.
|
||||
|
||||
This sample project is a simple web app that you can explore to understand what the payment APIs can do for you. To try out the sample, run `composer update --no-dev` from the samples folder and you are all set.
|
||||
|
||||
To try out the sample, run `composer update --no-dev` from the rest-api-sdk-php folder and you are all set.
|
||||
|
||||
The sample comes pre-configured with a test account but in case you need to try them against your account, you must
|
||||
|
||||
|
||||
@@ -4,12 +4,15 @@
|
||||
*/
|
||||
|
||||
// Include the composer autoloader
|
||||
// The location of your project's vendor autoloader.
|
||||
$composerAutoload = dirname(dirname(dirname(__DIR__))) . '/autoload.php';
|
||||
if (!file_exists($composerAutoload))
|
||||
{
|
||||
$composerAutoload = __DIR__ .'/vendor/autoload.php';
|
||||
//If the project is used as its own project, it would use rest-api-sdk-php composer autoloader.
|
||||
$composerAutoload = dirname(__DIR__) .'/vendor/autoload.php';
|
||||
|
||||
if(!file_exists(__DIR__ .'/vendor/autoload.php')) {
|
||||
|
||||
if(!file_exists($composerAutoload)) {
|
||||
echo "The 'vendor' folder is missing. You must run 'composer update' to resolve application dependencies.\nPlease see the README for more information.\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
{
|
||||
"name": "paypal/rest-api-sdk-sample-php",
|
||||
"description": "Samples using PayPal's REST API SDK for PHP",
|
||||
"homepage": "https://github.com/paypal/rest-api-sdk-php",
|
||||
"config": {
|
||||
"require-all": true
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.0",
|
||||
"ext-curl": "*",
|
||||
"ext-json": "*",
|
||||
"paypal/rest-api-sdk-php" : "0.11.*"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user