-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve PaymentMethodCreateParams.Card creation (#862)
When creating a `PaymentMethod` with a card, the card object can either be created from the user's card details (e.g. card number, CVC, expiration), or via a Stripe token (e.g. Google Pay). `PaymentMethodCreateParams.Card.Builder`'s setters made it confusing to the developer that there were two separate approaches to creating a `PaymentMethodCreateParams.Card`. With this chamge, the Builder will be used when creating with card details, and `PaymentMethodCreateParams.Card#create` will be used when creating with a Stripe token. ANDROID-346
- Loading branch information
1 parent
65ae04a
commit 6d5daac
Showing
2 changed files
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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