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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue