diff --git a/.travis.yml b/.travis.yml index 7111012..24f877f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,8 @@ php: - 7.4 - 8.0 - 8.1 + - 8.2 + - 8.3 before_script: - composer install -n --dev --prefer-source diff --git a/README.md b/README.md index 3e0d5d9..67e0956 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,9 @@ [![Build Status](https://app.travis-ci.com/dercoder/omnipay-webmoney.svg?branch=master)](https://app.travis-ci.com/github/dercoder/omnipay-webmoney) [![Coverage Status](https://coveralls.io/repos/dercoder/omnipay-webmoney/badge.svg?branch=master&service=github)](https://coveralls.io/github/dercoder/omnipay-webmoney?branch=master) -[![Latest Stable Version](https://poser.pugx.org/dercoder/omnipay-webmoney/v/stable.png)](https://packagist.org/packages/dercoder/omnipay-webmoney) -[![Total Downloads](https://poser.pugx.org/dercoder/omnipay-webmoney/downloads.png)](https://packagist.org/packages/dercoder/omnipay-webmoney) -[![Latest Unstable Version](https://poser.pugx.org/dercoder/omnipay-webmoney/v/unstable.png)](https://packagist.org/packages/dercoder/omnipay-webmoney) -[![License](https://poser.pugx.org/dercoder/omnipay-webmoney/license.png)](https://packagist.org/packages/dercoder/omnipay-webmoney) +[![Latest Stable Version](https://img.shields.io/packagist/v/dercoder/omnipay-webmoney)](https://packagist.org/packages/dercoder/omnipay-webmoney) +[![Total Downloads](https://img.shields.io/packagist/dt/dercoder/omnipay-webmoney)](https://packagist.org/packages/dercoder/omnipay-webmoney) +[![License](https://img.shields.io/packagist/l/dercoder/omnipay-webmoney)](https://packagist.org/packages/dercoder/omnipay-webmoney) [Omnipay](https://github.com/omnipay/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 7.0+. This package implements [WebMoney](https://www.webmoney.az) support for Omnipay. diff --git a/src/Message/AbstractRequest.php b/src/Message/AbstractRequest.php index 5a5781c..af2e6b2 100644 --- a/src/Message/AbstractRequest.php +++ b/src/Message/AbstractRequest.php @@ -257,4 +257,16 @@ public function getCurrencyByPurse($purse) return null; } } + + public function getCurrencies() + { + if ($this->currencies === null) { + $this->currencies = new \Money\Currencies\AggregateCurrencies([ + new \Money\Currencies\CryptoCurrencies(), + new \Money\Currencies\ISOCurrencies(), + ]); + } + + return $this->currencies; + } }