2
2
3
3
## SMS
4
4
### Weryfikacja kodu
5
- ```
5
+ ``` java
6
6
Sms sms = new Sms ();
7
7
Sms sms = new Sms (" key" ," secret" );
8
8
@@ -24,7 +24,7 @@ double value = codeVerifyResponse.getValue(); // Code Value
24
24
```
25
25
26
26
### Pobieranie listy usług
27
- ```
27
+ ``` java
28
28
Sms sms = new Sms ();
29
29
Sms sms = new Sms (" key" ," secret" );
30
30
@@ -40,7 +40,7 @@ List<Service> services = serviceList.getServices(); // List of services
40
40
```
41
41
42
42
## SMS XML
43
- ```
43
+ ``` java
44
44
SmsXml smsXml = new SmsXml (" apikey" );
45
45
String code = smsXml. generateCode(); // Generate code
46
46
double number = smsXml. getSmsValue(" number" ); // retrieve information's about sms
@@ -50,7 +50,7 @@ boolean ip = smsXml.getServersIp("ip"); // Check if passed ip is valid ip of sim
50
50
51
51
## Direct Billing
52
52
### Generowanie transakcji
53
- ```
53
+ ``` java
54
54
DirectBilling directBilling = new DirectBilling ();
55
55
DirectBilling directBilling = new DirectBilling (" apiKey" , " secret" , false , 1 );
56
56
@@ -71,7 +71,7 @@ dbGenerateResponse.getStatus(); // Status received from api
71
71
```
72
72
73
73
### Pobieranie danych o transakcji
74
- ```
74
+ ``` java
75
75
DirectBilling directBilling = new DirectBilling ();
76
76
DirectBilling directBilling = new DirectBilling (" apiKey" , " secret" , false , 1 );
77
77
@@ -86,7 +86,7 @@ DbTransaction respond = response.getRespond();
86
86
```
87
87
88
88
### Pobieranie listy usług DCB
89
- ```
89
+ ``` java
90
90
DirectBilling directBilling = new DirectBilling ();
91
91
DirectBilling directBilling = new DirectBilling (" apiKey" , " secret" , false , 1 );
92
92
@@ -100,7 +100,7 @@ DbTransaction respond = response.getRespond();
100
100
```
101
101
102
102
### Pobieranie maksymalnych kwot transakcji
103
- ```
103
+ ``` java
104
104
DirectBilling directBilling = new DirectBilling ();
105
105
DirectBilling directBilling = new DirectBilling (" apiKey" , " secret" , false , 1 );
106
106
@@ -113,7 +113,7 @@ APIResponse<List<DbTransactionLimit>> response = directBilling.getTransactionLim
113
113
```
114
114
115
115
### Pobieranie prowizji dla usługi
116
- ```
116
+ ``` java
117
117
DirectBilling directBilling = new DirectBilling ();
118
118
DirectBilling directBilling = new DirectBilling (" apiKey" , " secret" , false , 1 );
119
119
@@ -126,14 +126,14 @@ List<DbCommission> response = directBilling.getServiceCommission(request);
126
126
```
127
127
128
128
### Pobieranie adresów IP serwerów SimPay
129
- ```
129
+ ``` java
130
130
DirectBilling directBilling = new DirectBilling ();
131
131
132
132
List<String > response = directBilling. getServersIp();
133
133
```
134
134
135
135
### Obliczanie podpisu sign
136
- ```
136
+ ``` java
137
137
DirectBilling directBilling = new DirectBilling ();
138
138
139
139
String sign = directBilling. sign(int id, String status, String valuenet, String valuepartner, String control);
0 commit comments