Implement PaymentMethodCreateParams.createTwint() function #12247
Closed
igorescodro wants to merge 4 commits intostripe:masterfrom
Closed
Implement PaymentMethodCreateParams.createTwint() function #12247igorescodro wants to merge 4 commits intostripe:masterfrom
PaymentMethodCreateParams.createTwint() function #12247igorescodro wants to merge 4 commits intostripe:masterfrom
Conversation
Adding `createTwint()` function inside `PaymentMethodCreateParams`, allowing the payment provider to be confirmed by the Android app using `PaymentLauncher.confirm()`. Test and example classes were created to cover this new implementation.
igorescodro
commented
Jan 20, 2026
| "pk_test_51JtgfQKG6vc7r7YCU0qQNOkDaaHrEgeHgGKrJMNfuWwaKgXMLzPUA1f8ZlCNPonIROLOnzpUnJK1C1xFH3M3Mz8X00Q6O4GfUt" | ||
|
|
||
| const val TWINT_PUBLISHABLE_KEY = | ||
| "add-stripe-pk-here-for-tests" |
Contributor
Author
There was a problem hiding this comment.
We will need a Stripe generated test key for TWINT here. Could you please provide one?
3 tasks
Collaborator
|
Thanks for adding this! I opened a separate PR that pulls the branch here so that our checks pass properly. Closing this one in favor of that one but retained the commit. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adding
createTwint()function insidePaymentMethodCreateParams, allowing the payment provider to be confirmed by the Android app usingPaymentLauncher.confirm(). Test and example classes were created to cover this new implementation.Motivation
In the current Android SDK, it's not possible to use
ConfirmPaymentIntentParamswith TWINT, like with other payment methods such as PayPal, CashApp, NolPay, etc. We discussed with the Stripe Support and they informed us that there is no support yet. The goal of this PR is to speed up the inclusion of this new functionality.Trying to create it with the existing APIs, will result in a
StripeError.This new API, allows to use TWINT:
Testing
Changelog
PaymentMethodCreateParams.createTwint()function.