Skip to content

Commit

Permalink
FEAT:fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
rivo pelu committed Dec 7, 2024
1 parent 26f21a4 commit 5f1ffeb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import com.pos.app.model.request.ReqPaymentObject;
import com.pos.app.model.request.RequestTestingPayment;
import com.pos.app.model.response.SnapPaymentResponse;
import com.pos.app.repositories.ClientRepository;
import com.pos.app.repositories.SubscriptionOrderRepository;
import com.pos.app.repositories.TransactionNotificationSubscriptionRepository;
import com.pos.app.service.PaymentService;
Expand Down Expand Up @@ -38,6 +39,7 @@ public class PaymentServiceImpl implements PaymentService {

private final SubscriptionOrderRepository subscriptionOrderRepository;
private final TransactionNotificationSubscriptionRepository transactionNotificationSubscriptionRepository;
private final ClientRepository clientRepository;

@Value("${mt.server-key}")
private String mtServerKey;
Expand Down Expand Up @@ -129,6 +131,7 @@ public ResponseEnum postNotificationFromMidTrans(ReqNotificationMidTrans req) {

subscriptionOrder.setStatus(SubscriptionOrderStatusEnum.SUCCESS);
client.setIsActiveSubscription(true);
clientRepository.save(client);
}
}

Expand Down

0 comments on commit 5f1ffeb

Please sign in to comment.