Downside
I arrange a Bitpay check account and loaded my Bitpay pockets with testnet BTC. Nonetheless I am seeing an in an "Inadequate funds for charge" error when paying an bill with the Bitpay Java SDK. Double checked the BTC quantity in my pockets and it is lower than all the whole (together with the charge) and even tried manually setting the miner charge to 0 from the Bill object.
Anticipated Habits
Shopper mustn’t obtain “Inadequate funds for charge” error when opening the URL generated by the Bill.
Code
// Config file
{
"BitPayConfiguration" : {
"Atmosphere" : "Check",
"EnvConfig" : {
"Check" : {
"PrivateKeyPath" : "",
"PrivateKey" : "xxx",
"ApiTokens" : {
"payout" : "yyy",
"service provider" : "zzz"
}
}
}
}
}
// app code
enjoyable createClient() {
val configFilePath = ConfigFilePath("src/important/sources/BitPay.config.json")
bitpayClient = Shopper.createClientByConfigFilePath(configFilePath)
}
enjoyable createInvoice(bitpayClient: Shopper) {
var bill = Bill(0.00002, Forex.BTC)
bill.autoRedirect = true
bill = bitpayClient.createInvoice(bill)
bill.merchantName = null
bill.minerFees.btc.satoshisPerByte = 0.0
bill.minerFees.btc.totalFee = 0
val end result: Bill = bitpayClient.createInvoice(bill)
}
Balances and whole due
- testnet BTC stability: 0.00033
- whole due (BTC): 0.00017439

