Skip to content

Commit

Permalink
Merge branch 'develop' into BA-278
Browse files Browse the repository at this point in the history
  • Loading branch information
vildanbina authored May 16, 2024
2 parents 741dcaf + bc04115 commit 157f367
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 247 deletions.
30 changes: 0 additions & 30 deletions example/transactions/credit_click.php

This file was deleted.

6 changes: 3 additions & 3 deletions src/PaymentMethods/Billink/Billink.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
use Buckaroo\Models\Model;
use Buckaroo\PaymentMethods\Billink\Models\Capture;
use Buckaroo\PaymentMethods\Billink\Models\Pay;
use Buckaroo\PaymentMethods\CreditClick\Models\Refund;
use Buckaroo\PaymentMethods\Billink\Models\Refund;
use Buckaroo\PaymentMethods\PayablePaymentMethod;
use Buckaroo\Transaction\Response\TransactionResponse;

Expand Down Expand Up @@ -76,11 +76,11 @@ public function capture(): TransactionResponse
*/
public function cancelAuthorize(): TransactionResponse
{
$pay = new Refund($this->payload);
$cancel = new Refund($this->payload);

$this->setPayPayload();

$this->setServiceList('CancelAuthorize', $pay);
$this->setServiceList('CancelAuthorize', $cancel);

return $this->postRequest();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @license https://tldrlegal.com/license/mit-license
*/

namespace Buckaroo\PaymentMethods\CreditClick\Models;
namespace Buckaroo\PaymentMethods\Billink\Models;

use Buckaroo\Models\ServiceParameter;

Expand Down
53 changes: 0 additions & 53 deletions src/PaymentMethods/CreditClick/CreditClick.php

This file was deleted.

65 changes: 0 additions & 65 deletions src/PaymentMethods/CreditClick/Models/Pay.php

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions src/PaymentMethods/PaymentMethodFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
use Buckaroo\PaymentMethods\CreditCard\CreditCard;
use Buckaroo\PaymentMethods\Multibanco\Multibanco;
use Buckaroo\PaymentMethods\Przelewy24\Przelewy24;
use Buckaroo\PaymentMethods\CreditClick\CreditClick;
use Buckaroo\PaymentMethods\PayPerEmail\PayPerEmail;
use Buckaroo\PaymentMethods\PointOfSale\PointOfSale;
use Buckaroo\PaymentMethods\BankTransfer\BankTransfer;
Expand Down Expand Up @@ -92,7 +91,6 @@ class PaymentMethodFactory
'cartebancaire', 'dankort', 'nexi',
'postepay',
],
CreditClick::class => ['creditclick'],
CreditManagement::class => ['credit_management'],
iDeal::class => ['ideal'],
iDealProcessing::class => ['idealprocessing'],
Expand Down
15 changes: 15 additions & 0 deletions src/PaymentMethods/iDeal/iDeal.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@ public function pay(?Model $model = null)
return parent::pay($model ?? new Pay($this->payload));
}

/**
* @param Model|null $model
* @return TransactionResponse
*/
public function payFastCheckout(?Model $model = null)
{
$this->setPayPayload();

$this->request->setData('order', '');

$this->setServiceList('PayFastCheckout', $model ?? new Pay($this->payload));

return $this->postRequest();
}

/**
* @param Model|null $model
* @return TransactionResponse
Expand Down
61 changes: 0 additions & 61 deletions tests/Buckaroo/Payments/CreditClickTest.php

This file was deleted.

14 changes: 14 additions & 0 deletions tests/Buckaroo/Payments/IdealTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,20 @@ public function it_creates_a_ideal_payment()
$this->assertTrue($response->isPendingProcessing());
}

/**
* @return void
* @test
*/
public function it_creates_a_ideal_fast_checkout_payment()
{
$response = $this->buckaroo->method('ideal')->payFastCheckout([
'amountDebit' => 10.10,
'invoice' => uniqid(),
]);

$this->assertTrue($response->isWaitingOnUserInput());
}

/**
* @test
*/
Expand Down

0 comments on commit 157f367

Please sign in to comment.