public function PaymentForm()
{
if (!(bool) $this->Cart()) {
return false;
}
$config = new CheckoutComponentConfig(ShoppingCart::curr(), false);
$config->addComponent(OnsitePaymentCheckoutComponent::create());
$form = PaymentForm::create($this, "PaymentForm", $config);
$form->setActions(FieldList::create(FormAction::create("submitpayment", _t('CheckoutPage.SubmitPayment', "Submit Payment"))));
$form->setFailureLink($this->Link());
$this->extend('updatePaymentForm', $form);
return $form;
}