-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from SwedbankPay/feature/checkoutv3
Checkout v3
- Loading branch information
Showing
11 changed files
with
237 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/SwedbankPay/Api/Service/Paymentorder/Transaction/Request/TransactionCancelV3.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace SwedbankPay\Api\Service\Paymentorder\Transaction\Request; | ||
|
||
use SwedbankPay\Api\Service\Paymentorder\Transaction\Resource\Response\TransactionCancel as TransactionCancelResponse; | ||
use SwedbankPay\Api\Service\Request; | ||
|
||
/** | ||
* TransactionCancel for Checkout v3 | ||
*/ | ||
class TransactionCancelV3 extends Request | ||
{ | ||
public function setup() | ||
{ | ||
$this->setOperationRel('cancel'); | ||
$this->setResponseResourceFQCN(TransactionCancelResponse::class); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/SwedbankPay/Api/Service/Paymentorder/Transaction/Request/TransactionCaptureV3.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace SwedbankPay\Api\Service\Paymentorder\Transaction\Request; | ||
|
||
use SwedbankPay\Api\Service\Paymentorder\Transaction\Resource\Response\TransactionCapture as TransactionCaptureResponse; | ||
use SwedbankPay\Api\Service\Request; | ||
|
||
/** | ||
* TransactionCaptureV3 for Checkout v3 | ||
*/ | ||
class TransactionCaptureV3 extends Request | ||
{ | ||
public function setup() | ||
{ | ||
$this->setOperationRel('capture'); | ||
$this->setResponseResourceFQCN(TransactionCaptureResponse::class); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/SwedbankPay/Api/Service/Paymentorder/Transaction/Request/TransactionReversalV3.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace SwedbankPay\Api\Service\Paymentorder\Transaction\Request; | ||
|
||
use SwedbankPay\Api\Service\Paymentorder\Transaction\Resource\Response\TransactionReversal as TransactionRevResponse; | ||
use SwedbankPay\Api\Service\Request; | ||
|
||
/** | ||
* TransactionReversalV3 for Checkout v3 | ||
*/ | ||
class TransactionReversalV3 extends Request | ||
{ | ||
public function setup() | ||
{ | ||
$this->setOperationRel('reversal'); | ||
$this->setResponseResourceFQCN(TransactionRevResponse::class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters