Invipay_Ipcpaygate - Version 1.0.0.1

Version Notes

Rozszerzone informacje w panelu administratora, w przypadku porzucenia koszyka przez klienta.

Download this release

Release Info

Developer inviPay.com
Extension Invipay_Ipcpaygate
Version 1.0.0.1
Comparing to
See all releases


Code changes from version 1.0.0.0 to 1.0.0.1

Files changed (30) hide show
  1. app/code/community/Invipay/.DS_Store +0 -0
  2. app/code/community/Invipay/Common/.DS_Store +0 -0
  3. app/code/community/Invipay/Common/Apiclient/.DS_Store +0 -0
  4. app/code/community/Invipay/Common/Apiclient/dto/.DS_Store +0 -0
  5. app/code/community/Invipay/Common/Apiclient/dto/paygateapiservice/PaymentData.class.php +2 -5
  6. app/code/community/Invipay/Common/Apiclient/dto/paygateapiservice/PaymentRequestStatus.enum.php +1 -0
  7. app/code/community/Invipay/Common/Apiclient/examples/configuration.json +5 -0
  8. app/code/community/Invipay/Common/Apiclient/examples/example.common.php +21 -0
  9. app/code/community/Invipay/Common/Apiclient/examples/liabilities.example.php +261 -0
  10. app/code/community/Invipay/Common/Apiclient/examples/paygate.callback.example.php +36 -0
  11. app/code/community/Invipay/Common/Apiclient/examples/paygate.example.php +106 -0
  12. app/code/community/Invipay/Common/Apiclient/examples/reports.example.php +32 -0
  13. app/code/community/Invipay/Common/Apiclient/examples/test.example.php +71 -0
  14. app/code/community/Invipay/Common/Apiclient/examples/transactions.example.php +202 -0
  15. app/code/community/Invipay/Ipcpaygate/.DS_Store +0 -0
  16. app/code/community/Invipay/Ipcpaygate/Block/.DS_Store +0 -0
  17. app/code/community/Invipay/Ipcpaygate/Block/Widgets/.DS_Store +0 -0
  18. app/code/community/Invipay/Ipcpaygate/Helper/.DS_Store +0 -0
  19. app/code/community/Invipay/Ipcpaygate/Model/.DS_Store +0 -0
  20. app/code/community/Invipay/Ipcpaygate/Model/System/.DS_Store +0 -0
  21. app/code/community/Invipay/Ipcpaygate/Model/System/Config/.DS_Store +0 -0
  22. app/code/community/Invipay/Ipcpaygate/Model/System/Config/Source/.DS_Store +0 -0
  23. app/code/community/Invipay/Ipcpaygate/controllers/PaymentController.php +6 -0
  24. app/code/community/Invipay/Ipcpaygate/etc/config.xml +1 -1
  25. app/code/community/Invipay/Ipcpaygate/sql/.DS_Store +0 -0
  26. app/code/community/Invipay/Ipcpaygate/sql/ipcpaygate_setup/.DS_Store +0 -0
  27. app/design/frontend/base/default/template/ipcpaygate/.DS_Store +0 -0
  28. app/design/frontend/base/default/template/ipcpaygate/redirect.phtml +1 -1
  29. app/design/frontend/base/default/template/ipcpaygate/wait.phtml +1 -1
  30. package.xml +17 -10
app/code/community/Invipay/.DS_Store DELETED
Binary file
app/code/community/Invipay/Common/.DS_Store DELETED
Binary file
app/code/community/Invipay/Common/Apiclient/.DS_Store DELETED
Binary file
app/code/community/Invipay/Common/Apiclient/dto/.DS_Store DELETED
Binary file
app/code/community/Invipay/Common/Apiclient/dto/paygateapiservice/PaymentData.class.php CHANGED
@@ -2,14 +2,14 @@
2
 
3
  require_once(dirname(__FILE__) ."/PaymentRequestStatus.enum.php");
4
  require_once(dirname(__FILE__) ."/../Contractor.class.php");
 
5
 
6
- class PaymentData
7
  {
8
 
9
  protected $paymentId;
10
  protected $transactionId;
11
  protected $buyer;
12
- protected $created;
13
  protected $timeoutDate;
14
  protected $status;
15
  protected $note;
@@ -23,9 +23,6 @@ class PaymentData
23
  public function getBuyer(){ return $this->buyer; }
24
  public function setBuyer(Contractor $buyer){ $this->buyer = $buyer; }
25
 
26
- public function getCreated(){ return $this->created; }
27
- public function setCreated($created){ $this->created = $created; }
28
-
29
  public function getTimeoutDate(){ return $this->timeoutDate; }
30
  public function setTimeoutDate($timeoutDate){ $this->timeoutDate = $timeoutDate; }
31
 
2
 
3
  require_once(dirname(__FILE__) ."/PaymentRequestStatus.enum.php");
4
  require_once(dirname(__FILE__) ."/../Contractor.class.php");
5
+ require_once(dirname(__FILE__) ."/../BaseApiData.class.php");
6
 
7
+ class PaymentData extends BaseApiData
8
  {
9
 
10
  protected $paymentId;
11
  protected $transactionId;
12
  protected $buyer;
 
13
  protected $timeoutDate;
14
  protected $status;
15
  protected $note;
23
  public function getBuyer(){ return $this->buyer; }
24
  public function setBuyer(Contractor $buyer){ $this->buyer = $buyer; }
25
 
 
 
 
26
  public function getTimeoutDate(){ return $this->timeoutDate; }
27
  public function setTimeoutDate($timeoutDate){ $this->timeoutDate = $timeoutDate; }
28
 
app/code/community/Invipay/Common/Apiclient/dto/paygateapiservice/PaymentRequestStatus.enum.php CHANGED
@@ -7,6 +7,7 @@ abstract class PaymentRequestStatus
7
  const OUT_OF_LIMIT = "OUT_OF_LIMIT";
8
  const COMPLETED = "COMPLETED";
9
  const TIMEDOUT = "TIMEDOUT";
 
10
  }
11
 
12
  ?>
7
  const OUT_OF_LIMIT = "OUT_OF_LIMIT";
8
  const COMPLETED = "COMPLETED";
9
  const TIMEDOUT = "TIMEDOUT";
10
+ const CANCELED = "CANCELED";
11
  }
12
 
13
  ?>
