Why does PayPal redirect to different pages (login vs credit card form) depending on browser mode?

fedef098
New Community Member

I'm integrating PayPal into my website for processing payments, and I've noticed inconsistent behavior when users are redirected to PayPal after initiating a purchase.

  • Expected behavior: I want PayPal to always show the credit card form (no login required) for payment.
  • Actual behavior:
    • When I access the website in a normal browser session, PayPal redirects me to the login page.
    • When I access the website in incognito mode, PayPal shows the credit card form, which is the behavior I want.

I'm using the PayPal API and setting the landingPage parameter in the ApplicationContext to "BILLING" to force the credit card form. Here's the relevant part of my code:

 

 

 

 

ApplicationContext applicationContext = new ApplicationContext()
        .returnUrl(baseUrl + url)
        .cancelUrl(baseUrl + "/event-detail/checkout/cancel/" + eventId + "/" + purchaseExternalId)
        .brandName("Kapiqua")
        .landingPage("BILLING")  // Force credit card form
        .userAction("PAY_NOW");
orderRequest.applicationContext(applicationContext);

 

 

I'm using the OrdersCreateRequest to create the order and pass the configuration.

Why does PayPal redirect differently in normal mode vs incognito mode? How can I ensure that all users (in any browser mode) always see the credit card form instead of the login page?

Environment:

  • Language: Java
  • PayPal SDK: PayPalHttpClient
  • Endpoint: Orders API (v2/checkout/orders)
  • Payment intent: "CAPTURE"

Any guidance on how to fix this would be greatly appreciated! Thank you.



Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.