Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

Payment.php 938B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace MirfalahTech\Laravel\Payment\Facade;
  3. use Illuminate\Http\Request;
  4. use Illuminate\Support\Facades\Facade;
  5. use MirfalahTech\Laravel\Payment\Contracts\PayableEntity;
  6. use MirfalahTech\Laravel\Payment\Contracts\PaymentGatewayDriver;
  7. use Symfony\Component\HttpFoundation\Response;
  8. /**
  9. * Class Payment
  10. * @package MirfalahTech\Laravel\Payment\Facade
  11. *
  12. * @method static PaymentGatewayDriver via(string $gateway = null)
  13. * @method static string createPaymentURL(PayableEntity $payable, array $options = [])
  14. * @method static bool verifyGatewayReturn(Request $request)
  15. * @method static bool verifyGatewayCallback(Request $request, Response &$response = null)
  16. * @method static string|null getBillIdFromRequest(Request $request)
  17. */
  18. class Payment extends Facade
  19. {
  20. const SUCCESS = 1;
  21. const FAILED = -1;
  22. const PENDING = 0;
  23. protected static function getFacadeAccessor()
  24. {
  25. return 'payment';
  26. }
  27. }