Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop BB Prefix #81

Merged
merged 1 commit into from
Aug 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Mollie.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
$service = $this->di['mod_service']('invoice', 'transaction');

// create a new transaction so we can reuse the payment ID in the next step
$output = $service->create(array('txn_id' => $payment->id, 'bb_invoice_id' => $invoice->id, 'bb_gateway_id' => $payGateway->id));
$output = $service->create(array('txn_id' => $payment->id, 'invoice_id' => $invoice->id, 'gateway_id' => $payGateway->id));`

// We still need to update the unique ID
$tx = $this->di['db']->getExistingModelById('Transaction', $output);
Expand All @@ -115,22 +115,22 @@

public function processTransaction($api_admin, $id, $data, $gateway_id): void
{
$transid = $this->di['db']->getCell('SELECT id from transaction WHERE s_id = :s_id', array(':s_id' => $data['get']['transid']));

Check failure on line 118 in src/Mollie.php

View workflow job for this annotation

GitHub Actions / PHPStan - FOSSBilling Release

Syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting '-' or T_STRING or T_VARIABLE or T_NUM_STRING on line 118
$tx = $this->di['db']->getExistingModelById('Transaction', $transid);

Check failure on line 119 in src/Mollie.php

View workflow job for this annotation

GitHub Actions / PHPStan - FOSSBilling Release

Syntax error, unexpected T_ENCAPSED_AND_WHITESPACE on line 119
$invoice = $this->di['db']->getExistingModelById('Invoice', $tx->invoice_id);

Check failure on line 120 in src/Mollie.php

View workflow job for this annotation

GitHub Actions / PHPStan - FOSSBilling Release

Syntax error, unexpected T_ENCAPSED_AND_WHITESPACE on line 120
$invoiceService = $this->di['mod_service']('Invoice');

Check failure on line 121 in src/Mollie.php

View workflow job for this annotation

GitHub Actions / PHPStan - FOSSBilling Release

Syntax error, unexpected T_ENCAPSED_AND_WHITESPACE on line 121

$payment = $this->mollie->payments->get($tx->txn_id);

Check failure on line 123 in src/Mollie.php

View workflow job for this annotation

GitHub Actions / PHPStan - FOSSBilling Release

Syntax error, unexpected T_ENCAPSED_AND_WHITESPACE on line 123

if ($tx->status == 'processed') {

Check failure on line 125 in src/Mollie.php

View workflow job for this annotation

GitHub Actions / PHPStan - FOSSBilling Release

Syntax error, unexpected T_ENCAPSED_AND_WHITESPACE on line 125
throw new Payment_Exception("Transaction is already processed");
}

if ($payment->isPaid()) {

Check failure on line 129 in src/Mollie.php

View workflow job for this annotation

GitHub Actions / PHPStan - FOSSBilling Release

Syntax error, unexpected T_ENCAPSED_AND_WHITESPACE on line 129
$client = $this->di['db']->getExistingModelById('Client', $invoice->client_id);

Check failure on line 130 in src/Mollie.php

View workflow job for this annotation

GitHub Actions / PHPStan - FOSSBilling Release

Syntax error, unexpected T_ENCAPSED_AND_WHITESPACE on line 130
$clientService = $this->di['mod_service']('client');

Check failure on line 131 in src/Mollie.php

View workflow job for this annotation

GitHub Actions / PHPStan - FOSSBilling Release

Syntax error, unexpected T_ENCAPSED_AND_WHITESPACE on line 131

$tx->txn_status = 'approved';

Check failure on line 133 in src/Mollie.php

View workflow job for this annotation

GitHub Actions / PHPStan - FOSSBilling Release

Syntax error, unexpected T_ENCAPSED_AND_WHITESPACE on line 133
$tx->status = 'processed';
$tx->updated_at = date('Y-m-d H:i:s');
$this->di['db']->store($tx);
Expand Down
Loading