1
0
forked from BRT/arc
arc/android/dushanbe/PayByPhoneScript.h
trnsmkot 0480dba400 Handle declined transactions and enhance payment scripts:
- Add unique `bank_transaction_id` generation for declined transactions in `EventHandler`.
- Extend timeout and iteration logic to better handle intermediate statuses ("Выполняется") in `PayByPhoneScript` and `PayByCardScript`.
- Update
2026-04-30 23:41:06 +07:00

38 lines
673 B
C++

#pragma once
#include "CommonScript.h"
namespace Dushanbe {
class PayByPhoneScript final : public CommonScript {
Q_OBJECT
public:
PayByPhoneScript(
MaterialInfo account,
QString phone,
double amount,
QObject *parent = nullptr
);
~PayByPhoneScript() override;
protected:
void doStart() override;
private:
const MaterialInfo m_account;
const QString m_phone;
const double m_amount;
QString m_error;
void makePayment(
const QString &deviceId,
const QString &pinCode,
const QString &bankProfilePhone,
int width,
int height
);
};
} // namespace Dushanbe