Skip to content

dosarkz/paypost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paypost

The module for accepting payments by Kazpost for laravel 5 and high

  • installation
  • example
  • license

Installation

  • composer require dosarkz/paypost
  • php 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

License

About

PayPost module for accepting payment by Kazpost

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages