From a7a762d43f54101e09bd01e24b56c042e9089ce6 Mon Sep 17 00:00:00 2001 From: codinronan Date: Tue, 10 Sep 2019 23:46:53 -0500 Subject: [PATCH] chore(note): explain why the STPPaymentResult callback changed --- src/ios/StripePaymentsPlugin.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ios/StripePaymentsPlugin.swift b/src/ios/StripePaymentsPlugin.swift index 4010608..9f2cef4 100644 --- a/src/ios/StripePaymentsPlugin.swift +++ b/src/ios/StripePaymentsPlugin.swift @@ -248,6 +248,9 @@ import Stripe print("[StripePaymentsPlugin].paymentContext.didCreatePaymentResult: \(resultMsg)") successCallback(paymentStatusCallback, resultMsg, keepCallback: true) + + // This is here to, for example, inform the context that the user canceled payment (if we were processing it + // from the native side). However we are not handling it here. completion(STPPaymentStatus.success, nil) }