-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SEPA Direct Debit Core Support (#248)
- Loading branch information
1 parent
ee391de
commit c944daa
Showing
7 changed files
with
111 additions
and
2 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
26 changes: 26 additions & 0 deletions
26
lib/Checkout/Instruments/Create/CreateSepaInstrumentRequest.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,26 @@ | ||
<?php | ||
|
||
namespace Checkout\Instruments\Create; | ||
|
||
use Checkout\Common\AccountHolder; | ||
use Checkout\Common\InstrumentType; | ||
|
||
class CreateSepaInstrumentRequest extends CreateInstrumentRequest | ||
{ | ||
|
||
public function __construct() | ||
{ | ||
parent::__construct(InstrumentType::$sepa); | ||
} | ||
|
||
/** | ||
* @var InstrumentData | ||
*/ | ||
public $instrument_data; | ||
|
||
/** | ||
* @var AccountHolder | ||
*/ | ||
public $account_holder; | ||
|
||
} |
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,36 @@ | ||
<?php | ||
|
||
namespace Checkout\Instruments\Create; | ||
|
||
class InstrumentData | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public $account_number; | ||
|
||
/** | ||
* @var string values of Country | ||
*/ | ||
public $country; | ||
|
||
/** | ||
* @var string values of Currency | ||
*/ | ||
public $currency; | ||
|
||
/** | ||
* @var string values of PaymentType | ||
*/ | ||
public $payment_type; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $mandate_id; | ||
|
||
/** | ||
* @var DateTime | ||
*/ | ||
public $date_of_signature; | ||
} |
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