Download the PHP package kadirov/payme without Composer
On this page you can find all versions of the php package kadirov/payme. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package payme
Payme
Installation
Install the package
Add to config/bundles.php
Create AfterFinishPaymentInterface and BeforeCancelFinishedPayment classes. Add next to config/services.yaml
Add next lines to your .env file
Add payme route to config/packages/security.yaml file
How to use
Create PaymeTransaction via createTransaction() method of PaymeTransactionBuilder. For fiscalization you can also call addItem() method.
Example of simple using
`
Example with fiscalization
`
When user pays this payment, system will call afterFinishPayment() method of AfterFinishPaymentInterface. So, create class which implements AfterFinishPaymentInterface.
Also, you have to implement BeforeCancelFinishedPaymentInterface . Method in this class will call before cancel a payment. If canceling payment is impossible you can throw BeforeCancelFinishedPaymentException .
How to connect your project with Payme
You should create cashbox on merchant.payme.uz. Then copy ID and specify it as value of PAYME_CASHBOX_ID
Enter to the cashbox, click to settings then developer tools where you can find key and test key. Specify them as values of PAYME_CASHBOX_KEY and PAYME_CASHBOX_TEST_KEY
Also, you have to enter Endpoint URL like to https://my-domain.com/api/payments/payme
Click to tab Payment details and create transactionId
Add next form and users can pay by clicking the button
All versions of payme with dependencies
api-platform/core Version ^2
doctrine/annotations Version ^1
doctrine/doctrine-bundle Version ^2
doctrine/doctrine-migrations-bundle Version ^3
doctrine/orm Version ^2
phpstan/phpdoc-parser Version ^1
symfony/dependency-injection Version *
symfony/dotenv Version *
symfony/flex Version ^2
symfony/framework-bundle Version *
symfony/property-access Version *
symfony/property-info Version *
symfony/runtime Version *
symfony/security-bundle Version *
symfony/serializer Version *
symfony/validator Version *
symfony/yaml Version *