-
Notifications
You must be signed in to change notification settings - Fork 3
/
TransactionStatus.php
41 lines (36 loc) · 1.23 KB
/
TransactionStatus.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
include __DIR__ . "/../vendor/autoload.php";
use SeBuDesign\Buckaroo\IdealTransaction;
use SeBuDesign\Buckaroo\TransactionStatus;
use SeBuDesign\Buckaroo\Helpers\ServiceHelper;
$oTransaction = new IdealTransaction('CHANGEME', __DIR__ . '/../tests/test.pem');
$iDealResponse1 = $oTransaction
->putInTestMode()
->setAmount(1.23)
->setIdealIssuer(ServiceHelper::IDEAL_BUNQ)
->setInvoice('TEST_INVOICE')
->perform();
$oTransaction = new IdealTransaction('CHANGEME', __DIR__ . '/../tests/test.pem');
$iDealResponse2 = $oTransaction
->putInTestMode()
->setAmount(1.23)
->setIdealIssuer(ServiceHelper::IDEAL_BUNQ)
->setInvoice('TEST_INVOICE')
->perform();
$oTransactionStatus = new TransactionStatus('CHANGEME', __DIR__ . '/../tests/test.pem');
$transactionResponse = $oTransactionStatus
->putInTestMode()
->addTransactionByTransactionKey(
$iDealResponse1->getTransactionKey()
)
->addTransactionByTransactionKey(
$iDealResponse2->getTransactionKey()
)
->addTransactionByTransactionKey(
'74DBD9907FA74E30A9E9FB3EE4404E8X'
)
->addTransactionByTransactionKey(
'74DBD9907FA74E30A9E9FB3EE4404E8D'
)
->perform();
var_dump($transactionResponse);