Skip to content

Commit 8a4f74a

Browse files
vitkutnyf3l1x
authored andcommitted
Added supported foreign currencies
- https://doc.gopay.com/cs/#currency
1 parent 344e58c commit 8a4f74a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/Gopay/Entity/BasePayment.php

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ abstract class BasePayment extends Object
4343
private $allowedCurrency = [
4444
Gopay::CURRENCY_CZK,
4545
Gopay::CURRENCY_EUR,
46+
Gopay::CURRENCY_PLN,
47+
Gopay::CURRENCY_HUF,
48+
Gopay::CURRENCY_GBP,
49+
Gopay::CURRENCY_USD,
4650
];
4751

4852
/**

src/Gopay/Gopay.php

+12
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,18 @@ class Gopay extends Object
9595
/** @const Euro */
9696
const CURRENCY_EUR = 'EUR';
9797

98+
/** @const Polish zloty */
99+
const CURRENCY_PLN = 'PLN';
100+
101+
/** @const Hungarian forint */
102+
const CURRENCY_HUF = 'HUF';
103+
104+
/** @const British pound */
105+
const CURRENCY_GBP = 'GBP';
106+
107+
/** @const US dollar */
108+
const CURRENCY_USD = 'USD';
109+
98110
// LANGUAGES ===============================================================
99111

100112
/** @const Czech */

0 commit comments

Comments
 (0)