mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 05:14:30 -04:00
wip
This commit is contained in:
parent
8bbfbbb9e1
commit
dbade2f497
@ -215,7 +215,7 @@ class CheckoutComPaymentDriver extends BaseDriver
|
|||||||
$request->setMethod('POST');
|
$request->setMethod('POST');
|
||||||
$request->request->add(['payment_hash' => $payment_hash->hash]);
|
$request->request->add(['payment_hash' => $payment_hash->hash]);
|
||||||
|
|
||||||
$this->setPaymentHash($payment_hash);
|
//$this->setPaymentHash($payment_hash);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$response = $this->gateway->payments()->request($payment);
|
$response = $this->gateway->payments()->request($payment);
|
||||||
@ -252,13 +252,6 @@ class CheckoutComPaymentDriver extends BaseDriver
|
|||||||
$amount
|
$amount
|
||||||
);
|
);
|
||||||
|
|
||||||
PaymentFailureMailer::dispatch(
|
|
||||||
$this->client,
|
|
||||||
$response,
|
|
||||||
$this->client->company,
|
|
||||||
$amount
|
|
||||||
);
|
|
||||||
|
|
||||||
$message = [
|
$message = [
|
||||||
'server_response' => $response,
|
'server_response' => $response,
|
||||||
'data' => $payment_hash->data,
|
'data' => $payment_hash->data,
|
||||||
|
@ -86,6 +86,7 @@ class AutoBillInvoice extends AbstractService
|
|||||||
|
|
||||||
$payment = $gateway_token->gateway
|
$payment = $gateway_token->gateway
|
||||||
->driver($this->client)
|
->driver($this->client)
|
||||||
|
->setPaymentHash($payment_hash)
|
||||||
->tokenBilling($gateway_token, $payment_hash);
|
->tokenBilling($gateway_token, $payment_hash);
|
||||||
|
|
||||||
return $this->invoice;
|
return $this->invoice;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user