Euplatesc Payment Workflow

Simple Gateway Usage

Controller:

use Vanilo\Payment\PaymentGateways;

class OrderController
{
    public function submit(CreateOrderRequest $request)
    {
        $order = Order::createFrom($request);
        $gateway = PaymentGateways::make('euplatesc');
        $paymentRequest = $gateway->createPaymentRequest($order);

        return view('order.confirmation', [
            'order' => $order,
            'paymentRequest' => $paymentRequest
        ]);
    }
}

Blade Template:

{!! $request->getHtmlSnippet(); !!}

Next: Examples »