Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/84.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java facebook支付订阅,价格硬编码_Java_Facebook_Payment_Subscription - Fatal编程技术网

Java facebook支付订阅,价格硬编码

Java facebook支付订阅,价格硬编码,java,facebook,payment,subscription,Java,Facebook,Payment,Subscription,正如我所看到的,价格是在OpenGraphHTML对象(fbpayment:price)中硬编码的,每次创建订阅时都会引用该对象。我想知道,在用户创建订阅时,是否有一些变通办法来设置价格。例如,订阅订单中的某种参数或类似的内容 我可能误读了该文档,但从该文档中: There may be zero or more `alternate_price` properties, to allow the application to price subscriptions differently fo

正如我所看到的,价格是在OpenGraphHTML对象(fbpayment:price)中硬编码的,每次创建订阅时都会引用该对象。我想知道,在用户创建订阅时,是否有一些变通办法来设置价格。例如,订阅订单中的某种参数或类似的内容

我可能误读了该文档,但从该文档中:

There may be zero or more `alternate_price` properties, to allow the application to price subscriptions differently for different currencies.


这不包括您的用例吗?

谢谢Igy的回答。恐怕这不是我要找的。我的意思是,我想以数字方式设置订阅价格,即:如果用户在其会话中购买N个项目,我想每月向该用户收取N个项目的费用(该价格在运行时设置),如果同一用户选择另一个K个项目,则应用程序将向他收取(每月或每周)这些项目的费用,大概在运行时设定了不同的价格。我怀疑(目前)无法做到这一点,但我想确定一下。我认为您案例的解决办法是定义不同价位的订阅,向用户收取与其所选项目匹配的任何价位的费用,并应用您这边的特定项目,即用户订阅“捆绑包@20.00”,但该捆绑包中包含的具体内容是在其他地方处理的,我认为这将是一种方式,如果这取决于我,这将是解决办法,但不幸的是,生活并不容易:(您可能会为某人购买的每种奖金组合创建一个订阅对象,但定义价格点并让用户选择适合该价格点的奖金可能会更容易(即“您选择了套餐a,您可以选择其中6种,其中4种”)-如果API不支持您希望使用API执行的操作,则需要执行其他操作
An app can define multiple subscriptions associated with the app. However a user can have only one active subscription at any time for that app.