https://github.com/ehcaning/myket-validation-composer
https://github.com/ehcaning/myket-validation-composer
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ehcaning/myket-validation-composer
- Owner: ehcaning
- License: mit
- Created: 2020-12-01T19:09:32.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-22T14:42:42.000Z (over 4 years ago)
- Last Synced: 2025-02-02T17:18:11.599Z (4 months ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Myekt Validation
A simple composer package for validate https://myket.ir/ payments## Installation
Installation is done using the```bash
$ composer require ehcan/myket_validation
```## Usage Example
```php
validate($sku, $payment_token);if($paymentResult['status'] === 200 && $paymentResult['data']['purchaseState'] === 0){
// success
// your logic
}
else{
// failed
// your logic here
}}
}
```