Added getPaymentMethods in Payment
This commit is contained in:
parent
5c68618416
commit
6121e5eefe
|
|
@ -13,6 +13,21 @@ class Payment
|
|||
* @return array
|
||||
*/
|
||||
public function getSupportedPaymentMethods()
|
||||
{
|
||||
$paymentMethods = $this->getPaymentMethods();
|
||||
|
||||
return [
|
||||
'jump_to_section' => 'payment',
|
||||
'html' => view('shop::checkout.onepage.payment', compact('paymentMethods'))->render()
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all supported payment methods
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getPaymentMethods()
|
||||
{
|
||||
$paymentMethods = [];
|
||||
|
||||
|
|
@ -28,10 +43,7 @@ class Payment
|
|||
}
|
||||
}
|
||||
|
||||
return [
|
||||
'jump_to_section' => 'payment',
|
||||
'html' => view('shop::checkout.onepage.payment', compact('paymentMethods'))->render()
|
||||
];
|
||||
return $paymentMethods;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue