How do I display payment icons on checkout in my payment driver?

To improve brand awareness of the payment provider during the checkout process, a label view can be used. The payment driver should implement the labelView method, which returns a string. This is typically a namespaced view that lives in the payment gateway module.

public function labelView(PaymentMethod $method): ?string
    return view('my_gateway::label', compact('method'));

Articles in this section

Was this article helpful?
0 out of 0 found this helpful