Adventure Documentation

PaymentOptionController extends CollectionController
in package

This controller describes the behavior of Payment options (e.g. Klarna).

Use the controller to generate a collection of PaymentOption entities.

Tags
see
PaymentOption

Main entity of collection

Table of Contents

__construct()  : mixed
exists()  : mixed
Returns a boolean based on the existance of a payment option

Methods

__construct()

public __construct() : mixed
Tags
Return values
mixed

exists()

Returns a boolean based on the existance of a payment option

public exists(string $paymentMethodId, string $deliveryCountryId) : mixed
Parameters
$paymentMethodId : string

( Example: to check if the solution uses Klarna it would be 9 )

$deliveryCountryId : string

( Example: would be the iso of the delivery country, so it could be DK )

Tags
Return values
mixed

        

Search results