@@ -12,14 +12,14 @@ This library provide ability to make requests to Transact Pro Gateway API v3.
1212<dependency >
1313 <groupId >com.github.transactpro</groupId >
1414 <artifactId >gateway</artifactId >
15- <version >1.3.2 </version >
15+ <version >1.3.3 </version >
1616</dependency >
1717```
1818
1919#### Gradle
2020
2121``` groovy
22- implementation 'com.github.transactpro:gateway:1.3.2 '
22+ implementation 'com.github.transactpro:gateway:1.3.3 '
2323```
2424
2525## Documentation
@@ -66,6 +66,7 @@ Available operations:
6666``` java
6767
6868import com.github.transactpro.gateway.Gateway ;
69+ import com.github.transactpro.gateway.model.request.data.PaymentMethod ;
6970import com.github.transactpro.gateway.operation.transaction.Sms ;
7071import com.github.transactpro.gateway.model.exception.ResponseException ;
7172import com.github.transactpro.gateway.model.digest.exception.DigestMismatchException ;
@@ -141,7 +142,7 @@ public class Main {
141142 PaymentResponse parsedSmsResponse = sms. getResponse(). parse();
142143 if (parsedSmsResponse. getError() != null && parsedSmsResponse. getError(). getCode() != 0 ) {
143144 // Process Gateway error
144- } else if (parsedSmsResponse. getGw(). getStatusCode () == Status . MPI_URL_GENERATED ) {
145+ } else if (parsedSmsResponse. getGw(). getRedirectUrl () != null ) {
145146 // Redirect user to received URL
146147 }
147148 } catch (IOException e) {
@@ -156,9 +157,9 @@ public class Main {
156157 // Do something with unexpected error
157158 } finally {
158159 // Results
159- System . out. println(sms. getResponse(). getBody());
160- System . out. println(sms. getResponse(). getStatusCode());
161- System . out. println(sms. getResponse(). getHeaders());
160+ java.lang . System. out. println(sms. getResponse(). getBody());
161+ java.lang . System. out. println(sms. getResponse(). getStatusCode());
162+ java.lang . System. out. println(sms. getResponse(). getHeaders());
162163 }
163164 }
164165}
0 commit comments