dosarkz/paypost

There is no license information available for the latest version (dev-master) of this package.

The Paypost module for accepting payments by Kazpost

dev-master 2018-12-13 15:53 UTC

This package is auto-updated.

Last update: 2024-04-19 20:04:26 UTC


README

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