save order
This commit is contained in:
parent
d1dae9b736
commit
c20deac3fe
15 changed files with 739 additions and 301 deletions
|
|
@ -24,6 +24,12 @@ fnc Financing
|
|||
class PayoneController extends Controller
|
||||
{
|
||||
|
||||
const PREAUTHORIZATION = 'preauthorization';
|
||||
const AUTHORIZATION = 'authorization';
|
||||
const CAPTURE = 'capture';
|
||||
const REFUND = 'refund';
|
||||
const DEBIT = 'debit';
|
||||
|
||||
|
||||
private $default = [];
|
||||
|
||||
|
|
@ -38,6 +44,7 @@ class PayoneController extends Controller
|
|||
private $url = [];
|
||||
|
||||
|
||||
|
||||
public function __construct($payment_method = null) {
|
||||
|
||||
if($payment_method){
|
||||
|
|
@ -182,7 +189,8 @@ class PayoneController extends Controller
|
|||
|
||||
//cc
|
||||
|
||||
|
||||
var_dump($response);
|
||||
die();
|
||||
if ($response["status"] == "REDIRECT") { // this happens when the card needs a 3d secure verification
|
||||
header("Location: " . $response["redirecturl"]); // or other redirect method
|
||||
} elseif ($response["status"] == "APPROVED") { // no 3d secure verification required, transaction went through
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ class CheckoutController extends Controller
|
|||
'billing.zipcode'=>'required',
|
||||
'billing.city' => 'required',
|
||||
'accepted_data_checkbox' => 'accepted',
|
||||
'billing.salutation => 'required'
|
||||
);
|
||||
|
||||
if(!Input::get('shipping.same_as_billing')){
|
||||
|
|
@ -59,6 +60,8 @@ class CheckoutController extends Controller
|
|||
'shipping.address'=>'required',
|
||||
'shipping.zipcode'=>'required',
|
||||
'shipping.city' => 'required',
|
||||
'shipping.salutation => 'required'
|
||||
|
||||
]);
|
||||
}
|
||||
$validator = Validator::make(Input::all(), $rules);
|
||||
|
|
@ -83,17 +86,19 @@ class CheckoutController extends Controller
|
|||
|
||||
public function transactionStatus($check){
|
||||
|
||||
if($check == "cancel"){
|
||||
\Session::flash('checkout-error', 'Der Zahlungsvorgang wurde abgebrochen, die Bestellung konnte nicht ausgeführt werden.');
|
||||
return $this->checkout();
|
||||
}
|
||||
$pay = new PayoneController([]);
|
||||
$pay->checkStatus();
|
||||
$data = \Request::all();
|
||||
var_dump($data);
|
||||
$data = \Input::all();
|
||||
var_dump($data);
|
||||
die();
|
||||
if($check == "cancel"){
|
||||
|
||||
\Session::flash('checkout-error', 'Der Zahlungsvorgang wurde abgebrochen, die Bestellung konnte nicht ausgeführt werden.');
|
||||
return $this->checkout();
|
||||
}
|
||||
$pay = new PayoneController([]);
|
||||
$pay->checkStatus();
|
||||
|
||||
}
|
||||
|
||||
public function removeCard($rowId){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue