Can't find why order is being rejected (sb, js)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My website takes reservations for "Supertitles" for American orchestras wanting to project text or translations coordinated with sung lyrics. I have gotten my code to work a few times when I have copied examples verbatim, but as soon as I start putting in my own values, I get 400's or 422's. I would like to show you what I have, and see if you can spot where I'm going awry. Here are the values being submitted, followed by my code, which resides in a function called to render the button:
I have omitted the code that builds the objects and fills the variables, as it should be clear from the values shown whether they are properly constructed. For testing I'm using a random number for reference_id, so as not to be submitting repeat orders.
For now, I'm not concerned with the onApprove: code; I'll tackle it once I can get the order correct. There's probably something very simple that should be obvious, but I need some more experienced eyes to find it. Any help will be greatly appreciated!
FWIW, I have a fair amount of experience as a hobbyist programmer, but am relatively new to javascript. This is my first time dealing with js objects.
- Labels:
-
PayPal HTML Buttons
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can someone please explain why my screenshots have disappeared? No one will be able to help me without their information. Am I in the wrong venue to get an answer to my question?
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- [UNPROCESSABLE_ENTITY], but payment went through in PayPal Payments Standard
- PAYER_ACTION_REQUIRED returned for Capture intent when calling v2 checkout orders in Sandbox Environment
- API TRANSACTION_REFUSED in Sandbox when Capturing Payment in REST APIs
- When clicking on a payment button generates error: Unexpected token ... in PayPal Payments Standard
- Error: "Unable to change shipping method. Please try again." in PayPal popup in REST APIs