Skip to content

Commit

Permalink
Added possibility to define Paysera application routes via environmen…
Browse files Browse the repository at this point in the history
…t variables (#27)

* Added possibility to define Paysera application routes via environment variables

* CHANGELOG

* minor CS changes

* minor CS changes

* minor update

* version change

* README fix

* Fixed bunch of typos
Added WebToPay_EnvReader for decoupling WebToPay_Config from direct env variables interaction
TODO: fix unit-tests

* Fixed unit-tests

* Fixed unit-tests

* moved symfony/dotenv to require-dev

* fixed WebToPay_EnvReaderTest

* phpstan fixes

* phpstan config
  • Loading branch information
dankovalenko-paysera authored Nov 25, 2024
1 parent 8606e19 commit a9e9684
Show file tree
Hide file tree
Showing 26 changed files with 2,388 additions and 1,004 deletions.
13 changes: 13 additions & 0 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
PAY_URL=https://bank.paysera.com/pay/
PAYSERA_PAY_URL=https://bank.paysera.com/pay/
XML_URL=https://www.paysera.com/new/api/paymentMethods/

PRODUCTION_PUBLIC_KEY=https://www.paysera.com/download/public.key
PRODUCTION_PAYMENT=https://bank.paysera.com/pay/
PRODUCTION_PAYMENT_METHOD_LIST=https://www.paysera.com/new/api/paymentMethods/
PRODUCTION_SMS_ANSWER=https://bank.paysera.com/psms/respond/

SANDBOX_PUBLIC_KEY=https://sandbox.paysera.com/download/public.key
SANDBOX_PAYMENT=https://sandbox.paysera.com/pay/
SANDBOX_PAYMENT_METHOD_LIST=https://sandbox.paysera.com/new/api/paymentMethods/
SANDBOX_SMS_ANSWER=https://sandbox.paysera.com/psms/respond/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
coverage
.bash_history
.php-cs-fixer.cache
/src/.env
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Version history
===============
Version 3.1.0 - 2024-06-27

* added possibility to define Paysera routes in environment variables

Version 3.0.0 - 2024-04-30

* increased minimal PHP version to 7.4
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ PHP 7.4 standards and code style like `strict_types`, type hints etc
Testing
=======

$ bash runt_tests.sh
$ bash run_tests.sh
Loading

0 comments on commit a9e9684

Please sign in to comment.