Added getPaymentMethods in Payment

This commit is contained in:
jitendra 2019-05-02 10:55:59 +05:30
parent 5c68618416
commit 6121e5eefe
1 changed files with 16 additions and 4 deletions

View File

@ -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;
}
/**