PaymentService.php 432 B

1234567891011121314151617181920
  1. <?php
  2. namespace Services;
  3. use Models\PaymentModel;
  4. class PaymentService
  5. {
  6. private PaymentModel $paymentModel;
  7. public function __construct()
  8. {
  9. $this->paymentModel = new PaymentModel();
  10. }
  11. public function createPendingPayment(string $externalId, int $statusId, int $userId): int
  12. {
  13. return $this->paymentModel->create($externalId, $statusId, $userId, '', '', '');
  14. }
  15. }