Skip to content

Commit

Permalink
Use capabilities in Code mode fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Solovev committed Jan 10, 2024
1 parent ad31998 commit e418580
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ExampleApp/Views/ProductDetailViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit e418580

Please sign in to comment.