commit 2eb055b17d3f05649da4ee654a73db675e3ae458
parent 658118b55a39a5a4b8d9ef6876ceba3552ad5302
Author: Florian Dold <florian@dold.me>
Date: Mon, 17 Oct 2022 00:35:13 +0200
[wallet] use new name of preparePayForUri wallet-core API
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wallet/src/main/java/net/taler/wallet/payment/PaymentManager.kt b/wallet/src/main/java/net/taler/wallet/payment/PaymentManager.kt
@@ -68,10 +68,10 @@ class PaymentManager(
@UiThread
fun preparePay(url: String) = scope.launch {
mPayStatus.value = PayStatus.Loading
- api.request("preparePay", PreparePayResponse.serializer()) {
+ api.request("preparePayForUri", PreparePayResponse.serializer()) {
put("talerPayUri", url)
}.onError {
- handleError("preparePay", it)
+ handleError("preparePayForUri", it)
}.onSuccess { response ->
mPayStatus.value = when (response) {
is PaymentPossibleResponse -> response.toPayStatusPrepared()