Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/storage/PhortuneCart.php
| Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Lines | $this->openTransaction(); | ||||
| pht( | pht( | ||||
| 'Cart has wrong status ("%s") to call willApplyCharge(), '. | 'Cart has wrong status ("%s") to call willApplyCharge(), '. | ||||
| 'expected "%s".', | 'expected "%s".', | ||||
| $copy->getStatus(), | $copy->getStatus(), | ||||
| self::STATUS_READY)); | self::STATUS_READY)); | ||||
| } | } | ||||
| $charge->save(); | $charge->save(); | ||||
| $this->setStatus(PhortuneCart::STATUS_PURCHASING)->save(); | $this->setStatus(self::STATUS_PURCHASING)->save(); | ||||
| $this->endReadLocking(); | $this->endReadLocking(); | ||||
| $this->saveTransaction(); | $this->saveTransaction(); | ||||
| return $charge; | return $charge; | ||||
| } | } | ||||
| public function didHoldCharge(PhortuneCharge $charge) { | public function didHoldCharge(PhortuneCharge $charge) { | ||||
| ▲ Show 20 Lines • Show All 542 Lines • Show Last 20 Lines | |||||