From e4185804f79a5949cdabbd175fa58e66069c1bc9 Mon Sep 17 00:00:00 2001 From: Andrei Solovev Date: Wed, 10 Jan 2024 16:26:32 +0700 Subject: [PATCH] Use capabilities in Code mode fixed --- ExampleApp/Views/ProductDetailViewController.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ExampleApp/Views/ProductDetailViewController.swift b/ExampleApp/Views/ProductDetailViewController.swift index 3c88f008..58d74506 100644 --- a/ExampleApp/Views/ProductDetailViewController.swift +++ b/ExampleApp/Views/ProductDetailViewController.swift @@ -99,6 +99,11 @@ class ProductDetailViewController: BaseViewController { allowedPaymentMethods: allowedPaymentMethods, paymentDelegate: self ) + + if usesCapabilityDataForPaymentMethods, let capability = self.capability { + paymentCreatorController.applyPaymentMethods(from: capability) + } + present(paymentCreatorController, animated: true, completion: nil) }