Why does PayPal redirect to different pages (login vs credit card form) depending on browser mode?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
Recurring Payments
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- subscription_id has disappeared in REST APIs
- use the payment button code with variable price in REST APIs
- Paypal buttons and redirects in PayPal Payments Standard
- I get always the error: "invalid client_id or redirect_uri" from signin authorize endpoint. in Braintree Server-side Integration (PHP, Java, .NET, Ruby, Python, NodeJS SDKs)