initial commit

This commit is contained in:
2026-06-29 13:00:18 +06:00
commit f2aea74471
3931 changed files with 562423 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?php
namespace App\Services\Payment;
class Payment
{
private array $paymentData = [];
private PaymentInterface $payment;
public function __construct(PaymentInterface $payment, $inputData)
{
$this->paymentData = $inputData;
$this->payment = $payment;
}
public function pay()
{
return $this->payment->makePayment($this->payment->prepareData($this->paymentData));
}
public function makeRecurringPayment()
{
return $this->payment->makeRecurringPayment($this->paymentData);
}
public function deleteSubscription()
{
return $this->payment->deleteRecurringPayment($this->paymentData);
}
public function getSubscriptionInfoBySubscriptionId()
{
return $this->payment->getRecurringInfoBySubscriptionId($this->paymentData);
}
}