Skip to content

Commit

Permalink
Merge pull request #414 from hirosukedayo/fix/initial-error-value-for…
Browse files Browse the repository at this point in the history
…-apple-pay

ios: fix: initial error value for apple pay
  • Loading branch information
rdlabo authored Dec 8, 2024
2 parents fd448ee + bd93416 commit c16cb9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ extension ApplePayExecutor {

func applePayContext(_ context: STPApplePayContext, didCreatePaymentMethod paymentMethod: StripeAPI.PaymentMethod, paymentInformation: PKPayment, completion: @escaping STPIntentClientSecretCompletionBlock) {
let clientSecret = self.appleClientSecret
let error = "" // Call the completion block with the client secret or an error
let error: String? = nil // Call the completion block with the client secret or an error
completion(clientSecret, error as? Error)
let jsonArray = self.transformPKContactToJSON(contact: paymentInformation.shippingContact)
self.plugin?.notifyListeners(ApplePayEvents.DidCreatePaymentMethod.rawValue, data: ["contact": jsonArray])
Expand Down

0 comments on commit c16cb9b

Please sign in to comment.