PHP Interface Sonata\Component\Payment\PaymentSelectorInterface

Afficher le fichier Open project: sonata-project/ecommerce Interface Usage Examples

Méthodes publiques

Méthode Description
getAvailableMethods ( Sonata\Component\Basket\BasketInterface $basket = null, Sonata\Component\Customer\AddressInterface $deliveryAddress = null ) : array Returns the available Payment methods for given $basket and $deliveryAddress.
getPayment ( $bank ) : Sonata\Component\Payment\PaymentInterface Returns the Payment method for given $bank.

Method Details

getAvailableMethods() public méthode

Returns the available Payment methods for given $basket and $deliveryAddress.
public getAvailableMethods ( Sonata\Component\Basket\BasketInterface $basket = null, Sonata\Component\Customer\AddressInterface $deliveryAddress = null ) : array
$basket Sonata\Component\Basket\BasketInterface
$deliveryAddress Sonata\Component\Customer\AddressInterface
Résultat array

getPayment() public méthode

Returns the Payment method for given $bank.
public getPayment ( $bank ) : Sonata\Component\Payment\PaymentInterface
$bank The payment method code
Résultat Sonata\Component\Payment\PaymentInterface