You've already forked AstralRinth
forked from didirus/AstralRinth
Allow modification of failed charges on admin billing page (#4045)
* Allow modification of failed charges on admin billing page Allows cancelling a failed subscription and forcing another charge attempt * use addNotification
This commit is contained in:
@@ -276,7 +276,11 @@ pub async fn refund_charge(
|
||||
subscription_interval: charge.subscription_interval,
|
||||
payment_platform: charge.payment_platform,
|
||||
payment_platform_id: id,
|
||||
parent_charge_id: Some(charge.id),
|
||||
parent_charge_id: if refund_amount != 0 {
|
||||
Some(charge.id)
|
||||
} else {
|
||||
None
|
||||
},
|
||||
net,
|
||||
}
|
||||
.upsert(&mut transaction)
|
||||
|
||||
Reference in New Issue
Block a user