From 6422de0382a0a52fd89345b22818665c86daa130 Mon Sep 17 00:00:00 2001 From: Jane Mercer Date: Mon, 6 May 2019 09:11:58 -0700 Subject: [PATCH] fix payment URIs --- src/requestdialog.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/requestdialog.cpp b/src/requestdialog.cpp index d2fbfc9..d80649e 100644 --- a/src/requestdialog.cpp +++ b/src/requestdialog.cpp @@ -47,8 +47,8 @@ void RequestDialog::setupDialog(MainWindow* main, QDialog* d, Ui_RequestDialog* void RequestDialog::showPaymentConfirmation(MainWindow* main, QString paymentURI) { PaymentURI payInfo = Settings::parseURI(paymentURI); if (!payInfo.error.isEmpty()) { - QMessageBox::critical(main, tr("Error paying zcash URI"), - tr("URI should be of the form 'zcash:?amt=x&memo=y") + "\n" + payInfo.error); + QMessageBox::critical(main, tr("Error paying Pirate URI"), + tr("URI should be of the form 'pirate:?amt=x&memo=y") + "\n" + payInfo.error); return; } @@ -124,11 +124,11 @@ void RequestDialog::showRequestZcash(MainWindow* main) { if (d.exec() == QDialog::Accepted) { // Construct a zcash Payment URI with the data and pay it immediately. - QString memoURI = "zcash:" + req.cmbMyAddress->currentText() + QString memoURI = "pirate:" + req.cmbMyAddress->currentText() + "?amt=" + Settings::getDecimalString(req.txtAmount->text().toDouble()) + "&memo=" + QUrl::toPercentEncoding(req.txtMemo->toPlainText()); - QString sendURI = "zcash:" + AddressBook::addressFromAddressLabel(req.txtFrom->text()) + QString sendURI = "pirate:" + AddressBook::addressFromAddressLabel(req.txtFrom->text()) + "?amt=0.0001" + "&memo=" + QUrl::toPercentEncoding(memoURI);