@@ 26-29 (lines=4) @@ | ||
23 | ||
24 | require_once 'Intraface/modules/onlinepayment/OnlinePayment.php'; |
|
25 | $onlinepayment = new OnlinePayment($this->kernel); |
|
26 | if (!$onlinepayment->save(array('belong_to' => 'order', 'belong_to_id' => 1, 'transaction_number' => 111, 'transaction_status' => '000', 'amount' => 200))) { |
|
27 | echo $onlinepayment->error->view(); |
|
28 | die; |
|
29 | } |
|
30 | } |
|
31 | ||
32 | public function createInEurAndAttachToInvoice() { |
|
@@ 41-44 (lines=4) @@ | ||
38 | ||
39 | require_once 'Intraface/modules/onlinepayment/OnlinePayment.php'; |
|
40 | $onlinepayment = new OnlinePayment($this->kernel); |
|
41 | if (!$onlinepayment->save(array('belong_to' => 'invoice', 'belong_to_id' => 1, 'transaction_number' => 111, 'transaction_status' => '000', 'amount' => 100, 'currency' => $currency))) { |
|
42 | echo $onlinepayment->error->view(); |
|
43 | die; |
|
44 | } |
|
45 | } |
|
46 | ||
47 | } |