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