Permalink
Browse files

fixes on OrderHandler

  • Loading branch information...
1 parent e162a2a commit 6d11fbd892c191ddcb870c02c36096809ffe5263 @iampersistent iampersistent committed Mar 17, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Vespolina/Billing/Handler/OrderHandler.php
@@ -72,7 +72,7 @@ public function initBillingAgreement(BillingAgreementInterface $billingAgreement
//$paymentProfile = $owner->getPreferredPaymentProfile();
$billingAgreement
- ->setPartner($owner)
+ ->setOwner($owner)
//->setPaymentProfile($owner->getPaymentProfile())
;
}
@@ -99,7 +99,7 @@ protected function createOrUpdateBusinessAgreements(array &$agreements, ItemInte
$date = explode(',', $startsOn->format('Y,m'));
$startsOn->setDate($date[0], $date[1], $context['dueDate']);
} else {
- $startsOn = $pricingSet->get('startsOn');
+ $startsOn = new \DateTime($pricingSet->get('startsOn'));
}
$startTimestamp = $startsOn->getTimestamp();

0 comments on commit 6d11fbd

Please sign in to comment.