'PHP Paypal Rest API Composer Installation
I'm trying to install the Paypal PHP REST API, by following the instructions on this page.
https://github.com/paypal/PayPal-PHP-SDK/wiki/Installation-Composer
Namely, I'm running this command on composer.
composer require "paypal/rest-api-sdk-php:*"
However, I'm running into this error.
Problem 1 - The requested package paypal/rest-api-sdk-php could not be found in any version, there may be a typo in the package name.
Potential causes:
A typo in the package name
The package is not available in a stable-enough version according to your minimum-stability setting
see https://getcomposer.org/doc/04-schema.md#minimum-stability for more details.
The instructions aren't working. Does this mean the API has been abandoned?
Solution 1:[1]
composer require "paypal/rest-api-sdk-php:
composer require paypal/rest-api-sdk-php
Remove the quote first or install another laravel application and try that again
Solution 2:[2]
Please try to use composer require paypal/rest-api-sdk-php:*
UPDATE:
Refer this link for more details : https://github.com/paypal/PayPal-PHP-SDK/wiki/Installation-Composer
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | ILIAS M. DOLAPO |
| Solution 2 |
