Paypal No-Code checkout Credit card option is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I want to integrate no-code checkout in my website.
<script src="https://www.paypal.com/sdk/js?client-id=QK8&components=hosted-buttons&enable-funding=venmo¤cy=..."></script>
<div id="paypal-container-"></div>
<script>
paypal.HostedButtons({
hostedButtonId: "asdf",
}).render("#paypal-container-")
</script>
Now when it is hosted, the paypal payment mode works fine, but when I use credit or debit option.
it says "Expected Order ID to be passed".
This is no-code checkout so why should I pass order id? I do not have any server from which I can call paypal and generate order.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good day @zohno-community ,
Thank you for posting to the PayPal community.
I have tried to reproduce the issue, created a "No-Code Checkout" button and could able to process payment flow without any issues.
Could you please try to create a new "No-Code Checkout" button and try to perform a new test payment via card which is not linked your account, since merchants can't perform test payments.
Note : The "No-Code Checkout" button code internally calls the "Order API".
If your still facing any issues, please create a MTS ticket via - https://www.paypal-support.com/s/?language=en_US with the below details.
1) Detailed steps to reproduce the issue and screen shot of the error page.
2) The full browser URL of the error page and your website URL.
3) When the error page appears, please press Ctrl + U to open the page source. Kindly copy and paste the entire source code in a text file and send it.
Sincerely,
Chiranjeevi
PayPal/Braintree MTS
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- p is not a function error using the example downloaded from Paypal in SDKs
- How to enable on-demand / recurring payments to existing PayPal checkout? in SDKs
- Create Pay Links using PayPal API in REST APIs
- WooCommerce and PayPal GENERIC_ERROR dring CheckOut in PayPal Payments Standard
- Selected Shipping Method amount not updating to cart for card payment in SDKs