PHP code example of wildan99 / global-pay

1. Go to this page and download the library: Download wildan99/global-pay library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wildan99 / global-pay example snippets


Daniil\GlobalPayBundle\GlobalPayBundle::class => ['all' => true],

/vendor/wildan99/global-pay/config/routes/global_pay.yaml to config/routes/global_pay.yaml

php bin/console doctrine:migrations:diff
php bin/console doctrine:migrations:migrate --no-interaction


class MyClass 
{
    public function __construct(private \Daniil\GlobalPayBundle\Service\Client $client) 
    {
    }
    
    public function prepare(): void
    {
        $this->client->prepare(new PrepareRequest(shopTransactionId: 'test', sum: 1000, currency: Currency::UZS, description: ''))
    }
}
bash
composer req wildan99/global-pay