mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Working on tests
This commit is contained in:
parent
9c21178413
commit
f73f9b958c
@ -266,6 +266,7 @@ class BasePaymentDriver
|
|||||||
|
|
||||||
public function completeOnsitePurchase($input = false, $paymentMethod = false)
|
public function completeOnsitePurchase($input = false, $paymentMethod = false)
|
||||||
{
|
{
|
||||||
|
\Log::info('completeOnsitePurchase...');
|
||||||
$this->input = count($input) ? $input : false;
|
$this->input = count($input) ? $input : false;
|
||||||
$gateway = $this->gateway();
|
$gateway = $this->gateway();
|
||||||
|
|
||||||
@ -306,7 +307,7 @@ class BasePaymentDriver
|
|||||||
if ($this->isTwoStep() || request()->capture) {
|
if ($this->isTwoStep() || request()->capture) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
\Log::info('starting paymnet...');
|
||||||
// prepare and process payment
|
// prepare and process payment
|
||||||
$data = $this->paymentDetails($paymentMethod);
|
$data = $this->paymentDetails($paymentMethod);
|
||||||
// TODO move to payment driver class
|
// TODO move to payment driver class
|
||||||
@ -333,6 +334,7 @@ class BasePaymentDriver
|
|||||||
|
|
||||||
// wrap up
|
// wrap up
|
||||||
if ($response->isSuccessful() && $ref) {
|
if ($response->isSuccessful() && $ref) {
|
||||||
|
\Log::info('creating paymnet...');
|
||||||
$payment = $this->createPayment($ref, $paymentMethod);
|
$payment = $this->createPayment($ref, $paymentMethod);
|
||||||
|
|
||||||
// TODO move this to stripe driver
|
// TODO move this to stripe driver
|
||||||
|
Loading…
x
Reference in New Issue
Block a user