dosarkz / paypost
The Paypost module for accepting payments by Kazpost
Installs: 274
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Open Issues: 0
pkg:composer/dosarkz/paypost
Requires
- guzzlehttp/guzzle: ^6.3
This package is auto-updated.
Last update: 2025-10-19 23:41:43 UTC
README
The module for accepting payments by Kazpost for laravel 5 and high
- installation
- example
- license
Installation
composer require dosarkz/paypostphp artisan vendor:publish --provider="Dosarkz\PayPost\ServiceProviders\PayPostServiceProvider"- that's it.
Example
$payPost = PayPost::generateUrl([
'amount' => "sum of purchase",
'email' => "customeremail",
'language' => 'ru',
'currency' => 'KZT',
'type' => 'card',
'payment_webhook' => "here your url webhook use only working url (real)"
]);
if ($payPost->success) {
// todo white success instructions
$paymentId = $payPost->result->payment;
$paymentUrl = $payPost->result->url;
}
License
- MIT license
- Copyright 2018 ©