davidtsadler / ebay-sdk-examples

Several examples of using the eBay SDK for PHP
http://devbay.net
Apache License 2.0
184 stars 100 forks source link

request: demonstrate listing with "Require immediate payment with Buy It Now" option #43

Closed jlahijani closed 4 years ago

jlahijani commented 7 years ago

Would it be possible to update one of the existing examples (link this one; https://github.com/davidtsadler/ebay-sdk-examples/blob/master/trading/04-add-fixed-price-item.php) demonstrating how to enable the "Require immediate payment with Buy It Now" option? I'm not sure how to implement this with the API. Or if you'd be able to put a snippet as a comment here that'd be great too.

2017-08-06_15-49-31

Thank you.

davidtsadler commented 7 years ago

Have you tried to implement this yourself. If so do have any code to show that I could look at?

jamiethompson commented 7 years ago

I believe this would be as simple as $item->AutoPay = true

Source: https://developer.ebay.com/Devzone/XML/docs/Reference/eBay/AddFixedPriceItem.html