Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Programmatically close the Apple Pay payment sheet? #3558

Open
RZR666 opened this issue May 3, 2024 · 1 comment
Open

[Feature] Programmatically close the Apple Pay payment sheet? #3558

RZR666 opened this issue May 3, 2024 · 1 comment

Comments

@RZR666
Copy link

RZR666 commented May 3, 2024

I really need to be able to programmatically close the Apple Payment sheet, I used to be able to on an older SDK, is it still possible?

Many Thanks

@RZR666
Copy link
Author

RZR666 commented May 4, 2024

I added,

`var mockSuccess: StripeAPI.PaymentIntent = StripeAPI.PaymentIntent(id: "", clientSecret: "", amount: 0, canceledAt: nil, captureMethod: .automatic, confirmationMethod: .automatic, created: Date(), currency: "", stripeDescription: "", livemode: false, receiptEmail: "", sourceId: "", paymentMethodId: "", status: .succeeded, shipping: nil);

completion(.success(mockSuccess))`

into

PaymentIntent+API.swift

as a quick fix, since I want to continue doing the clientSecret check on the api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant