我正在尝试实施" DoDirectPayment"在我的网站上的方法。 我有paypal沙盒帐户,我有paypal api进入。 当我将货币设置为' USD'然后我的代码返回成功消息。 但是,当我设置HKD'货币然后它返回"由于货币不受支持,该交易无法处理"消息。
这里我附上了我的代码。请检查并给我一些解决方案。
composer create-project laravel/laravel blog1 "5.1.*"
Installing laravel/laravel (v5.1.11)
- Installing laravel/laravel (v5.1.11)
Loading from cache
Created project in blog1
> php -r "copy('.env.example', '.env');"
> php artisan clear-compiled
Warning:require(C:\xampp\htdocs\blog1\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\blog1\bootstrap\autoload.php on line 17
Fatal error: require(): Failed opening required 'C:\xampp\htdocs\blog1\bootstrap/../vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\blog1\bootstrap\autoload.php on line 17
PHP Warning: require(C:\xampp\htdocs\blog1\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\blog1\bootstrap\autoload.php on line 17
PHP Fatal error: require(): Failed opening required 'C:\xampp\htdocs\blog1\bootstrap/../vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\blog1\bootstrap\autoload.php on line 17
Script php artisan clear-compiled handling the pre-update-cmd event returned with an error
[RuntimeException]
Error Output: PHP Warning: require(C:\xampp\htdocs\blog1\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\blog1\bootstrap\autoload.php on line 17
PHP Fatal error: require(): Failed opening required 'C:\xampp\htdocs\blog1\bootstrap/../vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\blog1\bootstrap\autoload.php on line 17
create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]
这是输出消息 http://i.imgur.com/JMMG4I3.png
提前致谢
答案 0 :(得分:0)
请参阅“{3}}”中的“直接信用卡产品的多种货币支持”部分,如果您的沙箱帐户所在国家/地区为美元,则支持的货币为澳元,加元,欧元,英镑,日元,美元等HKD不受支持。