Discounts via PayPal REST API sample?

南楼画角 提交于 2019-12-23 19:57:08

问题


PayPal GURUS, i need a help, how to insert discount, i use REST API, may be some one, can show sample of code?Is there any way to send discount amount using PHP REST API?


回答1:


At this moment, discounts are not supported in the REST payments API. Your best bet would be to compute the discounted amount on your end and use that as the subtotal as transactions.amount.details.subtotal (https://developer.paypal.com/webapps/developer/docs/api/#create-a-payment).

It is a planned future enhancement, and the invoicing apis do support discounts. (https://developer.paypal.com/webapps/developer/docs/api/#create-an-invoice)



来源:https://stackoverflow.com/questions/19951530/discounts-via-paypal-rest-api-sample

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!