mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 22:14:36 -04:00
Clean up
This commit is contained in:
parent
2464556ef2
commit
e3559c4a5f
@ -29,13 +29,8 @@ class Blockonomics implements MethodInterface
|
|||||||
{
|
{
|
||||||
use MakesHash;
|
use MakesHash;
|
||||||
|
|
||||||
public $driver_class;
|
public function __construct(public BlockonomicsPaymentDriver $blockonomics)
|
||||||
public $blockonomics;
|
|
||||||
|
|
||||||
public function __construct(BlockonomicsPaymentDriver $driver_class)
|
|
||||||
{
|
{
|
||||||
$this->blockonomics = $driver_class;
|
|
||||||
$this->blockonomics->init();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function authorizeView($data)
|
public function authorizeView($data)
|
||||||
@ -45,12 +40,13 @@ class Blockonomics implements MethodInterface
|
|||||||
public function authorizeRequest($request)
|
public function authorizeRequest($request)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public function authorizeResponse($request)
|
public function authorizeResponse($request)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function getBTCAddress()
|
public function getBTCAddress(): string
|
||||||
{
|
{
|
||||||
$api_key = $this->blockonomics->api_key;
|
$api_key = $this->blockonomics->api_key;
|
||||||
// TODO: remove ?reset=1 before marking PR as ready
|
// TODO: remove ?reset=1 before marking PR as ready
|
||||||
@ -125,7 +121,8 @@ class Blockonomics implements MethodInterface
|
|||||||
$this->blockonomics->client,
|
$this->blockonomics->client,
|
||||||
$this->blockonomics->client->company,
|
$this->blockonomics->client->company,
|
||||||
);
|
);
|
||||||
return redirect()->route('client.payments.show', ['payment' => $this->encodePrimaryKey($payment->id)]);
|
|
||||||
|
return redirect()->route('client.payments.show', ['payment' => $payment->hashed_id]);
|
||||||
|
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
$blockonomics = $this->blockonomics;
|
$blockonomics = $this->blockonomics;
|
||||||
|
@ -100,11 +100,16 @@ class BlockonomicsPaymentDriver extends BaseDriver
|
|||||||
|
|
||||||
public function processPaymentView(array $data)
|
public function processPaymentView(array $data)
|
||||||
{
|
{
|
||||||
|
$this->init();
|
||||||
|
|
||||||
return $this->payment_method->paymentView($data); //this is your custom implementation from here
|
return $this->payment_method->paymentView($data); //this is your custom implementation from here
|
||||||
}
|
}
|
||||||
|
|
||||||
public function processPaymentResponse($request)
|
public function processPaymentResponse($request)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
$this->init();
|
||||||
|
|
||||||
return $this->payment_method->paymentResponse($request);
|
return $this->payment_method->paymentResponse($request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user