This commit is contained in:
Benjamin Beganović 2021-01-29 12:00:30 +01:00
parent 8bbfbbb9e1
commit dbade2f497
2 changed files with 12 additions and 18 deletions

View File

@ -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,

View File

@ -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;