Install Pagseguro/PHP in Laravel

Asked

Viewed 2,054 times

4

In the composer.php I’m putting it like this:

"require": {
    "laravel/framework": "4.2.*",
    "pagseguro/php": "dev-master", #"pagseguro/php": "2.5.0",
    "cagartner/correios-consulta": "0.1.*",
    "intervention/image": "2.*"
},

But you’re making a mistake:

Your Quirements could not be resolved to an installable set of Packages.

Problem 1 - The requested package pagseguro/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://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/Discussion >for more Details.

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

But the directory exists in Github. https://github.com/pagseguro/php

Solved!

The version 2.5.0 is not a directory on Github. After searching I found it should be "pagseguro/php":"dev-master".

1 answer

2


The library Voce is trying to use is not proper for Windows.

Open the Composer.json file and enter the following statement:

"require": {
    "michael/laravelpagseguro": "dev-master"
}

After entering require Laravel Pagseguro, you must execute the command:

composer update

Source for more information: Pagseguro Laravel

  • Otto, but this Pagseguro is the Transparent Checkout ?

  • 1

    Yes you send the request without leaving your application

  • Right. I’ll have to create another topic for a question from me. Thank you.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.