Skip to content

Commit 6dcaf5f

Browse files
committed
use new api and fix compile error
1 parent 5e97d98 commit 6dcaf5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/main/java/io/snabble/sdk/ui/checkout/PaymentStatusView.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,8 @@ class PaymentStatusView @JvmOverloads constructor(
334334
}
335335

336336
val receipts = Snabble.receipts
337-
receipts.getReceiptInfos(object : Receipts.ReceiptInfoCallback {
338-
override fun success(receiptInfos: Array<out ReceiptInfo>?) {
337+
receipts.getReceiptInfo(object : Receipts.ReceiptInfoCallback {
338+
override fun success(receiptInfos: Array<ReceiptInfo>?) {
339339
val receiptInfo = receiptInfos?.firstOrNull { it.id == orderId }
340340
if (receiptInfo != null) {
341341
Dispatch.mainThread {

0 commit comments

Comments
 (0)