Skip to content

Latest commit

 

History

History
49 lines (27 loc) · 1.4 KB

ChannelType.md

File metadata and controls

49 lines (27 loc) · 1.4 KB

Documentation

Class: ChannelType

This class is used to represent the types of channels in a request to Simpay API.

Properties

$blik (bool)

This property indicates whether the channel supports BLIK.

$transfer (bool)

This property indicates whether the channel supports bank transfer.

$cards (bool)

This property indicates whether the channel supports card payments.

$ewallets (bool)

This property indicates whether the channel supports e-wallet payments.

$paypal (bool)

This property indicates whether the channel supports PayPal.

Methods

__construct(bool $blik = false, bool $transfer = false, bool $cards = false, bool $ewallets = false, bool $paypal = false)

This method is used to create a new instance of the ChannelType class.

Parameters
  • $blik (bool): Indicates whether the channel supports BLIK.
  • $transfer (bool): Indicates whether the channel supports bank transfer.
  • $cards (bool): Indicates whether the channel supports card payments.
  • $ewallets (bool): Indicates whether the channel supports e-wallet payments.
  • $paypal (bool): Indicates whether the channel supports PayPal.

toArray(): array

This method is used to return an array representation of the ChannelType object.

Return Value
  • Returns an array with a single key channel_types and an array of all the channel type properties.