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

Changing merchant id for native checkout nonce requests #767

Closed
wants to merge 8 commits into from

Conversation

kelay858
Copy link
Contributor

@kelay858 kelay858 commented Aug 10, 2023

Thank you for your contribution to Braintree.

Before submitting this PR, note that we cannot accept language translation PRs. We support the same languages that are supported by PayPal, and have a dedicated localization team to provide the translations. If there is an error in a specific translation, you may open an issue and we will escalate it to the localization team.

Summary of changes

Checklist

  • Added a changelog entry

Authors

List GitHub usernames for everyone who contributed to this pull request.

@kelay858 kelay858 requested a review from a team as a code owner August 10, 2023 23:19
@@ -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;
Copy link
Contributor Author

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";
Copy link
Contributor

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?

Copy link
Contributor Author

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

@kelay858 kelay858 closed this Aug 15, 2023
@kelay858 kelay858 deleted the server-fix-bt branch August 21, 2023 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants