private byte[] determinePaymentRequest(final boolean includeBluetoothMac) { final ECKey key = (ECKey) addressView.getSelectedItem(); final Address address = key.toAddress(Constants.NETWORK_PARAMETERS); return PaymentProtocol.createPaymentRequest( amountCalculatorLink.getAmount(), address, null, includeBluetoothMac && bluetoothMac != null ? "bt:" + bluetoothMac : null) .toByteArray(); }
private byte[] determinePaymentRequest(final boolean includeBluetoothMac) { final Address address = application.determineSelectedAddress(); final BigInteger amount = amountCalculatorLink.getAmount(); return PaymentProtocol.createPaymentRequest( amount, address, null, includeBluetoothMac && bluetoothMac != null ? "bt:" + bluetoothMac : null) .toByteArray(); }
private String determineBitcoinRequestStr(final boolean includeBluetoothMac) { final Address address = application.determineSelectedAddress(); final BigInteger amount = amountCalculatorLink.getAmount(); final StringBuilder uri = new StringBuilder(BitcoinURI.convertToBitcoinURI(address, amount, null, null)); if (includeBluetoothMac && bluetoothMac != null) { uri.append(amount == null ? '?' : '&'); uri.append(Bluetooth.MAC_URI_PARAM).append('=').append(bluetoothMac); } return uri.toString(); }
private String determineBitcoinRequestStr(final boolean includeBluetoothMac) { final ECKey key = (ECKey) addressView.getSelectedItem(); final Address address = key.toAddress(Constants.NETWORK_PARAMETERS); final BigInteger amount = amountCalculatorLink.getAmount(); final StringBuilder uri = new StringBuilder(BitcoinURI.convertToBitcoinURI(address, amount, null, null)); if (includeBluetoothMac && bluetoothMac != null) { uri.append(amount == null ? '?' : '&'); uri.append(Bluetooth.MAC_URI_PARAM).append('=').append(bluetoothMac); } return uri.toString(); }