forked from paytrail/paytrail-php-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'paytrail:master' into master
- Loading branch information
Showing
15 changed files
with
318 additions
and
51 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Paytrail\SDK\Response; | ||
|
||
use Paytrail\SDK\Interfaces\ResponseInterface; | ||
|
||
/** | ||
* Class PaymentResponse | ||
* | ||
* Represents a response object of payment creation. | ||
* | ||
* @package Paytrail\SDK\Response | ||
*/ | ||
class AddCardPaymentResponse implements ResponseInterface | ||
{ | ||
/** | ||
* Assigned transaction ID for the payment. | ||
* | ||
* @var string|null | ||
*/ | ||
protected $transactionId; | ||
|
||
/** | ||
* URL to hosted payment gateway. | ||
* | ||
* @var string|null | ||
*/ | ||
protected $redirectUrl; | ||
|
||
/** | ||
* Get the transaction id. | ||
* | ||
* @return string|null | ||
*/ | ||
public function getTransactionId(): ?string | ||
{ | ||
return $this->transactionId; | ||
} | ||
|
||
/** | ||
* Set the transaction id. | ||
* | ||
* @param string|null $transactionId | ||
* | ||
* @return self Return self to enable chaining. | ||
*/ | ||
public function setTransactionId(?string $transactionId): AddCardPaymentResponse | ||
{ | ||
$this->transactionId = $transactionId; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* Get the redirectUrl. | ||
* | ||
* @return string|null | ||
*/ | ||
public function getRedirectUrl(): ?string | ||
{ | ||
return $this->redirectUrl; | ||
} | ||
|
||
/** | ||
* Set the redirectUrl. | ||
* | ||
* @param string|null $redirectUrl | ||
* | ||
* @return self Return self to enable chaining. | ||
*/ | ||
public function setRedirectUrl(?string $redirectUrl): AddCardPaymentResponse | ||
{ | ||
$this->redirectUrl = $redirectUrl; | ||
|
||
return $this; | ||
} | ||
} |
Oops, something went wrong.