Differential D10664 Diff 25614 src/applications/phortune/controller/PhortuneCartCheckoutController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phortune/controller/PhortuneCartCheckoutController.php
Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | if ($request->isFormPost()) { | ||||
$provider->applyCharge($method, $charge); | $provider->applyCharge($method, $charge); | ||||
$cart->didApplyCharge($charge); | $cart->didApplyCharge($charge); | ||||
$done_uri = $cart->getDoneURI(); | $done_uri = $cart->getDoneURI(); | ||||
return id(new AphrontRedirectResponse())->setURI($done_uri); | return id(new AphrontRedirectResponse())->setURI($done_uri); | ||||
} | } | ||||
} | } | ||||
$cart_box = $this->buildCartContents($cart); | $cart_table = $this->buildCartContentTable($cart); | ||||
$cart_box->setFormErrors($errors); | |||||
$cart_box = id(new PHUIObjectBoxView()) | |||||
->setFormErrors($errors) | |||||
->setHeaderText(pht('Cart Contents')) | |||||
->appendChild($cart_table); | |||||
$title = pht('Buy Stuff'); | $title = pht('Buy Stuff'); | ||||
if (!$methods) { | if (!$methods) { | ||||
$method_control = id(new AphrontFormStaticControl()) | $method_control = id(new AphrontFormStaticControl()) | ||||
->setLabel(pht('Payment Method')) | ->setLabel(pht('Payment Method')) | ||||
->setValue( | ->setValue( | ||||
phutil_tag('em', array(), pht('No payment methods configured.'))); | phutil_tag('em', array(), pht('No payment methods configured.'))); | ||||
▲ Show 20 Lines • Show All 103 Lines • Show Last 20 Lines |