From 9097c3433ef208c35d08d6bcde9def1d1c9795bc Mon Sep 17 00:00:00 2001 From: Luis Rodrigues Date: Tue, 19 Jan 2016 11:17:41 +0100 Subject: [PATCH 1/2] fixed code format and updated main configuration object fields. --- src/bb-library/Payment/Adapter/SimplePay.php | 36 +++++++++----------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/src/bb-library/Payment/Adapter/SimplePay.php b/src/bb-library/Payment/Adapter/SimplePay.php index 9d4249159..88eb484b7 100644 --- a/src/bb-library/Payment/Adapter/SimplePay.php +++ b/src/bb-library/Payment/Adapter/SimplePay.php @@ -120,7 +120,7 @@ class Payment_Adapter_SimplePay implements \Box\InjectionAwareInterface $title = $this->getInvoiceTitle($invoice); - $invoiceService = $this->di['mod_service']('Invoice'); + $invoiceService = $this->di['mod_service']('Invoice'); $tx->invoice_id = $invoice->id; $tx->type = 'SimplePay Checkout'; @@ -169,15 +169,12 @@ class Payment_Adapter_SimplePay implements \Box\InjectionAwareInterface $form = '
- - + -
'; + + '; $payGatewayService = $this->di['mod_service']('Invoice', 'PayGateway'); $payGateway = $this->di['db']->findOne('PayGateway', 'gateway = "SimplePay"'); @@ -231,7 +227,7 @@ class Payment_Adapter_SimplePay implements \Box\InjectionAwareInterface ':callbackUrl' => $payGatewayService->getCallbackUrl($payGateway, $invoice), ':redirectUrl' => $this->di['tools']->url('invoice/'.$invoice->hash) ); - + return strtr($form, $bindings); } From 6aff442f026cbddf16f04c9607e476066e40635f Mon Sep 17 00:00:00 2001 From: Luis Rodrigues Date: Tue, 19 Jan 2016 11:34:07 +0100 Subject: [PATCH 2/2] Removed old configuration. --- src/bb-library/Payment/Adapter/SimplePay.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bb-library/Payment/Adapter/SimplePay.php b/src/bb-library/Payment/Adapter/SimplePay.php index 88eb484b7..dfec76c8a 100644 --- a/src/bb-library/Payment/Adapter/SimplePay.php +++ b/src/bb-library/Payment/Adapter/SimplePay.php @@ -170,7 +170,7 @@ class Payment_Adapter_SimplePay implements \Box\InjectionAwareInterface