Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Payment.php 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 PaymentGatewayDriver custom(string $driverClass, array $options)
  14. * @method static string createPaymentURL(PayableEntity $payable, array $options = [])
  15. * @method static bool verifyGatewayReturn(Request $request)
  16. * @method static bool verifyGatewayCallback(Request $request, Response &$response = null)
  17. * @method static string|null getBillIdFromRequest(Request $request)
  18. * @method static int|null getBillStatus(Request $request)
  19. * @method static bool|null isBillSuccess(Request $request)
  20. * @method static bool|null isBillFailed(Request $request)
  21. * @method static bool|null isBillPending(Request $request)
  22. */
  23. class Payment extends Facade
  24. {
  25. const SUCCESS = 1;
  26. const FAILED = -1;
  27. const PENDING = 0;
  28. protected static function getFacadeAccessor()
  29. {
  30. return 'payment';
  31. }
  32. }