简体   繁体   English

如何在 PayPal 订阅 API 中获取用户的订阅状态

[英]How do I get the subscription status of a user in PayPal subscription API

我想知道用户在一段时间内是否取消订阅,如果订阅被取消,我将阻止用户使用某些功能,如何在没有 Node 的情况下在 JavaScript 中获取订阅的当前状态.js。

I recommend you to read the documentation about that Paypal API that developer.payplay provides https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions_get .我建议您阅读 developer.payplay 提供的有关 Paypal API 的文档https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions_get You just need to call你只需要打电话

  "status": "ACTIVE",
  "status_update_time": "2019-04-09T10:27:27Z"

and make manually the comparassion getting the status value.并手动比较获取状态值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM