Tip
This library allows you to integrate payment acceptance using "CLICK" payment system into Laravel web applications.
For the library to function properly, the user must be connected to Click Merchant using the Shop API scheme.
Detailed documentation is available here https://docs.click.uz.
composer require shoyim/click dev-main
php artisan vendor:publish --provider="Shoyim\Click\Providers\ClickServiceProvider" --tag="config"
# db migration
php artisan migrateCLICK_ENDPOINT=https://api.click.uz/v2/merchant/
CLICK_MERCHANT_ID=your-merchant-id
CLICK_SERVICE_ID=your-service-id
CLICK_USER_ID=your-user-id
CLICK_SECRET_KEY=your-secret-keyList of the Payments methods
-
on_invoice_creatingandon_invoice_createdfor create invoice -
on_invoice_checkingandon_invoice_checkedfor check invoice -
on_cancelingandon_canceledfor cancel payment -
on_card_token_creatingandon_card_token_createdfor create card token -
on_card_token_verifyingandon_card_token_verifiedfor verify card token -
on_card_token_payingandon_card_token_payedfor payment via card token -
on_card_token_deletingandon_card_token_deletedfor delete card token -
on_payment_checkingandon_payment_checkedfor check payment status by merchant_id -
on_checking_with_merchant_trans_idandon_checked_with_merchant_trans_idfor check payment status by merchant_trans_id
If you want check whether the payment user exists, complete this method