app/code/community/Invipay/Common/Apiclient/examples/configuration.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ {
2
+ "url": "http://demo.invipay.com/services/api/rest",
3
+ "apiKey": "c0b665b5-dabe-4bf6-b07a-d91c05c815f5",
4
+ "signatureKey": "373bbeae-6f35-49d4-be81-22a6f0f4f1d6"
5
+ }
app/code/community/Invipay/Common/Apiclient/examples/example.common.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ function getConfig()
4
+ {
5
+ return json_decode(file_get_contents(dirname(__FILE__).'/configuration.json'), true);
6
+ }
7
+
8
+ function println($txt)
9
+ {
10
+ echo $txt."\r\n";
11
+ }
12
+
13
+ function printDump($txt, $obj)
14
+ {
15
+ println($txt);
16
+ println('<pre>');
17
+ var_dump($obj);
18
+ println('</pre>');
19
+ }
20
+
21
+ ?>
app/code/community/Invipay/Common/Apiclient/examples/liabilities.example.php ADDED
@@ -0,0 +1,261 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ require_once(dirname(__FILE__) ."/example.common.php");
4
+ require_once(dirname(__FILE__) ."/../LiabilitiesApiClient.class.php");
5
+
6
+ $api_config = getConfig();
7
+
8
+ $client = new LiabilitiesApiClient($api_config['url'], $api_config['apiKey'], $api_config['signatureKey']);
9
+
10
+ // Commission Invoices
11
+ {
12
+ $randomItemId = null;
13
+ $randomItemAttachmentId = null;
14
+
15
+ // listCommissionInvoices
16
+ {
17
+ println('<h1>listCommissionInvoices</h1>');
18
+
19
+ try
20
+ {
21
+ $filter = new ListFilter();
22
+
23
+ $result = $client->listCommissionInvoices($filter);
24
+
25
+ $randomItemIndex = array_rand($result);
26
+ if ($randomItemIndex !== null)
27
+ {
28
+ $randomItemId = $result[$randomItemIndex]->getId();
29
+ $randomItemAttachmentId = $result[$randomItemIndex]->getAttachment() !== null ? $result[$randomItemIndex]->getAttachment()->getId() : null;
30
+ }
31
+
32
+ printDump('<h2>Request</h2>', $filter);
33
+ printDump('<h2>Result</h2>', $result);
34
+ }
35
+ catch (Exception $ex)
36
+ {
37
+ printDump('<h2>Exception</h2>', $ex);
38
+ }
39
+
40
+ println('<hr>');
41
+ }
42
+
43
+ // getCommissionInvoice
44
+ {
45
+ println('<h1>getCommissionInvoice</h1>');
46
+ try
47
+ {
48
+ if ($randomItemId !== null )
49
+ {
50
+ $result = $client->getCommissionInvoice($randomItemId);
51
+ printDump('<h2>Result</h2>', $result);
52
+ }
53
+ else
54
+ {
55
+ printDump('<h2>Result</h2>', null);
56
+ }
57
+ }
58
+ catch (Exception $ex)
59
+ {
60
+ printDump('<h2>Exception</h2>', $ex);
61
+ }
62
+
63
+ println('<hr>');
64
+ }
65
+
66
+ // downloadCommissionInvoiceDocument
67
+ {
68
+ println('<h1>downloadCommissionInvoiceDocument</h1>');
69
+
70
+ try
71
+ {
72
+ if ($randomItemAttachmentId !== null)
73
+ {
74
+ $result = $client->downloadCommissionInvoiceDocument($randomItemAttachmentId);
75
+ $outputPath = 'output/'.$randomItemAttachmentId.'.pdf';
76
+ file_put_contents($outputPath, $result);
77
+
78
+ printDump('<h2>Result</h2>', $outputPath);
79
+ }
80
+ else
81
+ {
82
+ printDump('<h2>Result</h2>', null);
83
+ }
84
+ }
85
+ catch (Exception $ex)
86
+ {
87
+ printDump('<h2>Exception</h2>', $ex);
88
+ }
89
+
90
+ println('<hr>');
91
+ }
92
+ }
93
+
94
+ // Interest Invoices
95
+ {
96
+ $randomItemId = null;
97
+ $randomItemAttachmentId = null;
98
+
99
+ // listCommissionInvoices
100
+ {
101
+ println('<h1>listInterestInvoices</h1>');
102
+
103
+ try
104
+ {
105
+ $filter = new ListFilter();
106
+
107
+ $result = $client->listInterestInvoices($filter);
108
+
109
+ $randomItemIndex = array_rand($result);
110
+ if ($randomItemIndex !== null)
111
+ {
112
+ $randomItemId = $result[$randomItemIndex]->getId();
113
+ $randomItemAttachmentId = $result[$randomItemIndex]->getAttachment() !== null ? $result[$randomItemIndex]->getAttachment()->getId() : null;
114
+ }
115
+
116
+ printDump('<h2>Request</h2>', $filter);
117
+ printDump('<h2>Result</h2>', $result);
118
+ }
119
+ catch (Exception $ex)
120
+ {
121
+ printDump('<h2>Exception</h2>', $ex);
122
+ }
123
+
124
+ println('<hr>');
125
+ }
126
+
127
+ // getInterestInvoice
128
+ {
129
+ println('<h1>getInterestInvoice</h1>');
130
+ try
131
+ {
132
+ if ($randomItemId !== null)
133
+ {
134
+ $result = $client->getInterestInvoice($randomItemId);
135
+ printDump('<h2>Result</h2>', $result);
136
+ }
137
+ else
138
+ {
139
+ printDump('<h2>Result</h2>', null);
140
+ }
141
+ }
142
+ catch (Exception $ex)
143
+ {
144
+ printDump('<h2>Exception</h2>', $ex);
145
+ }
146
+
147
+ println('<hr>');
148
+ }
149
+
150
+ // downloadCommissionInvoiceDocument
151
+ {
152
+ println('<h1>downloadInterestInvoiceDocument</h1>');
153
+
154
+ try
155
+ {
156
+ if ($randomItemAttachmentId !== null)
157
+ {
158
+ $result = $client->downloadInterestInvoiceDocument($randomItemAttachmentId);
159
+ $outputPath = 'output/'.$randomItemAttachmentId.'.pdf';
160
+ file_put_contents($outputPath, $result);
161
+
162
+ printDump('<h2>Result</h2>', $outputPath);
163
+ }
164
+ else
165
+ {
166
+ printDump('<h2>Result</h2>', null);
167
+ }
168
+ }
169
+ catch (Exception $ex)
170
+ {
171
+ printDump('<h2>Exception</h2>', $ex);
172
+ }
173
+
174
+ println('<hr>');
175
+ }
176
+ }
177
+
178
+
179
+ // Interest notes
180
+ {
181
+ $randomItemId = null;
182
+ $randomItemAttachmentId = null;
183
+
184
+ // listCommissionInvoices
185
+ {
186
+ println('<h1>listInterestNotes</h1>');
187
+
188
+ try
189
+ {
190
+ $filter = new ListFilter();
191
+
192
+ $result = $client->listInterestNotes($filter);
193
+
194
+ $randomItemIndex = array_rand($result);
195
+ if ($randomItemIndex !== null)
196
+ {
197
+ $randomItemId = $result[$randomItemIndex]->getId();
198
+ $randomItemAttachmentId = $result[$randomItemIndex]->getAttachment() !== null ? $result[$randomItemIndex]->getAttachment()->getId() : null;
199
+ }
200
+
201
+ printDump('<h2>Request</h2>', $filter);
202
+ printDump('<h2>Result</h2>', $result);
203
+ }
204
+ catch (Exception $ex)
205
+ {
206
+ printDump('<h2>Exception</h2>', $ex);
207
+ }
208
+
209
+ println('<hr>');
210
+ }
211
+
212
+ // getInterestNote
213
+ {
214
+ println('<h1>getInterestNote</h1>');
215
+ try
216
+ {
217
+ if ($randomItemId !== null)
218
+ {
219
+ $result = $client->getInterestNote($randomItemId);
220
+ printDump('<h2>Result</h2>', $result);
221
+ }
222
+ else
223
+ {
224
+ printDump('<h2>Result</h2>', null);
225
+ }
226
+ }
227
+ catch (Exception $ex)
228
+ {
229
+ printDump('<h2>Exception</h2>', $ex);
230
+ }
231
+
232
+ println('<hr>');
233
+ }
234
+
235
+ // downloadInterestNoteDocument
236
+ {
237
+ println('<h1>downloadInterestNoteDocument</h1>');
238
+
239
+ try
240
+ {
241
+ if ($randomItemAttachmentId !== null)
242
+ {
243
+ $result = $client->downloadInterestNoteDocument($randomItemAttachmentId);
244
+ $outputPath = 'output/'.$randomItemAttachmentId.'.pdf';
245
+ file_put_contents($outputPath, $result);
246
+
247
+ printDump('<h2>Result</h2>', $outputPath);
248
+ }
249
+ else
250
+ {
251
+ printDump('<h2>Result</h2>', null);
252
+ }
253
+ }
254
+ catch (Exception $ex)
255
+ {
256
+ printDump('<h2>Exception</h2>', $ex);
257
+ }
258
+
259
+ println('<hr>');
260
+ }
261
+ }
app/code/community/Invipay/Common/Apiclient/examples/paygate.callback.example.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ ob_start();
4
+
5
+ require_once(dirname(__FILE__) ."/example.common.php");
6
+ require_once(dirname(__FILE__) ."/../PaygateApiClient.class.php");
7
+
8
+ $api_config = getConfig();
9
+
10
+ $client = new PaygateApiClient($api_config['url'], $api_config['apiKey'], $api_config['signatureKey']);
11
+
12
+ $paymentData = $client->paymentStatusFromCallbackPost(CallbackDataFormat::JSON);
13
+
14
+ if ($paymentData !== null)
15
+ {
16
+ $outputPath = dirname(__FILE__).'/output/' . $paymentData->getPaymentId() . '.payment.status.txt';
17
+ file_put_contents($outputPath, print_r($paymentData, true));
18
+ }
19
+
20
+ {
21
+ $outputPath = dirname(__FILE__).'/output/payment.debug.txt';
22
+ $outputData =
23
+ "Script execution flush:\r\n-----\r\n" .
24
+ ob_get_flush() .
25
+ "\r\n\r\n" .
26
+ "Last error:\r\n-----\r\n" .
27
+ print_r(error_get_last(), true) .
28
+ "\r\n\r\n" .
29
+ "Script input data:\r\n-----\r\n" .
30
+ file_get_contents('php://input');
31
+ file_put_contents($outputPath, $outputData);
32
+ }
33
+
34
+
35
+
36
+ ?>
app/code/community/Invipay/Common/Apiclient/examples/paygate.example.php ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ require_once(dirname(__FILE__) ."/example.common.php");
4
+ require_once(dirname(__FILE__) ."/../PaygateApiClient.class.php");
5
+
6
+ $api_config = getConfig();
7
+
8
+ $client = new PaygateApiClient($api_config['url'], $api_config['apiKey'], $api_config['signatureKey']);
9
+
10
+ $paymentId = null;
11
+
12
+ // Create new payment
13
+ {
14
+ println('<h1>createPayment</h1>');
15
+
16
+ $request = new PaymentCreationData();
17
+ $request->setReturnUrl("http://your.server.com/payment/return");
18
+ $request->setStatusUrl("http://your.server.com/payment/status");
19
+ $request->setStatusDataFormat(CallbackDataFormat::JSON);
20
+ $request->setDocumentNumber("No risk ustawiony ręcznie " + uniqid());
21
+ $request->setIssueDate(time() * 1000);
22
+ $request->setDueDate((time() + 60 * 60 * 24 * 7) * 1000);
23
+ $request->setPriceGross(123.00);
24
+ $request->setCurrency("PLN");
25
+ $request->setNote("My note");
26
+ $request->setNoRisk(true);
27
+ $request->setIsInvoice(false);
28
+ $request->setBuyerGovId('7895653737');
29
+ $request->setBuyerEmail('test@test.pl');
30
+
31
+ try
32
+ {
33
+ $result = $client->createPayment($request);
34
+
35
+ $paymentId = $result->getPaymentId();
36
+
37
+ printDump('<h2>Request</h2>', $request);
38
+ printDump('<h2>Result</h2>', $result);
39
+ }
40
+ catch (Exception $ex)
41
+ {
42
+ printDump('<h2>Exception</h2>', $ex);
43
+ }
44
+
45
+
46
+ println('<hr>');
47
+ }
48
+
49
+ // // Get payment current informations
50
+ // {
51
+ // println('<h1>getPayment</h1>');
52
+
53
+ // try
54
+ // {
55
+ // $result = $client->getPayment($paymentId);
56
+
57
+ // printDump('<h2>Result</h2>', $result);
58
+ // }
59
+ // catch (Exception $ex)
60
+ // {
61
+ // printDump('<h2>Exception</h2>', $ex);
62
+ // }
63
+
64
+ // println('<hr>');
65
+ // }
66
+
67
+ // // Manage payment
68
+ // {
69
+ // println('<h1>managePayment</h1>');
70
+
71
+ // try
72
+ // {
73
+ // $request = new PaymentManagementData();
74
+ // $request->setPaymentId($paymentId);
75
+ // $request->setDoConfirmDelivery(true);
76
+
77
+ // {
78
+ // $conversionData = new OrderToInvoiceData();
79
+ // $conversionData->setInvoiceDocumentNumber("TestInvoice/1/2/3/".uniqid());
80
+ // $conversionData->setIssueDate(time() * 1000);
81
+ // $conversionData->setDueDate((time() + 60 * 60 * 24 * 7) * 1000);
82
+
83
+ // $request->setConversionData($conversionData);
84
+ // }
85
+
86
+ // {
87
+ // $document = new FileData();
88
+ // $document->setFromFile(dirname(__FILE__).'/data/test.pdf');
89
+
90
+ // $request->setDocument($document);
91
+ // }
92
+
93
+ // $result = $client->managePayment($request);
94
+
95
+ // printDump('<h2>Result</h2>', $result);
96
+ // }
97
+ // catch (Exception $ex)
98
+ // {
99
+ // printDump('<h2>Exception</h2>', $ex);
100
+ // }
101
+
102
+ // println('<hr>');
103
+ // }
104
+
105
+
106
+ // ?>
app/code/community/Invipay/Common/Apiclient/examples/reports.example.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ require_once(dirname(__FILE__) ."/example.common.php");
4
+ require_once(dirname(__FILE__) ."/../ReportsApiClient.class.php");
5
+
6
+ $api_config = getConfig();
7
+
8
+ $client = new ReportsApiClient($api_config['url'], $api_config['apiKey'], $api_config['signatureKey']);
9
+
10
+ // getAccountantReport
11
+ {
12
+ println('<h1>getAccountantReport</h1>');
13
+
14
+ try
15
+ {
16
+ $filter = new ReportFilter();
17
+ $filter->setFromDate(mktime(0,0,0,1,1,2015) * 1000);
18
+ $filter->setToDate( mktime(0,0,0,31,12,2015) * 1000);
19
+
20
+ $result = $client->getAccountantReport($filter);
21
+
22
+ printDump('<h2>Result</h2>', $result);
23
+ }
24
+ catch (Exception $ex)
25
+ {
26
+ printDump('<h2>Exception</h2>', $ex);
27
+ }
28
+
29
+ println('<hr>');
30
+ }
31
+
32
+ ?>
app/code/community/Invipay/Common/Apiclient/examples/test.example.php ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ require_once(dirname(__FILE__) ."/example.common.php");
4
+ require_once(dirname(__FILE__) ."/../TestApiClient.class.php");
5
+
6
+ $api_config = getConfig();
7
+
8
+ $client = new TestApiClient($api_config['url'], $api_config['apiKey'], $api_config['signatureKey']);
9
+
10
+ // getDate
11
+ {
12
+ println('<h1>getDate</h1>');
13
+
14
+ try
15
+ {
16
+ $result = $client->getDate();
17
+
18
+ printDump('<h2>Result</h2>', $result);
19
+ }
20
+ catch (Exception $ex)
21
+ {
22
+ printDump('<h2>Exception</h2>', $ex);
23
+ }
24
+
25
+ println('<hr>');
26
+ }
27
+
28
+ // echoMessage
29
+ {
30
+ println('<h1>echoMessage</h1>');
31
+
32
+ $request = new EchoIn();
33
+ $request->setMessage("Hello world ążłóćł");
34
+ $request->setReverse(true);
35
+
36
+ try
37
+ {
38
+ $result = $client->echoMessage($request);
39
+
40
+ printDump('<h2>Request</h2>', $request);
41
+ printDump('<h2>Result</h2>', $result);
42
+ }
43
+ catch (Exception $ex)
44
+ {
45
+ printDump('<h2>Exception</h2>', $ex);
46
+ }
47
+
48
+ println('<hr>');
49
+
50
+ }
51
+
52
+
53
+ // whoAmI
54
+ {
55
+ println('<h1>whoAmI</h1>');
56
+
57
+ try
58
+ {
59
+ $result = $client->whoAmI($api_config['apiKey']);
60
+
61
+ printDump('<h2>Result</h2>', $result);
62
+ }
63
+ catch (Exception $ex)
64
+ {
65
+ printDump('<h2>Exception</h2>', $ex);
66
+ }
67
+
68
+ println('<hr>');
69
+ }
70
+
71
+ ?>
app/code/community/Invipay/Common/Apiclient/examples/transactions.example.php ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ require_once(dirname(__FILE__) ."/example.common.php");
4
+ require_once(dirname(__FILE__) ."/../TransactionsApiClient.class.php");
5
+
6
+ $api_config = getConfig();
7
+
8
+ $client = new TransactionsApiClient($api_config['url'], $api_config['apiKey'], $api_config['signatureKey']);
9
+
10
+ // createInvoice
11
+ {
12
+ println('<h1>createInvoice</h1>');
13
+
14
+ try
15
+ {
16
+ $request = new InvoiceData();
17
+ $request->setDocumentNumber('Test/'.uniqid());
18
+ $request->setIssueDate(time() * 1000); // Note that you must provide date in miliseconds, not seconds
19
+ $request->setDueDate($request->getIssueDate() + (7 * 24 * 60 * 60 * 1000)); // Due date == issue date + 7 days
20
+ $request->setPriceGross(123);
21
+ $request->setCurrency('PLN');
22
+ $request->setNote('Test transaction from API');
23
+ $request->setNoRisk(true);
24
+
25
+ $contractor = new Contractor();
26
+ $contractor->setName('Test contractor '.uniqid());
27
+ $contractor->setTaxPayerNumber('5252553735');
28
+ $contractor->setCompanyGovId('146665640');
29
+ $contractor->setEmail('test@invipay.com');
30
+ $contractor->setFax('12312123');
31
+ $contractor->setPhone('234234234');
32
+ $contractor->setWWW('www.esr24.pl');
33
+
34
+ $contractorAccount = new BankAccount();
35
+ $contractorAccount->setBankName('Test bank');
36
+ $contractorAccount->setNumber('PL123123123123123123123');
37
+
38
+ $contractor->setAccount($contractorAccount);
39
+
40
+ $contractorAddress = new Address();
41
+ $contractorAddress->setStreet('Test street 1/2');
42
+ $contractorAddress->setCity('Testville');
43
+ $contractorAddress->setPostCode('00-111');
44
+ $contractorAddress->setCountryCode('PL');
45
+
46
+ $contractor->setAddress($contractorAddress);
47
+
48
+ $request->setContractor($contractor);
49
+
50
+ $pdf = new FileData();
51
+ $pdf->setFromFile(dirname(__FILE__).'/data/test.pdf');
52
+
53
+ $request->setDocument($pdf);
54
+
55
+ $result = $client->createInvoice($request);
56
+
57
+ printDump('<h2>Request</h2>', $request);
58
+ printDump('<h2>Result</h2>', $result);
59
+ }
60
+ catch (Exception $ex)
61
+ {
62
+ printDump('<h2>Exception</h2>', $ex);
63
+ }
64
+
65
+ println('<hr>');
66
+ }
67
+
68
+ // createOrder
69
+ {
70
+ println('<h1>createOrder</h1>');
71
+
72
+ try
73
+ {
74
+ $request = new OrderData();
75
+ $request->setDocumentNumber('Test/'.uniqid());
76
+ $request->setIssueDate(time() * 1000); // Note that you must provide date in miliseconds, not seconds
77
+ $request->setPriceGross(123);
78
+ $request->setCurrency('PLN');
79
+ $request->setNote('Test transaction from API');
80
+ $request->setNoRisk(true);
81
+
82
+ $contractor = new Contractor();
83
+ $contractor->setName('Test contractor '.uniqid());
84
+ $contractor->setTaxPayerNumber('9379535461');
85
+ $contractor->setCompanyGovId('157381055');
86
+ $contractor->setEmail('test@esr24.pl');
87
+ $contractor->setFax('12312123');
88
+ $contractor->setPhone('234234234');
89
+ $contractor->setWWW('www.esr24.pl');
90
+
91
+ $contractorAccount = new BankAccount();
92
+ $contractorAccount->setBankName('Test bank');
93
+ $contractorAccount->setNumber('PL123123123123123123123');
94
+
95
+ $contractor->setAccount($contractorAccount);
96
+
97
+ $contractorAddress = new Address();
98
+ $contractorAddress->setStreet('Test street 1/2');
99
+ $contractorAddress->setCity('Testville');
100
+ $contractorAddress->setPostCode('00-111');
101
+ $contractorAddress->setCountryCode('PL');
102
+
103
+ $contractor->setAddress($contractorAddress);
104
+
105
+ $request->setContractor($contractor);
106
+
107
+ $pdf = new FileData();
108
+ $pdf->setFromFile(dirname(__FILE__).'/data/test.pdf');
109
+
110
+ $request->setDocument($pdf);
111
+
112
+ $result = $client->createOrder($request);
113
+
114
+ printDump('<h2>Request</h2>', $request);
115
+ printDump('<h2>Result</h2>', $result);
116
+ }
117
+ catch (Exception $ex)
118
+ {
119
+ printDump('<h2>Exception</h2>', $ex);
120
+ }
121
+
122
+ println('<hr>');
123
+ }
124
+
125
+ $randomItemId = null;
126
+ $randomItemAttachmentId = null;
127
+
128
+ // listTransactions
129
+ {
130
+ println('<h1>listTransactions</h1>');
131
+
132
+ try
133
+ {
134
+ $filter = new TransactionsFilter();
135
+ $filter->setSide(TransactionSide::SALE);
136
+
137
+ $result = $client->listTransactions($filter, $api_config['apiKey']);
138
+
139
+ $randomItemIndex = array_rand($result);
140
+
141
+ if ($randomItemIndex !== false && $randomItemIndex !== null)
142
+ {
143
+ $randomItemId = $result[$randomItemIndex]->getId();
144
+ $randomItemAttachmentId = $result[$randomItemIndex]->getAttachment() !== null ? $result[$randomItemIndex]->getAttachment()->getId() : null;
145
+ }
146
+
147
+ printDump('<h2>Request</h2>', $filter);
148
+ printDump('<h2>Result</h2>', $result);
149
+ }
150
+ catch (Exception $ex)
151
+ {
152
+ printDump('<h2>Exception</h2>', $ex);
153
+ }
154
+
155
+ println('<hr>');
156
+ }
157
+
158
+ // getTransaction
159
+ {
160
+ println('<h1>getTransaction</h1>');
161
+ try
162
+ {
163
+ $result = $client->getTransaction($randomItemId);
164
+
165
+ printDump('<h2>Result</h2>', $result);
166
+ }
167
+ catch (Exception $ex)
168
+ {
169
+ printDump('<h2>Exception</h2>', $ex);
170
+ }
171
+
172
+ println('<hr>');
173
+ }
174
+
175
+ // downloadCommissionInvoiceDocument
176
+ {
177
+ println('<h1>downloadDocument</h1>');
178
+
179
+ try
180
+ {
181
+ if ($randomItemAttachmentId !== null)
182
+ {
183
+ $result = $client->downloadDocument($randomItemAttachmentId);
184
+ $outputPath = dirname(__FILE__).'/output/'.$randomItemAttachmentId.'.pdf';
185
+ file_put_contents($outputPath, $result);
186
+
187
+ printDump('<h2>Result</h2>', $outputPath);
188
+ }
189
+ else
190
+ {
191
+ printDump('<h2>Result</h2>', null);
192
+ }
193
+ }
194
+ catch (Exception $ex)
195
+ {
196
+ printDump('<h2>Exception</h2>', $ex);
197
+ }
198
+
199
+ println('<hr>');
200
+ }
201
+
202
+ ?>
app/code/community/Invipay/Ipcpaygate/.DS_Store DELETED
Binary file
app/code/community/Invipay/Ipcpaygate/Block/.DS_Store DELETED
Binary file
app/code/community/Invipay/Ipcpaygate/Block/Widgets/.DS_Store DELETED
Binary file
app/code/community/Invipay/Ipcpaygate/Helper/.DS_Store DELETED
Binary file
app/code/community/Invipay/Ipcpaygate/Model/.DS_Store DELETED
Binary file
app/code/community/Invipay/Ipcpaygate/Model/System/.DS_Store DELETED
Binary file
app/code/community/Invipay/Ipcpaygate/Model/System/Config/.DS_Store DELETED
Binary file
app/code/community/Invipay/Ipcpaygate/Model/System/Config/Source/.DS_Store DELETED
Binary file
app/code/community/Invipay/Ipcpaygate/controllers/PaymentController.php CHANGED
@@ -5,6 +5,7 @@ class Invipay_Ipcpaygate_PaymentController extends Mage_Core_Controller_Front_Ac
5
  const ORDER_STATUS_PAYMENT_COMPLETED = 'new';
