简体   繁体   English

如何从Ruby API中完全删除“递归”帐户

[英]How to delete a “Recurly” account completely from ruby api

Can anyone please tell me how to delete a recurly account. 谁能告诉我如何删除递归帐户。 As, I have tried with the following commands, 作为,我尝试了以下命令,

r = Recurly::Account.find(account_code)
r.delete

And also, I have tried with "r.destroy". 而且,我尝试使用“ r.destroy”。

But, it only changing the state of recurly account from "active" to "closed" and not deleting the account completely. 但是,它只会将递归帐户的状态从“活动”更改为“已关闭”,而不会完全删除该帐户。

I am using rails 2.3.11 for this application. 我为此应用程序使用rails 2.3.11。

As per the Recurly official documentation the account can only be closed. 根据Recurly官方文档 ,只能关闭该帐户。

Because you have the option to reopen the account in future. 因为您可以选择以后重新打开帐户。

Soundar is correct. Soundar是正确的。 I'll also note that if your account is still in sandbox mode, you can go to Site Settings and click "Clear Test Data" to clear out any test accounts, transactions, or coupon redemptions (configuration settings remain). 我还要注意,如果您的帐户仍处于沙盒模式,则可以转到“网站设置”,然后单击“清除测试数据”以清除所有测试帐户,交易或优惠券兑换(保留配置设置)。 In production mode, accounts cannot be deleted to retain their historical accounting data. 在生产模式下,无法删除帐户以保留其历史会计数据。

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

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