2

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?

Jon Abaca
  • 229
  • 2
  • 10

2 Answers2

0

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

-1

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

Eranda
  • 868
  • 1
  • 10
  • 27
  • [A code-only answer is not high quality](//meta.stackoverflow.com/questions/392712/explaining-entirely-code-based-answers). While this code may be useful, you can improve it by saying why it works, how it works, when it should be used, and what its limitations are. Please [edit] your answer to include explanation and link to relevant documentation. – Stephen Ostermiller May 07 '22 at 12:08