|
|
@ -48,7 +48,7 @@ void RequestDialog::showPaymentConfirmation(MainWindow* main, QString paymentURI |
|
|
|
PaymentURI payInfo = Settings::parseURI(paymentURI); |
|
|
|
if (!payInfo.error.isEmpty()) { |
|
|
|
QMessageBox::critical(main, tr("Error paying HUSH URI"), |
|
|
|
tr("URI should be of the form 'pirate:<addr>?amt=x&memo=y") + "\n" + payInfo.error); |
|
|
|
tr("URI should be of the form 'hush:<addr>?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 = "pirate:" + req.cmbMyAddress->currentText() |
|
|
|
QString memoURI = "hush:" + req.cmbMyAddress->currentText() |
|
|
|
+ "?amt=" + Settings::getDecimalString(req.txtAmount->text().toDouble()) |
|
|
|
+ "&memo=" + QUrl::toPercentEncoding(req.txtMemo->toPlainText()); |
|
|
|
|
|
|
|
QString sendURI = "pirate:" + AddressBook::addressFromAddressLabel(req.txtFrom->text()) |
|
|
|
QString sendURI = "hush:" + AddressBook::addressFromAddressLabel(req.txtFrom->text()) |
|
|
|
+ "?amt=0.0001" |
|
|
|
+ "&memo=" + QUrl::toPercentEncoding(memoURI); |
|
|
|
|
|
|
|