From 366bac991795f29555a294763907d1bc6ddb8781 Mon Sep 17 00:00:00 2001 From: Andrei Solovev Date: Mon, 13 May 2024 16:41:56 +0700 Subject: [PATCH] By default payment method provided are verified by presence in capability --- ExampleApp/Views/ProductDetailViewController.swift | 1 - OmiseSDK/Sources/OmiseSDK.swift | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ExampleApp/Views/ProductDetailViewController.swift b/ExampleApp/Views/ProductDetailViewController.swift index c2938aa3..351f9d58 100644 --- a/ExampleApp/Views/ProductDetailViewController.swift +++ b/ExampleApp/Views/ProductDetailViewController.swift @@ -31,7 +31,6 @@ class ProductDetailViewController: BaseViewController { amount: paymentAmount, currency: paymentCurrencyCode, allowedPaymentMethods: usesCapabilityDataForPaymentMethods ? nil : allowedPaymentMethods, - skipCapabilityValidation: true, isCardPaymentAllowed: true, handleErrors: true, delegate: self diff --git a/OmiseSDK/Sources/OmiseSDK.swift b/OmiseSDK/Sources/OmiseSDK.swift index c070f75e..3ea86ba8 100644 --- a/OmiseSDK/Sources/OmiseSDK.swift +++ b/OmiseSDK/Sources/OmiseSDK.swift @@ -62,7 +62,7 @@ public class OmiseSDK { amount: Int64, currency: String, allowedPaymentMethods: [SourceType]? = nil, - skipCapabilityValidation: Bool = true, + skipCapabilityValidation: Bool = false, isCardPaymentAllowed: Bool = true, handleErrors: Bool = true, delegate: ChoosePaymentMethodDelegate