是否可以在期末而不是立即降级用户?我已经梳理了API Docs,但却无法弄清楚如何实现这一目标.
作为一种解决方法,我目前正在取消用户的订阅,然后订阅较少的订阅,试用到月底.这不会起作用 - 我需要能够将降级延迟到期末(但是在请求降级时"记录"它与Stripe).
很明显,有一些方法可以通过webhook回调和本地跟踪用户订阅来实现这一目标,但我希望尽可能避免这种情况.
编辑
在有人要求之前 - 我正在使用Temboo的PHP SDK.但是,我不是在寻找一种特定于语言的方法,只是一种高级的方法(如果可能的话).
使用Processing和Temboo库更新状态到Facebook,但我遇到以下错误:"类型Post是模棱两可的"这条线似乎是突出显示的原因"Post postChoreo = new Post(session);".关于如何解决这个问题的任何建议都会非常好.
import com.temboo.core.*;
import com.temboo.Library.Facebook.Publishing.*;
// Create a session using your Temboo account application details
TembooSession session = new TembooSession("dylabaloo", "myFirstApp",
"xxxxxxxxxxxxxxxxxxxx");
void setup() {
// Run the Post Choreo function
runPostChoreo();
}
void runPostChoreo() {
// Create the Choreo object using your Temboo session
Post postChoreo = new Post(session);
// Set inputs
postChoreo.setAccessToken("xxxxxxxxxxxxxxxxxx");
postChoreo.setMessage("Your High Score is:");
// Run the Choreo and store the results
PostResultSet postResults = postChoreo.run();
// Print results
println(postResults.getResponse());
}
Run Code Online (Sandbox Code Playgroud)