From e29dfea13a94d740a6a0b4ee3b3fcb2b37621bc2 Mon Sep 17 00:00:00 2001 From: codinronan Date: Mon, 25 Mar 2019 02:05:46 -0600 Subject: [PATCH] feat(ios): use png image for cards --- src/ios/StripePaymentsPlugin.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ios/StripePaymentsPlugin.swift b/src/ios/StripePaymentsPlugin.swift index acda3cb..f49b5de 100644 --- a/src/ios/StripePaymentsPlugin.swift +++ b/src/ios/StripePaymentsPlugin.swift @@ -207,7 +207,8 @@ import Stripe if let filePath = paths.first?.appendingPathComponent("StripePaymentMethod.jpg") { // Save image. do { - try selectedPaymentOption.image.jpegData(compressionQuality: 1)?.write(to: filePath, options: .atomic) + // try selectedPaymentOption.image.jpegData(compressionQuality: 1)?.write(to: filePath, options: .atomic) + try selectedPaymentOption.image.pngData()?.write(to: filePath, options: .atomic) image = filePath.absoluteString } catch { }