oxcom / magento2-currency-services

这是一个模块,允许从额外的外部来源更新货币汇率。

2.0.1 2023-05-08 07:41 UTC

This package is auto-updated.

Last update: 2024-09-08 13:49:17 UTC


README

Build Status

这是一个模块,允许从额外的外部来源更新货币汇率。

源服务列表
  1. 财务谷歌
  2. 欧洲中央银行
  3. Fixer
注意
  1. Fixer

    [The old, deprecated Fixer API will be discontinued on June 1st, 2018]
    We are happy to announce the complete relaunch of fixer.io into a more 
    stable, more secure, and much more advanced currency & exchange rate 
    conversion API platform. While the core structure of our API remains 
    unchanged, all users of the legacy Fixer API will be required to sign 
    up for a free API access key and perform a few simple changes to their 
    integration. To learn more about the changes that are required.
    

    请注意,Fixer API的免费访问具有有限的功能。

    您可以在Magento的管理面板中设置Fixer API的访问令牌。

  2. 财务谷歌

    谷歌引入了新的更改,现在只能解析HTML来获取所需信息。

    请注意,谷歌可能会随时更改其HTML结构

  3. 欧洲中央银行

    The reference rates are usually updated around 16:00 CET on every working 
    day, except on TARGET closing days. They are based on a regular daily 
    concertation procedure between central banks across Europe, which normally 
    takes place at 14:15 CET.
    

    请注意,刷新率较低

安装

$ composer require oxcom/magento2-currency-services
$ bin/magento module:enable OxCom_MagentoCurrencyServices
$ bin/magento setup:upgrade
$ bin/magento setup:di:compile

测试

测试将在真实来源上执行,因此需要互联网连接。

$ composer install
$ vendor/bin/phpunit -c Test/phpunit.xml

有关如何在Travis + Magento模块上运行测试的一些信息