createOrder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I haven't created a new PP script for several years and a lot of things have changed. So I logged in and > Quick Links > Pay Pal Checkout > Quick setup for individual items. I copied the code and installed it and "Hey, it worked". Great. Now I need to modify it to accept a "item_number" (or item_name) so that when "auto-return" comes back with the transaction I can pull the right data/customer and update my order database.
[code] return actions.order.create({
purchase_units: [{
amount: {
value: '1.01',
},
item_name: {
value: '54,250',
}
}]
});
[/code]
the above runs but what gets returned is: ["item_name"}=> string(0) ""
Help please
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @rhubarbexpert,
Thank you for contacting PayPal community.
We apologize for any inconvenience.
I request to please use the "items" array under "purchase_unit_request ".
Thank you for understanding and patience.
Sincerely,
Chiranjeevi
PayPal, Inc.
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For some unknown REASON PayPal ANSWERS FAIL to give the user what he asking. He did not want a REFERENCE to the API STRINGS, I believe he Wanted AN EXAMPLE OF HOW TO USE IT IN HIS CODE. ARE YOU PEOPLE ON DRUGS???
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Error: "Unable to change shipping method. Please try again." in PayPal popup in REST APIs
- How to redirect user to paypal checkout form for card payment? in PayPal Payments Standard
- Getting an error when trying to create an order. in REST APIs
- Payment not automatically being captured, funds not transferred in Sandbox Environment
- How do i pass a customer ID number in the transaction in Sandbox Environment