Download the PHP package dmitriymikheev/yii2-odysseq without Composer
On this page you can find all versions of the php package dmitriymikheev/yii2-odysseq. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dmitriymikheev/yii2-odysseq
More information about dmitriymikheev/yii2-odysseq
Files in dmitriymikheev/yii2-odysseq
Package yii2-odysseq
Short Description The toolkit of integration Odysseq service in your project for Yii2
License MIT
Homepage https://github.com/dmitriymikheev/yii2-odysseq
Informations about the package yii2-odysseq
Yii2 Odysseq
Extension for working with the Odysseq service
Official API documentation
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Usage
Add the component to your application config file.
To configure notifications about a change in the status of the bid, add the following code in your controller:
1. Add an action:
2. Add VerbFilter:
3. Disable csrf validation for callback action like this:
4. Add a callback function to your controller. It will be called if the request is not fake.
$model
properties:
- orderId - id of the bid in the partner's system
- type - operation type (IN | OUT)
- amount - transaction amount
- status - operation status (WAITING | SENDING | SUCCESS | CANCELED)
- errorCode - error code
- errorMessage - error message
Available public methods
Method | Description |
---|---|
validateSignature($hash, $data) | Signature validation |
makeReceiveRequest($order_id, $amount, $card_tail = null, $client_ip = null) | Initializing a request for a deposit. https://odysseq.com/api#payment-receive |
makeContactRequest($order_id, $amount, $first_name, $middle_name, $last_name, $card_number) | Initiating a request for a deposit through the contact system. https://odysseq.com/api#payment-contact |
getPaymentStatus($order_id) | Obtaining information about the bid. https://odysseq.com/api#payment-status |
makeCancelRequest($order_id) | Cancellation of the payment request. Cancellation is available for bids in the initial WAITING status. https://odysseq.com/api#payment-cancel |
makeSendRequest($order_id, $amount, $receiver) | Initialization of sending funds to the client's card or wallet. https://odysseq.com/api#payment-send |
getAccountBalance() | Getting partner balance. https://odysseq.com/api#account-balance |