Skip to content

Commit

Permalink
Pass errors on Apple Pay updatePlatformPaySheet (#1230)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuodster authored May 23, 2023
1 parent 9251b05 commit 06ae133
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/stripe_ios/ios/Classes/StripePlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,9 @@ extension StripePlugin {
return
}

updatePlatformPaySheet(summaryItems: summaryItems, shippingMethods: shippingMethods, errors: [], resolver: resolver(for: result), rejecter: rejecter(for: result))
let errors = params["errors"] as? [NSDictionary]

updatePlatformPaySheet(summaryItems: summaryItems, shippingMethods: shippingMethods, errors: errors ?? [], resolver: resolver(for: result), rejecter: rejecter(for: result))
}

func isPlatformPaySupported(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
Expand Down

0 comments on commit 06ae133

Please sign in to comment.