6
  const ORDER_STATUS_PAYMENT_OUT_OF_LIMIT = 'pending_payment';
7
  const ORDER_STATUS_PAYMENT_TIMEOUT = 'pending_payment';
 
8
  const ORDER_STATUS_PAYMENT_OTHER = 'pending_payment';
9
 
10
  public function statusAction()
@@ -35,6 +36,11 @@ class Invipay_Ipcpaygate_PaymentController extends Mage_Core_Controller_Front_Ac
35
  $newOrderComment = 'Klient porzucił płatność przez inviPay.com.';
36
  $newOrderStatus = self::ORDER_STATUS_PAYMENT_TIMEOUT;
37
  }
 
 
 
 
 
38
  else
39
  {
40
  $newOrderComment = 'Nieznany status płatności.';
5
  const ORDER_STATUS_PAYMENT_COMPLETED = 'new';
6
  const ORDER_STATUS_PAYMENT_OUT_OF_LIMIT = 'pending_payment';
7
  const ORDER_STATUS_PAYMENT_TIMEOUT = 'pending_payment';
8
+ const ORDER_STATUS_PAYMENT_CANCELED = 'pending_payment';
9
  const ORDER_STATUS_PAYMENT_OTHER = 'pending_payment';
10
 
11
  public function statusAction()
36
  $newOrderComment = 'Klient porzucił płatność przez inviPay.com.';
37
  $newOrderStatus = self::ORDER_STATUS_PAYMENT_TIMEOUT;
38
  }
