Skip to content
Snippets Groups Projects
Commit 94dc5e25 authored by gfalileev's avatar gfalileev Committed by George Falileev
Browse files

HF: fix old drp payments execution

(cherry picked from commit 696dcadd)
parent 7df0dafc
No related merge requests found
......@@ -96,7 +96,9 @@ func (srv *serviceImpl) setPaymentStatus(
switch req.GetStatus() {
case cardpayment.PaymentStatus_PROCESSING:
payment.NewStatus = invoice.PaymentStatus_PAYMENT_PENDING
if payment.Status == invoice.PaymentStatus_UNKNOWN_PAYMENT_STATUS {
payment.NewStatus = invoice.PaymentStatus_PAYMENT_PENDING
}
case cardpayment.PaymentStatus_SUCCEEDED:
if data.SubscriptionURL == "" {
payment.NewStatus = invoice.PaymentStatus_PAYMENT_SUCCESS
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment