@@ -64,8 +64,8 @@ public PaginatedResponse<Set<DirectBillingTransactionsDTO>> getTransactions(int
6464 return (PaginatedResponse <Set <DirectBillingTransactionsDTO >>) restService .sendGetRequest (endpoint , parameterizedType );
6565 }
6666
67- public Response <DirectBillingTransactionDetailsDTO > getTransactionDetails (int serviceId , int transactionId ) {
68- var endpoint = String .format ("/directbilling/%d/transactions/%d " , serviceId , transactionId );
67+ public Response <DirectBillingTransactionDetailsDTO > getTransactionDetails (int serviceId , String transactionId ) {
68+ var endpoint = String .format ("/directbilling/%d/transactions/%s " , serviceId , transactionId );
6969 var parameterizedType = Types .newParameterizedType (Response .class , DirectBillingTransactionDetailsDTO .class );
7070 return (Response <DirectBillingTransactionDetailsDTO >) restService .sendGetRequest (endpoint , parameterizedType );
7171 }
@@ -85,7 +85,7 @@ public boolean checkSignature(String key, String transactionJson) {
8585
8686 private String generateSignature (String key , DirectBillingTransactionNotificationDTO notification ) {
8787 var pipe = "|" ;
88- var fields = List .of (String .valueOf (notification .id ()), notification .status ().getStatusName (), String .valueOf (notification .values ().net ()), String .valueOf (notification .values ().gross ()), String .valueOf (notification .values ().partner ()), notification .returns ().success (), notification .returns ().failure (), notification .control (), notification .number (), String .valueOf (notification .provider ()), notification .signature (), key );
88+ var fields = List .of (String .valueOf (notification .id ()), notification .status ().getStatusName (), String .valueOf (notification .values ().net ()), String .valueOf (notification .values ().gross ()), String .valueOf (notification .values ().partner ()), notification .returns ().success (), notification .returns ().failure (), notification .control (), notification .numberFrom (), String .valueOf (notification .provider ()), notification .signature (), key );
8989 return Hashing .sha256 ().hashString (String .join (pipe , fields ), StandardCharsets .UTF_8 ).toString ();
9090 }
9191
0 commit comments