Permalink
Browse files

update to mapping, starting to refactor createBillingAgreements

  • Loading branch information...
1 parent 57baa2f commit 9c8855d5c8cf24cc99f3751ae9708de73561b971 @iampersistent iampersistent committed Jan 24, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −2 lib/Vespolina/Billing/Manager/BillingManager.php
  2. +0 −1 tests/Manager/BillingManagerTest.php
@@ -53,15 +53,14 @@ public function createBillingAgreements(OrderInterface $order)
foreach ($order->getItems() as $item) {
$pricingSet = $item->getPricing();
- if ($pricingSet->get)
$startDate = new \DateTime('now');
$billingAgreement = new BillingAgreement();
$billingAgreement
->setPaymentGateway($order->getAttribute('payment_gateway'))
->setPartner($order->getOwner())
->setInitialBillingDate(new \DateTime('now'))
- ->setBillingAmount()
+ ->setBillingAmount($recurringValue)
->setOrderItem($item)
;
}
@@ -17,7 +17,6 @@ public function test()
public function testCreateBillingAgreements()
{
- $this->
$this->markTestIncomplete('test for non-recurring items in order');
}
}

0 comments on commit 9c8855d

Please sign in to comment.