通过PayPal REST API的样品折扣? [英] Discounts via PayPal REST API sample?

查看:219
本文介绍了通过PayPal REST API的样品折扣?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

贝宝大师,我需要帮助,如何插入打折,我使用REST API,可能会出现一些之一,可以显示code的样本?有什么办法送优惠额度使用PHP REST API?

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?

推荐答案

在这一刻,折扣不是在支付REST API的支持。最好的办法是计算在最终的折现后的金额和使用,作为小计transactions.amount.details.subtotal(的 https://developer.paypal.com/webapps/developer/docs/api/#create-a-payment )。

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).

这是一个计划中的未来的增强,以及发票的API都支持折扣。 ( https://developer.paypal.com/webapps/developer /文档/ API /#创建-的发票

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

这篇关于通过PayPal REST API的样品折扣?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