Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Error: Exception because the name is already in use #462

Open
KotetsuNoAkai opened this issue Mar 9, 2018 · 0 comments
Open

Compile Error: Exception because the name is already in use #462

KotetsuNoAkai opened this issue Mar 9, 2018 · 0 comments

Comments

@KotetsuNoAkai
Copy link

when i tried to make a pay in palpay express or offline, i have this error:

Compile Error: Cannot use League\Uri\Components\Exception as Exception because the name is already in use.

in vendor\league\uri-components\src\QueryParser.php (line 20)

declare(strict_types=1);
namespace League\Uri;
use League\Uri\Components\EncodingInterface;
use League\Uri\Components\Exception;
use Traversable;
use TypeError;

My code:

public function processPaymentAction(Bookings $booking)
{
$storage = $this->get('payum')->getStorage(Payment::class);

    $payment = $storage->create();
    $payment->setNumber($booking->getUniq());
    $payment->setCurrencyCode('EUR');
    $payment->setTotalAmount($booking->getFinalPrice()*100);
    $payment->setClientId($booking->getEmail());
    $payment->setClientEmail($booking->getEmail());
    $storage->update($payment);
    $captureToken = $this->get('payum')->getTokenFactory()->createCaptureToken('offline', $payment, 'finishBuyCard');

    return $this->redirect($captureToken->getTargetUrl());
} 

My composer.json:
{
"type": "project",
"license": "proprietary",
"require": {
"php": "^7.0.8",
"ext-iconv": "",
"easycorp/easyadmin-bundle": "^1.17",
"egeloen/ckeditor-bundle": "^6.0",
"league/uri-components": "@dev",
"payum/paypal-express-checkout-nvp": "^1.4",
"payum/offline": "^1.5",
"payum/payum-bundle": "^2.2",
"php-http/guzzle6-adapter": "^1.1",
"sensio/framework-extra-bundle": "^5.1",
"stof/doctrine-extensions-bundle": "^1.3",
"symfony/apache-pack": "^1.0",
"symfony/asset": "^3.4",
"symfony/console": "^3.4",
"symfony/debug-pack": "
",
"symfony/expression-language": "^3.4",
"symfony/flex": "^1.0",
"symfony/form": "^3.4",
"symfony/framework-bundle": "^3.4",
"symfony/lts": "^3",
"symfony/monolog-bundle": "^3.1",
"symfony/orm-pack": "",
"symfony/process": "^3.4",
"symfony/security-bundle": "^3.4",
"symfony/serializer-pack": "
",
"symfony/swiftmailer-bundle": "^3.1",
"symfony/validator": "^3.4",
"symfony/web-link": "^3.4",
"symfony/webpack-encore-pack": "",
"symfony/yaml": "^3.4"
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.0",
"symfony/browser-kit": "^3.4",
"symfony/css-selector": "^3.4",
"symfony/dotenv": "^3.4",
"symfony/maker-bundle": "^1.0",
"symfony/phpunit-bridge": "^3.4",
"symfony/profiler-pack": "
"
},
"config": {
"preferred-install": {
"": "dist"
},
"sort-packages": true
},
"autoload": {
"psr-4": {
"App\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\Tests\": "tests/"
}
},
"replace": {
"symfony/polyfill-iconv": "
",
"symfony/polyfill-php70": "",
"symfony/polyfill-php56": "
"
},
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install --symlink --relative %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
]
},
"conflict": {
"symfony/symfony": "*"
},
"extra": {
"symfony": {
"id": "01C80JWP1A032K4AM6DMBNNC57",
"allow-contrib": false
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant