-
Notifications
You must be signed in to change notification settings - Fork 235
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
Changing merchant id for native checkout nonce requests #767
Conversation
@@ -97,6 +100,9 @@ public void failure(RetrofitError error) { | |||
transactionRequest = new TransactionRequest(amount, nonceString, unionPayMerchantAccountId); | |||
} else { | |||
String merchantAccountId = Settings.getMerchantAccountId(activity); | |||
if (merchantAccountId == null && nonce instanceof PayPalNativeCheckoutAccountNonce) { | |||
merchantAccountId = PAYPAL_NATIVE_CHECKOUT_CLIENT_ID; |
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.
since we create the ba token with this client id we need to execute the transaction with it as well
@@ -8,6 +8,7 @@ | |||
import com.braintreepayments.api.PostalAddress; | |||
|
|||
public class PayPalNativeCheckoutRequestFactory { | |||
public static final String PAYPAL_NATIVE_CHECKOUT_CLIENT_ID = "NativeXOTest"; |
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.
should we name this PAYPAL_NATIVE_CHECKOUT_MERCHANT_ID
?
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.
yeah i will switch to merchant
Thank you for your contribution to Braintree.
Summary of changes
Checklist
Authors