前提・実現したいこと
PHPで実装している画面から、Stripeを利用するために、
composerを使ってインストールしようとしていますが、
「composer update」時に、下記のエラーが発生します。
発生している問題・エラーメッセージ
C:\xampp\htdocs\enis\stripe-php>composer update Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - The requested package stripe/stripe-php No version set (parsed as 1.0.0) is satisfiable by stripe/stripe-php[No version set (parsed as 1.0.0)] but these conflict with your requirements or minimum-stability. Problem 2 - Installation request for satooshi/php-coveralls ~0.6.1 -> satisfiable by satooshi/php-coveralls[v0.6.1]. - satooshi/php-coveralls v0.6.1 requires ext-curl * -> the requested PHP extension curl is missing from your system. Problem 3 - stripe/stripe-php v6.1.0 requires ext-curl * -> the requested PHP extension curl is missing from your system. - stripe/stripe-php v6.0.0 requires ext-curl * -> the requested PHP extension curl is missing from your system. - Installation request for stripe/stripe-php 6.* -> satisfiable by stripe/stripe-php[v6.0.0, v6.1.0]. To enable extensions, verify that they are enabled in your .ini files: - C:\xampp\php\php.ini You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
該当のソースコード
PHP
1{ 2 "name": "stripe/stripe-php", 3 "description": "Stripe PHP Library", 4 "keywords": [ 5 "stripe", 6 "payment processing", 7 "api" 8 ], 9 "homepage": "https://stripe.com/", 10 "license": "MIT", 11 "authors": [ 12 { 13 "name": "Stripe and contributors", 14 "homepage": "https://github.com/stripe/stripe-php/contributors" 15 } 16 ], 17 "require": { 18 "stripe/stripe-php": "6.*" 19 }, 20 "require-dev": { 21 "phpunit/phpunit": "~4.0", 22 "satooshi/php-coveralls": "~0.6.1", 23 "squizlabs/php_codesniffer": "~2.0" 24 }, 25 "autoload": { 26 "psr-4": { "Stripe\" : "lib/" } 27 }, 28 "extra": { 29 "branch-alias": { 30 "dev-master": "2.0-dev" 31 } 32 } 33} 34
試したこと
ここに問題に対して試したことを記載してください。
補足情報(FW/ツールのバージョンなど)
Stripeで決済を実行するphpでは、require_once 'vendor/autoload.php';と実装していますが、
該当するライブラリが作成されておらず、エラーが発生します。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。