-
Notifications
You must be signed in to change notification settings - Fork 294
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
Merchant Passed Email addition to Native Checkout #1118
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this require a MXO release to be merged in? If so we should add a do not merge tag. Have we also confirmed this works as expected for the standard PayPal web flow since it's also being added to the BTPayPalVaultRequest
? Additionally we will want to add tests for this new parameter.
Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutRequest.swift
Outdated
Show resolved
Hide resolved
Sources/BraintreePayPalNativeCheckout/BTPayPalNativeCheckoutClient.swift
Show resolved
Hide resolved
Sources/BraintreePayPalNativeCheckout/BTPayPalNativeVaultRequest.swift
Outdated
Show resolved
Hide resolved
In regards to your adding tests comments, should we add new tests in |
@@ -82,6 +82,9 @@ import BraintreeCore | |||
/// Optional: If set to `true`, this enables the Checkout with Vault flow, where the customer will be prompted to consent to a billing agreement during checkout. Defaults to `false`. | |||
public var requestBillingAgreement: Bool | |||
|
|||
/// Optional: User email to initiate a quicker authentication flow in cases where the user has a PayPal Account with the same email. | |||
public var userAuthenticationEmail: String? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take it or leave it comment - I would call these just userEmail
@@ -82,6 +82,9 @@ import BraintreeCore | |||
/// Optional: If set to `true`, this enables the Checkout with Vault flow, where the customer will be prompted to consent to a billing agreement during checkout. Defaults to `false`. | |||
public var requestBillingAgreement: Bool | |||
|
|||
/// Optional: User email to initiate a quicker authentication flow in cases where the user has a PayPal Account with the same email. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linking this comment from the Android PR to align docstrings across platforms. I think the one written here is a bit more descriptive!
We have a big TODO in our test file for that class, because testing MXO requires a hefty amount of mocking/protocol wrapping since all of the classes are final. Maybe in the future this is something we could work with your team on trying to simplify from the PPCP/BT side! For this PR, you can ignore adding tests to |
➕ 1 to what Sammy said about |
Great, right now we are still in the process of conducting a new releases on the MXO side, I'll update here once those changes are released. |
Sources/BraintreePayPalNativeCheckout/BTPayPalNativeVaultRequest.swift
Outdated
Show resolved
Hide resolved
Sources/BraintreePayPalNativeCheckout/BTPayPalNativeVaultRequest.swift
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Thank you for your contribution to Braintree.
Summary of changes
Allow merchant to pass a user's email to use PayPalCheckout's feature to more quickly authenticate the user.
Checklist