PHP Interface Sonata\Component\Payment\PaymentSelectorInterface

ファイルを表示 Open project: sonata-project/ecommerce Interface Usage Examples

Public Methods

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.

Method Details

getAvailableMethods() public method

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
return array

getPayment() public method

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