<?php

namespace App\Services\Payments;

use App\Models\PaymentRequest;
use Illuminate\Support\Facades\URL;

class PayPalPaymentProvider implements PaymentProviderInterface
{
    public function providerName(): string
    {
        return 'paypal';
    }

    public function createPaymentLink(PaymentRequest $paymentRequest): string
    {
        return URL::temporarySignedRoute('client.payment.preview', now()->addDays(14), ['paymentRequest' => $paymentRequest]);
    }
}
