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
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 )