Various improvements

This commit is contained in:
Ilya Laktyushin
2022-05-21 14:50:31 +04:00
parent 31300c3c16
commit b79105092c
4 changed files with 27 additions and 4 deletions

View File

@@ -602,7 +602,11 @@ public final class WebAppController: ViewController, AttachmentContainable {
})
if let navigationController = strongSelf.controller?.getNavigationController() {
let checkoutController = BotCheckoutController(context: strongSelf.context, invoice: invoice, source: .slug(slug), inputData: inputData, completed: { currencyValue, receiptMessageId in
self?.sendInvoiceClosedEvent(slug: slug, result: .paid)
}, cancelled: { [weak self] in
self?.sendInvoiceClosedEvent(slug: slug, result: .cancelled)
}, failed: { [weak self] in
self?.sendInvoiceClosedEvent(slug: slug, result: .failed)
})
checkoutController.navigationPresentation = .modal
navigationController.pushViewController(checkoutController)