1
0
forked from BRT/arc
arc/android/rshb/PayByPhoneScript.h
slava 8a3c1c5196 Refactor scripts to improve modularity and add transaction handling.
Enhanced `CommonScript` and `PayByPhoneScript` functionalities by restructuring functions for better readability and parameterization (e.g., device-specific inputs). Included a new transaction handling process and database updates for tracking payment details and statuses.
2025-05-07 19:16:08 +07:00

35 lines
619 B
C++

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