sonata-project/ecommerce — pull request #239 by loicolas (2014-04-17 08:22:05+00:00)
Title: Incorrect Address Type send to Payment Selector

Sonata\Component\Payment\Selector -> getAvailableMethods()expect to have a BillingAddress as second parameters, but it's the basket's delivery address which is send.

Moreover, in the case of a takeaway delivery, we don't have a delivery address, but we need billing methods.