<?php

namespace MtcPharmacy\Subscriptions\Classes\Services;

use MtcPharmacy\Subscriptions\Classes\PaymentGatewayInterface;

class PaymentService
{
    protected $gateway;

    public function __construct(PaymentGatewayInterface $gateway)
    {
        $this->gateway = $gateway;
    }

    public function processPayment()
    {
        return $this->gateway->processPayment();
    }

    public function getPreviousPaymentInfo()
    {
        return $this->gateway->getPreviousPaymentInfo();
    }

}