PHP 인터페이스 Sonata\Component\Payment\PaymentSelectorInterface

파일 보기 프로젝트 열기: sonata-project/ecommerce 0 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

getAvailableMethods() 공개 메소드

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
리턴 array

getPayment() 공개 메소드

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