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

Enable configuring billing fields on AddPaymentMethodActivity #1956

Merged
merged 1 commit into from
Dec 17, 2019

Conversation

mshafrir-stripe
Copy link
Collaborator

Summary

Add BillingAddressFields with three values - None, PostalCode, and Full

Add setBillingAddressFields() to PaymentSessionConfig,
PaymentMethodsActivityStarter.Args, and AddPaymentMethodActivityStarter.Args

PaymentSessionConfig.Builder()
    .setBillingAddressFields(BillingAddressFields.Full)
    .build()
AddPaymentMethodActivityStarter.Args.Builder()
    .setBillingAddressFields(BillingAddressFields.Full)
    .build()

Mark setShouldRequirePostalCode() as @Deprecated; use
BillingAddressFields.PostalCode instead.

Motivation

Fixes #1878

Testing

Added unit tests and manually verified

add_billing_details

…dActivity

Add `BillingAddressFields` with three values - `None`, `PostalCode`, and `Full`

Add `setBillingAddressFields()` to `PaymentSessionConfig`,
`PaymentMethodsActivityStarter.Args`, and `AddPaymentMethodActivityStarter.Args`

```
PaymentSessionConfig.Builder()
    .setBillingAddressFields(BillingAddressFields.Full)
    .build()
```

```
AddPaymentMethodActivityStarter.Args.Builder()
    .setBillingAddressFields(BillingAddressFields.Full)
    .build()
```

Mark `setShouldRequirePostalCode()` as `@Deprecated`; use
`BillingAddressFields.PostalCode` instead.

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

Successfully merging this pull request may close these issues.

Add the billing address to the AddPaymentMethodActivity
6 participants