1
0
forked from BRT/arc
arc/android/dushanbe/PayByCardScript.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

37 lines
679 B
C++

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