39
+ else if ($inviPayStatus == PaymentRequestStatus::CANCELED)
40
+ {
41
+ $newOrderComment = 'Klient anulował płatność przez inviPay.com.';
42
+ $newOrderStatus = self::ORDER_STATUS_PAYMENT_CANCELED;
43
+ }
44
  else
45
  {
46
  $newOrderComment = 'Nieznany status płatności.';
app/code/community/Invipay/Ipcpaygate/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Invipay_Ipcpaygate>
5
- <version>1.0.0.0</version>
6
  </Invipay_Ipcpaygate>
7
  </modules>
8
 
2
  <config>
3
  <modules>
4
  <Invipay_Ipcpaygate>
5
+ <version>1.0.0.1</version>
6
  </Invipay_Ipcpaygate>
7
  </modules>
8
 
app/code/community/Invipay/Ipcpaygate/sql/.DS_Store DELETED
Binary file
app/code/community/Invipay/Ipcpaygate/sql/ipcpaygate_setup/.DS_Store DELETED
Binary file
app/design/frontend/base/default/template/ipcpaygate/.DS_Store DELETED
Binary file
app/design/frontend/base/default/template/ipcpaygate/redirect.phtml CHANGED
@@ -3,7 +3,7 @@
3
  $redirectUrl = htmlentities($redirectUrl);
4
  ?>
5
 
6
- <h2>Trwa przekierowanie do inviPay.com...</h2>
7
  <p>Za chwilę nastąpi przekierowanie do bramki płatniczej inviPay.com. Jeżeli Twoja przeglądarka nie zostanie przekierowana automatycznie <a href="<?php echo $redirectUrl; ?>">kliknij tutaj</a>.</p>
8
  <script type="text/javascript">
9
  window.setTimeout(function(){ document.location.href = '<?php echo $redirectUrl; ?>'; }, 500);
3
  $redirectUrl = htmlentities($redirectUrl);
4
  ?>
5
 
6
+ <h1>Trwa przekierowanie do inviPay.com...</h1>
7
  <p>Za chwilę nastąpi przekierowanie do bramki płatniczej inviPay.com. Jeżeli Twoja przeglądarka nie zostanie przekierowana automatycznie <a href="<?php echo $redirectUrl; ?>">kliknij tutaj</a>.</p>
8
  <script type="text/javascript">
9
  window.setTimeout(function(){ document.location.href = '<?php echo $redirectUrl; ?>'; }, 500);
app/design/frontend/base/default/template/ipcpaygate/wait.phtml CHANGED
@@ -3,7 +3,7 @@
3
  $checkUrl = Mage::getUrl("ipcpaygate/payment/check", array("order" => $orderId));
4
  ?>
5
 
6
- <h2>Oczekiwanie na potwierdzenie płatności w inviPay.com...</h2>
7
  <p>Oczekujemy na potwierdzenie Twojej płatności w inviPay.com.</p>
8
  <script type="text/javascript">
9
 
3
  $checkUrl = Mage::getUrl("ipcpaygate/payment/check", array("order" => $orderId));
4
  ?>
5
 
6
+ <h1>Oczekiwanie na potwierdzenie płatności w inviPay.com...</h1>
7
  <p>Oczekujemy na potwierdzenie Twojej płatności w inviPay.com.</p>
8
  <script type="text/javascript">
9
 
package.xml CHANGED
@@ -1,20 +1,27 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Invipay_Ipcpaygate</name>
4
- <version>1.0.0.0</version>
5
  <stability>stable</stability>
6
- <license uri="http://opensource.org/licenses/osl-3.0.php">OSL-3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Bramka p&#x142;atnicza inviPay.com</summary>
10
  <description>Dzi&#x119;ki bramce p&#x142;atno&#x15B;ci inviPay.com klient mo&#x17C;e zap&#x142;aci&#x107; za zakupy w e-sklepie tak samo wygodnie i bezpiecznie jak to robi poza nim tj. dopiero po otrzymaniu i sprawdzeniu zam&#xF3;wienia w terminie p&#x142;atno&#x15B;ci wynikaj&#x105;cym z faktury, kt&#xF3;r&#x105; otrzyma&#x142; od e-sklepu. Bezpiecznie, szybko i wygodnie na ka&#x17C;dym etapie procesu.&#xD;
11
  &#xD;
12
- Z drugiej strony, e-sklep ju&#x17C; na etapie z&#x142;o&#x17C;enia zam&#xF3;wienia przez klienta otrzymuje od inviPay.com zabezpieczenie ca&#x142;ej p&#x142;atno&#x15B;ci, kt&#xF3;r&#x105; wyp&#x142;aca z inviPay.com natychmiast po zrealizowaniu zam&#xF3;wienia i wystawieniu faktury (bez czekania na termin p&#x142;atno&#x15B;ci faktury).</description>
13
- <notes>Pierwsze wydanie</notes>
14
- <authors><author><name>Kuba Pilecki</name><user>MAG003279533</user><email>k.pilecki@gmail.com</email></author></authors>
15
- <date>2016-01-22</date>
16
- <time>16:30:22</time>
17
- <contents><target name="mageetc"><dir name="modules"><file name="Invipay_All.xml" hash="a74b71a076b06024ac9b43e50a3c5b91"/></dir></target><target name="magecommunity"><dir name="Invipay"><dir name="Common"><dir name="Apiclient"><file name="LiabilitiesApiClient.class.php" hash="fc4ba09f0d0db408093aa4116793baa6"/><file name="PaygateApiClient.class.php" hash="e7a12dc21f5be6471acfffc1170a248e"/><file name="ReportsApiClient.class.php" hash="f3f0fe461ce78703cd1dbb2662a6decb"/><file name="TestApiClient.class.php" hash="178607f8829fbec6b900a8414bc07624"/><file name="TransactionsApiClient.class.php" hash="6d20fa053f1cc5ab960d7fee7cfb325f"/><dir name="dto"><file name="Address.class.php" hash="ff349016b36288aad05889b4d695d28f"/><file name="BankAccount.class.php" hash="2a677ab6fed0d35a8dcb52efb9291ed3"/><file name="BaseApiData.class.php" hash="a6ef76b5029508f53ef8354edbe52a2d"/><file name="BaseDocumentDetails.class.php" hash="12ae197ccd291f88c1d4ede46c5409c7"/><file name="Contractor.class.php" hash="5c8d03d5d94d7d47fcb3bec75b7afe5d"/><file name="DocumentAttachmentDownloadInfo.class.php" hash="e67c0e9e7ab77286140e25e4777f9946"/><file name="FileData.class.php" hash="646d93761d160ec22b98ce134f50b4f6"/><file name="FileInfo.class.php" hash="37a991db3016b1966cbe5c16e7fec21c"/><file name="ListFilter.class.php" hash="5619ee73318986dc0a9b19e84810f1df"/><dir name="liabilitiesapiservice"><file name="CommissionInvoiceDetails.class.php" hash="09a9111c21e007c31b7a15b4b16f5386"/><file name="InterestInvoiceDetails.class.php" hash="9c8d0064c5630a175d6b4927ce7ca5fe"/><file name="InterestNoteDetails.class.php" hash="57f2b4d646174ac26545a0a987c31c75"/><file name="LiabilityDocumentDetails.class.php" hash="73510cd207cfae45876e5d4a2c3af9f3"/></dir><dir name="paygateapiservice"><file name="CallbackDataFormat.enum.php" hash="fddecb87075141f17d8f00ef1ede2d3b"/><file name="OrderToInvoiceData.class.php" hash="c5b6fdb14000ff0601dd3e58aabf9a1a"/><file name="PaymentCreationData.class.php" hash="f4176eb4ac306b30ec04ba303a5e662c"/><file name="PaymentData.class.php" hash="7b6acf1bdb6595add1183643635af4ae"/><file name="PaymentManagementData.class.php" hash="885b6bd61d714e83dd0d49a7925a9867"/><file name="PaymentRequestStatus.enum.php" hash="ebc15625baaa5b95dce69358254f5523"/><file name="PaymentStartInfo.class.php" hash="47413c9c8632cab45e427729939ea92e"/></dir><dir name="reportsapiservice"><file name="AccountantReportCommissionInvoiceItem.class.php" hash="875b542d5d3f889f06aa41234244e24d"/><file name="AccountantReportDocument.class.php" hash="7ff8f5c9b40a44e89f59ba2b0e55eba8"/><file name="AccountantReportInterestInvoiceItem.class.php" hash="c03e2a9c366bfb29f91c977c50465f70"/><file name="AccountantReportInterestNoteItem.class.php" hash="97368b9c64781768199b13bb8175e7be"/><file name="AccountantReportPaymentItem.class.php" hash="da2832dc6031dd6304a6a1baee47b962"/><file name="AccountantReportPayoffItem.class.php" hash="b146eec8d6c562964131bc825327a4d2"/><file name="AccountantReportPurchaseItem.class.php" hash="16ba5bbe01e723bf60c3ea9c45544084"/><file name="AccountantReportRSBItem.class.php" hash="a6363f2eb62ebb4571dbd4f2b87cba67"/><file name="AccountantReportRSPSettlementItem.class.php" hash="58e676d7b89a1b2d7e3d1e5067947836"/><file name="AccountantReportRSReversedSettlementItem.class.php" hash="c275a1bc23403fbd52b80e9dfb16c457"/><file name="AccountantReportRSSettlementItem.class.php" hash="014072417ff79bf370a368d6fd23e5e7"/><file name="AccountantReportResaleStatementItem.class.php" hash="62c8083f9d14dffc78dccbdfb147ef67"/><file name="AccountantReportSaleItem.class.php" hash="069ee1e48a6502fbe74048f5e6f36b68"/><file name="AccountantReportSettlementItem.class.php" hash="cb16a361e81c91b9f4fb06f2ba6f027e"/><file name="DocumentItem.class.php" hash="42f129867c013e876d76f401b6334f2a"/><file name="ReportFilter.class.php" hash="6431509fca97cc850215a9b24e88e308"/></dir><dir name="testapiservice"><file name="EchoIn.class.php" hash="5adbbca3cd1167e4c17bbef6c8694767"/><file name="EchoOut.class.php" hash="f8a363a7469fd2c08026013a6bc9a0a3"/></dir><dir name="transactionapiservice"><file name="BaseTransactionData.class.php" hash="de48f024b4f147fd720dc9a903fc70ce"/><file name="InvoiceData.class.php" hash="a551eb26ab489e8b71ac41411b75cbe3"/><file name="OrderData.class.php" hash="cddd51addb9c1a50cc20283fcee95c09"/><file name="TransactionDetails.class.php" hash="b80955b0cc09a976ca2984a7710f2daa"/><file name="TransactionItemDetails.class.php" hash="2510b1e2c0dcc797bbd3aa7fd61d12d5"/><file name="TransactionSide.enum.php" hash="b8a064d2746a4c8f85b9b53940dc324b"/><file name="TransactionType.enum.php" hash="1da4785de0de4cd8dfa92b4fd1b1b0fd"/><file name="TransactionsFilter.class.php" hash="6ab4a65ff7f0aa0d1ffd9b6d8d40c40b"/></dir><file name=".DS_Store" hash="db9f178be1e3f3b4672d7723ff99e838"/></dir><dir name="exceptions"><file name="AccessFromIpDeniedException.class.php" hash="10d27ad15a78481c60b933a29a651833"/><file name="ApiOperationException.class.php" hash="2565937e6c9c52eeb1283630792e4e55"/><file name="AuthenticationException.class.php" hash="16f450fd99458e61a346b8381d50ab61"/><file name="ObjectNotFoundException.class.php" hash="9c97b69974c67cbb9588a9cf448a42bd"/><file name="SignatureException.class.php" hash="6a97d00d5a9f11b27ebd5f015ec3b5da"/><file name="TransactionContractorException.class.php" hash="31d7e92e10b1fcbc5d5b577accf33937"/><file name="ValidationException.class.php" hash="243b86124c941eea5ababf98d146babe"/></dir><dir name="lib"><file name="AbstractRestApiClient.class.php" hash="49a0e3c46da46c5dab0222e0c51c83d0"/></dir><file name=".DS_Store" hash="e3b4b0ac5083b229d1679f91eac91efe"/></dir><file name=".DS_Store" hash="0a86ab0ca73c544a0d271f26baae097f"/></dir><dir name="Ipcpaygate"><dir name="Block"><dir name="Form"><file name="Checkout.php" hash="9a92da6993cb5e45f02bbb2bcc6a478c"/></dir><dir name="Info"><file name="Checkout.php" hash="5d5df97f7811cfc595810f49c8fba07e"/></dir><file name="Redirect.php" hash="8b75e3a69d9d7585d94c56ce21bde547"/><file name="Wait.php" hash="d38448d00281660f88c1770db6df6b8f"/><dir name="Widgets"><file name="Basketinfo.php" hash="7d32d565dbe33fee1941652db9e0e65e"/><file name="Floatingpanel.php" hash="70156ce6b4d9c9bce503806d9336db6d"/><file name="Footericon.php" hash="d77908b60c65489c299863089271f570"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name=".DS_Store" hash="7f16b71b7ec1319816563269c3da4db5"/></dir><dir name="Helper"><file name="Data.php" hash="392a0453196a3f5c3ef93854b39cc3da"/><file name=".DS_Store" hash="5cc9b356b8566590d84d1a846226a1e1"/></dir><dir name="Model"><file name="Orderstatusobserver.php" hash="eb1aa78074f6cf760111a933f38ce543"/><file name="Paymentmethod.php" hash="b9e1a837463724eec729069be8ac6825"/><dir name="Resource"><file name="Setup.php" hash="5fdeabfaa3d15dd1b187d1c516f62b02"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Checkouttext.php" hash="47c6f310cdfdf919b9ea0a0788b78a30"/><file name="Floatingpanel.php" hash="1c5acad7b7c3ca864f93714ca6c8613c"/><dir name="Widgets"><file name="Floatingpanel.php" hash="389ab30e3849aa65ebfe9ee09f717cb3"/></dir><file name=".DS_Store" hash="5343b820b758e30ee613f67879a49745"/></dir><file name=".DS_Store" hash="f5208bdb3f4c2895c6c0809f370601c4"/></dir><file name=".DS_Store" hash="790cce256bd47fe17cf504eb519ccb6f"/></dir><file name=".DS_Store" hash="a62d56a5e78fa8b2d0b4187421321683"/></dir><dir name="controllers"><file name="PaymentController.php" hash="a1695dec03f0f2633c7291056c2dace8"/></dir><dir name="etc"><file name="config.xml" hash="5dc59eaed0b68c01731c7f1804c244f4"/><file name="system.xml" hash="7f265c364b8a70c58787cc96b2b65113"/></dir><dir name="sql"><dir name="ipcpaygate_setup"><file name="mysql4-install-1.0.0.0.php" hash="a15d8e5cfc533bde3f06db9d8417b8dc"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name=".DS_Store" hash="d18cf2accf016fdd289002001e10873e"/></dir><file name=".DS_Store" hash="34dbe5a6985e0e478581b71889ff3088"/></dir><file name=".DS_Store" hash="542e0245a88a7d2c91c3785e22632cb8"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="ipcpaygate"><dir name="form"><file name="checkout.phtml" hash="92f8878ac5aa188fb1602a278a3f7200"/><file name="checkout_info.phtml" hash="5bd531bf5b8c20326dfa01613f2eb05c"/><file name="checkout_label.phtml" hash="c06e1ef6aed517d99796a7124e7f65a9"/></dir><file name="redirect.phtml" hash="d552d7a594766602ec10f99f1ac70310"/><file name="wait.phtml" hash="bc9349a14bd6fbd7bfb4dbc74704064c"/><dir name="widgets"><file name="basketinfo.phtml" hash="c00eb38ec8e12bca9834f56b297beb99"/><file name="floatingpanel.phtml" hash="9158bae9e9b6a40fa119bc8c77ef4163"/><file name="footericon.phtml" hash="7228d21af05ba8ab460378c1eb1a83a4"/><file name="head.phtml" hash="52877a06de606376f488459b26997877"/></dir><file name=".DS_Store" hash="e46e8349e010f638b0ebdf5cfccecadb"/></dir></dir><dir name="layout"><file name="ipcpaygate.xml" hash="97281b9392c9138976b83e6598286364"/></dir></dir></dir></dir></target></contents>
 
 
 
 
 
 
 
18
  <compatible/>
19
- <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Invipay_Ipcpaygate</name>
4
+ <version>1.0.0.1</version>
5
  <stability>stable</stability>
6
+ <license uri="https://opensource.org/licenses/OSL-3.0">OSL-3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Metoda p&#x142;atno&#x15B;ci dzi&#x119;ki kt&#xF3;rej, sprzedajesz na faktur&#x119; z odroczonym terminem p&#x142;atno&#x15B;ci bez &#x17C;adnego ryzyka.</summary>
10
  <description>Dzi&#x119;ki bramce p&#x142;atno&#x15B;ci inviPay.com klient mo&#x17C;e zap&#x142;aci&#x107; za zakupy w e-sklepie tak samo wygodnie i bezpiecznie jak to robi poza nim tj. dopiero po otrzymaniu i sprawdzeniu zam&#xF3;wienia w terminie p&#x142;atno&#x15B;ci wynikaj&#x105;cym z faktury, kt&#xF3;r&#x105; otrzyma&#x142; od e-sklepu. Bezpiecznie, szybko i wygodnie na ka&#x17C;dym etapie procesu.&#xD;
11
  &#xD;
12
+ Z drugiej strony, e-sklep ju&#x17C; na etapie z&#x142;o&#x17C;enia zam&#xF3;wienia przez klienta otrzymuje od inviPay.com zabezpieczenie ca&#x142;ej p&#x142;atno&#x15B;ci, kt&#xF3;r&#x105; wyp&#x142;aca z inviPay.com natychmiast po zrealizowaniu zam&#xF3;wienia i wystawieniu faktury (bez czekania na termin p&#x142;atno&#x15B;ci faktury).&#xD;
13
+ &#xD;
14
+ To rozszerzenie dodaje do Twojego sklepu:&#xD;
15
+ * Now&#x105; metod&#x119; p&#x142;atno&#x15B;ci dla Twoich klient&#xF3;w&#xD;
16
+ * Atrakcyjne widgety promocyjne, pomagaj&#x105;ce Ci sprzedawa&#x107; wi&#x119;cej z inviPay&#xD;
17
+ &#xD;
18
+ &#xD;
19
+ Dowiedz si&#x119; wi&#x119;cej na inviPay.com!</description>
20
+ <notes>Rozszerzone informacje w panelu administratora, w przypadku porzucenia koszyka przez klienta.</notes>
21
+ <authors><author><name>inviPay.com</name><user>MAG003279533</user><email>kpilecki@invipay.com</email></author></authors>
22
+ <date>2016-01-29</date>
23
+ <time>07:04:14</time>
24
+ <contents><target name="magecommunity"><dir name="Invipay"><dir name="Common"><dir name="Apiclient"><file name="LiabilitiesApiClient.class.php" hash="fc4ba09f0d0db408093aa4116793baa6"/><file name="PaygateApiClient.class.php" hash="e7a12dc21f5be6471acfffc1170a248e"/><file name="ReportsApiClient.class.php" hash="f3f0fe461ce78703cd1dbb2662a6decb"/><file name="TestApiClient.class.php" hash="178607f8829fbec6b900a8414bc07624"/><file name="TransactionsApiClient.class.php" hash="6d20fa053f1cc5ab960d7fee7cfb325f"/><dir name="dto"><file name="Address.class.php" hash="ff349016b36288aad05889b4d695d28f"/><file name="BankAccount.class.php" hash="2a677ab6fed0d35a8dcb52efb9291ed3"/><file name="BaseApiData.class.php" hash="a6ef76b5029508f53ef8354edbe52a2d"/><file name="BaseDocumentDetails.class.php" hash="12ae197ccd291f88c1d4ede46c5409c7"/><file name="Contractor.class.php" hash="5c8d03d5d94d7d47fcb3bec75b7afe5d"/><file name="DocumentAttachmentDownloadInfo.class.php" hash="e67c0e9e7ab77286140e25e4777f9946"/><file name="FileData.class.php" hash="646d93761d160ec22b98ce134f50b4f6"/><file name="FileInfo.class.php" hash="37a991db3016b1966cbe5c16e7fec21c"/><file name="ListFilter.class.php" hash="5619ee73318986dc0a9b19e84810f1df"/><dir name="liabilitiesapiservice"><file name="CommissionInvoiceDetails.class.php" hash="09a9111c21e007c31b7a15b4b16f5386"/><file name="InterestInvoiceDetails.class.php" hash="9c8d0064c5630a175d6b4927ce7ca5fe"/><file name="InterestNoteDetails.class.php" hash="57f2b4d646174ac26545a0a987c31c75"/><file name="LiabilityDocumentDetails.class.php" hash="73510cd207cfae45876e5d4a2c3af9f3"/></dir><dir name="paygateapiservice"><file name="CallbackDataFormat.enum.php" hash="fddecb87075141f17d8f00ef1ede2d3b"/><file name="OrderToInvoiceData.class.php" hash="c5b6fdb14000ff0601dd3e58aabf9a1a"/><file name="PaymentCreationData.class.php" hash="f4176eb4ac306b30ec04ba303a5e662c"/><file name="PaymentData.class.php" hash="7a9e5b19a45c1143b1be7de3ca929137"/><file name="PaymentManagementData.class.php" hash="885b6bd61d714e83dd0d49a7925a9867"/><file name="PaymentRequestStatus.enum.php" hash="16a3f551619ef6b94a0199841ad6677b"/><file name="PaymentStartInfo.class.php" hash="47413c9c8632cab45e427729939ea92e"/></dir><dir name="reportsapiservice"><file name="AccountantReportCommissionInvoiceItem.class.php" hash="875b542d5d3f889f06aa41234244e24d"/><file name="AccountantReportDocument.class.php" hash="7ff8f5c9b40a44e89f59ba2b0e55eba8"/><file name="AccountantReportInterestInvoiceItem.class.php" hash="c03e2a9c366bfb29f91c977c50465f70"/><file name="AccountantReportInterestNoteItem.class.php" hash="97368b9c64781768199b13bb8175e7be"/><file name="AccountantReportPaymentItem.class.php" hash="da2832dc6031dd6304a6a1baee47b962"/><file name="AccountantReportPayoffItem.class.php" hash="b146eec8d6c562964131bc825327a4d2"/><file name="AccountantReportPurchaseItem.class.php" hash="16ba5bbe01e723bf60c3ea9c45544084"/><file name="AccountantReportRSBItem.class.php" hash="a6363f2eb62ebb4571dbd4f2b87cba67"/><file name="AccountantReportRSPSettlementItem.class.php" hash="58e676d7b89a1b2d7e3d1e5067947836"/><file name="AccountantReportRSReversedSettlementItem.class.php" hash="c275a1bc23403fbd52b80e9dfb16c457"/><file name="AccountantReportRSSettlementItem.class.php" hash="014072417ff79bf370a368d6fd23e5e7"/><file name="AccountantReportResaleStatementItem.class.php" hash="62c8083f9d14dffc78dccbdfb147ef67"/><file name="AccountantReportSaleItem.class.php" hash="069ee1e48a6502fbe74048f5e6f36b68"/><file name="AccountantReportSettlementItem.class.php" hash="cb16a361e81c91b9f4fb06f2ba6f027e"/><file name="DocumentItem.class.php" hash="42f129867c013e876d76f401b6334f2a"/><file name="ReportFilter.class.php" hash="6431509fca97cc850215a9b24e88e308"/></dir><dir name="testapiservice"><file name="EchoIn.class.php" hash="5adbbca3cd1167e4c17bbef6c8694767"/><file name="EchoOut.class.php" hash="f8a363a7469fd2c08026013a6bc9a0a3"/></dir><dir name="transactionapiservice"><file name="BaseTransactionData.class.php" hash="de48f024b4f147fd720dc9a903fc70ce"/><file name="InvoiceData.class.php" hash="a551eb26ab489e8b71ac41411b75cbe3"/><file name="OrderData.class.php" hash="cddd51addb9c1a50cc20283fcee95c09"/><file name="TransactionDetails.class.php" hash="b80955b0cc09a976ca2984a7710f2daa"/><file name="TransactionItemDetails.class.php" hash="2510b1e2c0dcc797bbd3aa7fd61d12d5"/><file name="TransactionSide.enum.php" hash="b8a064d2746a4c8f85b9b53940dc324b"/><file name="TransactionType.enum.php" hash="1da4785de0de4cd8dfa92b4fd1b1b0fd"/><file name="TransactionsFilter.class.php" hash="6ab4a65ff7f0aa0d1ffd9b6d8d40c40b"/></dir></dir><dir name="examples"><file name="configuration.json" hash="48ce89b30cd0cff7765cd72890d62806"/><file name="example.common.php" hash="e184932e221094ebb95f0cf5f4dc890b"/><file name="liabilities.example.php" hash="33ec64ddeb0eb4670d6f6fdb76636287"/><file name="paygate.callback.example.php" hash="70ac925fad86abd2fa3250edb3ea15fa"/><file name="paygate.example.php" hash="92879ded048926bc1cd1744fc6b6b1b2"/><file name="reports.example.php" hash="f3cca09b7acc111b8e857427b2abbe81"/><file name="test.example.php" hash="10de51405575fd9b808645d6f4a8cea9"/><file name="transactions.example.php" hash="503d3addb9a8e3981c0ea167bb942cc9"/></dir><dir name="exceptions"><file name="AccessFromIpDeniedException.class.php" hash="10d27ad15a78481c60b933a29a651833"/><file name="ApiOperationException.class.php" hash="2565937e6c9c52eeb1283630792e4e55"/><file name="AuthenticationException.class.php" hash="16f450fd99458e61a346b8381d50ab61"/><file name="ObjectNotFoundException.class.php" hash="9c97b69974c67cbb9588a9cf448a42bd"/><file name="SignatureException.class.php" hash="6a97d00d5a9f11b27ebd5f015ec3b5da"/><file name="TransactionContractorException.class.php" hash="31d7e92e10b1fcbc5d5b577accf33937"/><file name="ValidationException.class.php" hash="243b86124c941eea5ababf98d146babe"/></dir><dir name="lib"><file name="AbstractRestApiClient.class.php" hash="49a0e3c46da46c5dab0222e0c51c83d0"/></dir></dir></dir><dir name="Ipcpaygate"><dir name="Block"><dir name="Form"><file name="Checkout.php" hash="9a92da6993cb5e45f02bbb2bcc6a478c"/></dir><dir name="Info"><file name="Checkout.php" hash="5d5df97f7811cfc595810f49c8fba07e"/></dir><file name="Redirect.php" hash="8b75e3a69d9d7585d94c56ce21bde547"/><file name="Wait.php" hash="d38448d00281660f88c1770db6df6b8f"/><dir name="Widgets"><file name="Basketinfo.php" hash="7d32d565dbe33fee1941652db9e0e65e"/><file name="Floatingpanel.php" hash="70156ce6b4d9c9bce503806d9336db6d"/><file name="Footericon.php" hash="d77908b60c65489c299863089271f570"/></dir></dir><dir name="Helper"><file name="Data.php" hash="392a0453196a3f5c3ef93854b39cc3da"/></dir><dir name="Model"><file name="Orderstatusobserver.php" hash="eb1aa78074f6cf760111a933f38ce543"/><file name="Paymentmethod.php" hash="b9e1a837463724eec729069be8ac6825"/><dir name="Resource"><file name="Setup.php" hash="5fdeabfaa3d15dd1b187d1c516f62b02"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Checkouttext.php" hash="47c6f310cdfdf919b9ea0a0788b78a30"/><file name="Floatingpanel.php" hash="1c5acad7b7c3ca864f93714ca6c8613c"/><dir name="Widgets"><file name="Floatingpanel.php" hash="389ab30e3849aa65ebfe9ee09f717cb3"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="PaymentController.php" hash="49011af7ee73f148216d5d8a19286384"/></dir><dir name="etc"><file name="config.xml" hash="33294fd328c806d2ed523f220e520616"/><file name="system.xml" hash="7f265c364b8a70c58787cc96b2b65113"/></dir><dir name="sql"><dir name="ipcpaygate_setup"><file name="mysql4-install-1.0.0.0.php" hash="a15d8e5cfc533bde3f06db9d8417b8dc"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Invipay_All.xml" hash="a74b71a076b06024ac9b43e50a3c5b91"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="ipcpaygate.xml" hash="97281b9392c9138976b83e6598286364"/></dir><dir name="template"><dir name="ipcpaygate"><dir name="form"><file name="checkout.phtml" hash="92f8878ac5aa188fb1602a278a3f7200"/><file name="checkout_info.phtml" hash="5bd531bf5b8c20326dfa01613f2eb05c"/><file name="checkout_label.phtml" hash="c06e1ef6aed517d99796a7124e7f65a9"/></dir><file name="redirect.phtml" hash="c336f5b41f81d8780cbb2418cd2d7e09"/><file name="wait.phtml" hash="fe927555248d63f12c91012249d91226"/><dir name="widgets"><file name="basketinfo.phtml" hash="c00eb38ec8e12bca9834f56b297beb99"/><file name="floatingpanel.phtml" hash="9158bae9e9b6a40fa119bc8c77ef4163"/><file name="footericon.phtml" hash="7228d21af05ba8ab460378c1eb1a83a4"/><file name="head.phtml" hash="52877a06de606376f488459b26997877"/></dir></dir></dir></dir></dir></dir></target></contents>
25
  <compatible/>
26
+ <dependencies><required><php><min>5.2.0</min><max>8.0.0</max></php></required></dependencies>
27
  </package>