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 · 2 comments
Open

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

RZR666 opened this issue May 3, 2024 · 2 comments
Labels
kind:improvement triaged Issue has been reviewed by Stripe and is being tracked internally

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.

@yuki-stripe yuki-stripe added the triaged Issue has been reviewed by Stripe and is being tracked internally label May 28, 2024
@yuki-stripe
Copy link
Collaborator

Hello, this feature is not available today but thank you for the suggestion. We revisit our roadmap periodically and will keep this idea in mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:improvement triaged Issue has been reviewed by Stripe and is being tracked internally
Projects
None yet
Development

No branches or pull requests

2 participants