31 lines
605 B
C++
31 lines
605 B
C++
#pragma once
|
|
#include "CommonTossScript.h"
|
|
#include "db/DeviceInfo.h"
|
|
|
|
class PayByCardTossScript final : public CommonTossScript {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
~PayByCardTossScript() override;
|
|
|
|
PayByCardTossScript(
|
|
AccountInfo account,
|
|
QString CardToss,
|
|
QString fullName,
|
|
double amount,
|
|
QObject *parent = nullptr
|
|
);
|
|
|
|
protected:
|
|
void doStart() override;
|
|
|
|
private:
|
|
const AccountInfo m_account;
|
|
const QString m_CardToss;
|
|
const QString m_fullName;
|
|
const double m_amount;
|
|
QString m_error;
|
|
|
|
void makePayment(const DeviceInfo &device);
|
|
};
|