From 27e83b8149ccc51b44948481d27097fffd5a8290 Mon Sep 17 00:00:00 2001 From: codinronan Date: Sun, 14 Apr 2019 22:04:35 -0500 Subject: [PATCH] fix(ios): add status key for payment context error callbacks --- src/ios/StripePaymentsPlugin.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ios/StripePaymentsPlugin.swift b/src/ios/StripePaymentsPlugin.swift index 7b13e53..9063dea 100644 --- a/src/ios/StripePaymentsPlugin.swift +++ b/src/ios/StripePaymentsPlugin.swift @@ -198,7 +198,7 @@ import Stripe alertController.addAction(retry) self.viewController.present(alertController, animated: true, completion: nil) } else { - errorCallback(paymentStatusCallback, ["error": callbackMessage], keepCallback: true) + errorCallback(paymentStatusCallback, ["status": "PAYMENT_STATUS_ERROR", "error": callbackMessage], keepCallback: true) } }