create order rest API doesn't take "BILLING" as an landing_page value..
mickpurple
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Aug-24-2024
08:10 AM
Snippet of code which is a part of request body,
the value for landing page as "LOGIN" works, but I want the payment page to only give cards option hence the "BILLING" key.
payment_source: {
paypal: {
experience_context: {
payment_method_preference: "IMMEDIATE_PAYMENT_REQUIRED",
brand_name: "EXAMPLE INC",
locale: "en-US",
landing_page: "BILLING",
// shipping_preference: "SET_PROVIDED_ADDRESS",
user_action: "PAY_NOW",
return_url: successUrl,
cancel_url: returnUrl,
},
},
},
Labels:
- Labels:
-
Payments REST APIs
1 REPLY 1
Here-to-help
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug-27-2024
11:35 PM
Hi @mickpurple ,
The accepted values for the landing page in the experience context is LOGIN, GUEST_CHECKOUT(similar to billing), NO_PREFERENCE. refer - https://developer.paypal.com/docs/api/orders/v2/#orders_create!path=payment_source/paypal/experience...
billing value is allowed in the application context's landing page parameter , refer - https://developer.paypal.com/docs/api/orders/v2/#orders_create!path=application_context/landing_page...

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Webhook resend button throws 500 error in REST APIs
- the PayPalScriptProvider doesnt recognize the increments to an order in REST APIs
- create order rest API doesn't take "BILLING" as an landing_page value.. in REST APIs
- Error status PAYER_ACTION_REQUIRED on order capture in REST APIs
- Production account value in Braintree Server-side Integration (PHP, Java, .NET, Ruby, Python, NodeJS SDKs)