Method | 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. |
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 | |
return | array |
public getPayment ( $bank ) : Sonata\Component\Payment\PaymentInterface | ||
$bank | The payment method code | |
return | Sonata\Component\Payment\PaymentInterface |