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?

5
  • 1
    try: composer self-update; composer require "paypal/rest-api-sdk-php:*" Also, share you composer.json file please Commented Nov 9, 2016 at 12:10
  • No, didn't work Commented Nov 9, 2016 at 12:12
  • The instructions work fine for me as is. Composer fires up and I get Installing paypal/rest-api-sdk-php (1.10.0) downloaded to my vendor dir. Commented Nov 9, 2016 at 20:20
  • 1
    There is a working solution described in stackoverflow.com/questions/39400764/… by Olga. Commented Dec 12, 2017 at 15:51
  • Was this solved ? Commented Sep 29, 2019 at 1:50

2 Answers 2

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

Sign up to request clarification or add additional context in comments.

Comments

-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

1 Comment

A code-only answer is not high quality. 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.