create order rest API doesn't take "BILLING" as an landing_page value..

mickpurple
New Community Member

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,
        },
      },
    },
Login to Me Too
1 REPLY 1

Here-to-help
Contributor
Contributor

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...

Login to Me Too

Haven't Found your Answer?

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