Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
farukcam committed Jul 27, 2019
1 parent 0371789 commit dea7375
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ return [
'providers' => [
// ...

Farukcam\Kuveytturk\KuveytturkServiceProvider::class
farukcam\Kuveytturk\KuveytturkServiceProvider::class
],

// ...

'aliases' => [
// ...

'Kuveytturk' => Farukcam\Kuveytturk\Facades\Kuveytturk::class
'Kuveytturk' => farukcam\Kuveytturk\Facades\Kuveytturk::class
],
);
```
Expand Down Expand Up @@ -62,7 +62,7 @@ public function index()
$kuveytturk = Kuveytturk::setName('Faruk Çam')
->setCardNumber(1234567891234567)
->setCardExpireDateMonth(02)
->setCardExpireDateYear(18)
->setCardExpireDateYear(20)
->setCardCvv2(123)
->setOrderId(12345)
->setAmount(100)
Expand Down
2 changes: 1 addition & 1 deletion src/Facades/Kuveytturk.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Copyright (c) 2018 | farukix.com
*/

namespace Farukcam\Kuveytturk\Facades;
namespace farukcam\Kuveytturk\Facades;

use Illuminate\Support\Facades\Facade;

Expand Down
2 changes: 1 addition & 1 deletion src/Http/Base/BaseClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Copyright (c) 2018 | farukix.com
*/

namespace Farukcam\Kuveytturk\Http\Base;
namespace farukcam\Kuveytturk\Http\Base;


class BaseClass {
Expand Down
9 changes: 5 additions & 4 deletions src/Http/Base/Kuveytturk.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @author Faruk Çam <[email protected]>
* Copyright (c) 2018 | farukix.com
*/
namespace Farukcam\Kuveytturk\Http\Base;
namespace farukcam\Kuveytturk\Http\Base;

use Config;
use Exception;
Expand All @@ -26,8 +26,8 @@ protected function process()
. '<CustomerId>' . Config::get("kuveytturk.CustomerId") . '</CustomerId>'
. '<UserName>' . Config::get("kuveytturk.UserName") . '</UserName>'
. '<CardNumber>' . $this->cardnumber . '</CardNumber>'
. '<CardExpireDateYear>' . $this->cardexpiredateyear . '</CardExpireDateYear>'
. '<CardExpireDateMonth>' . $this->cardexpiredatemonth . '</CardExpireDateMonth>'
. '<CardExpireDateYear>' . ($this->cardexpiredateyear < 10 ? '0'.$this->cardexpiredateyear:$this->cardexpiredateyear) . '</CardExpireDateYear>'
. '<CardExpireDateMonth>' . ($this->cardexpiredatemonth < 10 ? '0'.$this->cardexpiredatemonth:$this->cardexpiredatemonth) . '</CardExpireDateMonth>'
. '<CardCVV2>' . $this->cardcvv2 . '</CardCVV2>'
. '<CardHolderName>' . $this->name . '</CardHolderName>'
. '<CardType>' . $this->cardtype . '</CardType>'
Expand All @@ -41,6 +41,7 @@ protected function process()
. '<TransactionSecurity>' . Config::get("kuveytturk.TransactionSecurity") . '</TransactionSecurity>'
. '<TransactionSide>' . Config::get("kuveytturk.Type") . '</TransactionSide>'
. '</KuveytTurkVPosMessage>';

try
{
$ch = curl_init();
Expand Down Expand Up @@ -83,4 +84,4 @@ protected function throwexception($key, $property)
}


}
}
4 changes: 2 additions & 2 deletions src/KuveytturkServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
* Copyright (c) 2018 | farukix.com
*/

namespace Farukcam\Kuveytturk;
namespace farukcam\Kuveytturk;

use Illuminate\Support\ServiceProvider;
use Farukcam\Kuveytturk\Http\Base\Kuveytturk;
use farukcam\Kuveytturk\Http\Base\Kuveytturk;

class KuveytturkServiceProvider extends ServiceProvider {

Expand Down

0 comments on commit dea7375

Please sign in to comment.