token
Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions

This commit is contained in:
Dmitry 2026-01-08 16:24:55 +03:00
parent 1aa0c5dc9d
commit df2f5d5740

View file

@ -280,10 +280,10 @@ class PaymentManager {
if (rustorePurchaseResponse?.invoiceStatus.name == 'paid') {
// Find payment id by productId or use subscriptionToken
final paymentId = payment.externalToken ?? subscriptionToken;
if (paymentId.isNotEmpty) {
final token = payment.externalToken ?? subscriptionToken;
if (token.isNotEmpty) {
await _db.paymentDao.updatePaymentStatus(
paymentId,
token,
PaymentStatus.succeeded.name,
);
}