mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 21:54:30 -04:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
fbf14378a7
@ -141,7 +141,8 @@ class PaymentController extends BaseController
|
|||||||
if ($useToken || $paymentType != PAYMENT_TYPE_CREDIT_CARD
|
if ($useToken || $paymentType != PAYMENT_TYPE_CREDIT_CARD
|
||||||
|| $gateway->id == GATEWAY_EWAY
|
|| $gateway->id == GATEWAY_EWAY
|
||||||
|| $gateway->id == GATEWAY_TWO_CHECKOUT
|
|| $gateway->id == GATEWAY_TWO_CHECKOUT
|
||||||
|| $gateway->id == GATEWAY_PAYFAST) {
|
|| $gateway->id == GATEWAY_PAYFAST
|
||||||
|
|| $gateway->id == GATEWAY_MOLLIE) {
|
||||||
if (Session::has('error')) {
|
if (Session::has('error')) {
|
||||||
Session::reflash();
|
Session::reflash();
|
||||||
return Redirect::to('view/'.$invitationKey);
|
return Redirect::to('view/'.$invitationKey);
|
||||||
@ -487,7 +488,9 @@ class PaymentController extends BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (method_exists($gateway, 'completePurchase') && !$accountGateway->isGateway(GATEWAY_TWO_CHECKOUT)) {
|
if (method_exists($gateway, 'completePurchase')
|
||||||
|
&& !$accountGateway->isGateway(GATEWAY_TWO_CHECKOUT)
|
||||||
|
&& !$accountGateway->isGateway(GATEWAY_MOLLIE)) { // TODO: implement webhook
|
||||||
$details = $this->paymentService->getPaymentDetails($invitation, $accountGateway);
|
$details = $this->paymentService->getPaymentDetails($invitation, $accountGateway);
|
||||||
$response = $gateway->completePurchase($details)->send();
|
$response = $gateway->completePurchase($details)->send();
|
||||||
$ref = $response->getTransactionReference() ?: $token;
|
$ref = $response->getTransactionReference() ?: $token;
|
||||||
|
@ -392,8 +392,9 @@ if (!defined('CONTACT_EMAIL')) {
|
|||||||
define('PAYMENT_LIBRARY_PHP_PAYMENTS', 2);
|
define('PAYMENT_LIBRARY_PHP_PAYMENTS', 2);
|
||||||
|
|
||||||
define('GATEWAY_AUTHORIZE_NET', 1);
|
define('GATEWAY_AUTHORIZE_NET', 1);
|
||||||
define('GATEWAY_EWAY', 4);
|
|
||||||
define('GATEWAY_AUTHORIZE_NET_SIM', 2);
|
define('GATEWAY_AUTHORIZE_NET_SIM', 2);
|
||||||
|
define('GATEWAY_EWAY', 4);
|
||||||
|
define('GATEWAY_MOLLIE', 9);
|
||||||
define('GATEWAY_PAYFAST', 13);
|
define('GATEWAY_PAYFAST', 13);
|
||||||
define('GATEWAY_PAYPAL_EXPRESS', 17);
|
define('GATEWAY_PAYPAL_EXPRESS', 17);
|
||||||
define('GATEWAY_PAYPAL_PRO', 18);
|
define('GATEWAY_PAYPAL_PRO', 18);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user