aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-10-17 00:35:13 +0200
committerFlorian Dold <florian@dold.me>2022-10-17 00:35:13 +0200
commit2eb055b17d3f05649da4ee654a73db675e3ae458 (patch)
treee5996d59be6b41d8319e9289821b6ea68a83b6c0
parent658118b55a39a5a4b8d9ef6876ceba3552ad5302 (diff)
downloadtaler-android-2eb055b17d3f05649da4ee654a73db675e3ae458.tar.gz
taler-android-2eb055b17d3f05649da4ee654a73db675e3ae458.tar.bz2
taler-android-2eb055b17d3f05649da4ee654a73db675e3ae458.zip
[wallet] use new name of preparePayForUri wallet-core API
-rw-r--r--wallet/src/main/java/net/taler/wallet/payment/PaymentManager.kt4
1 files 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
index b8918c1..dfa14c2 100644
--- 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()