Skip to content

Commit

Permalink
Removed RRN additional logic
Browse files Browse the repository at this point in the history
  • Loading branch information
esinev committed Jul 5, 2023
1 parent b1f4633 commit 4b261fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public PaymentResponse pay(PaymentRequest aRequest) {
return PaymentResponse.builder()
.amount ( saResponse.get_00_amount().toString() )
.currency ( aRequest.getCurrency() )
.orderId ( getPaynetOrderId(saResponse) )
.orderId ( saResponse.get_14_rrn() )
.responseCode ( saResponse.get_15_responseCode() )
.build();
});
Expand All @@ -41,7 +41,7 @@ public PaymentResponse refund(RefundRequest aRequest) {
Sa29ReversalResponse saResponse = aClient.makeReversal(
aRequest.getCurrency()
, new BigDecimal(aRequest.getRefundAmount())
, toRrn(aRequest.getOrderId())
, aRequest.getOrderId()
, aRequest.getTerminalId()
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ public class PaymentResponse {
@NonNull
private final String responseCode;

private final Long orderId;
private final String orderId;

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class RefundRequest {
/**
* Paynet order id to refund
*/
private final long orderId;
private final String orderId;

@NonNull
private final String currency;
Expand Down

0 comments on commit 4b261fc

Please sign in to comment.