简体   繁体   English

2Checkout API - 定期付款是否有与之相关的定期ID?

[英]2Checkout API - Does recurring payments have a recurring id associated with it?

We usually make a 'sale/detail_sale' API call to 2Checkouts URL, to get the details for a particular transaction/sale. 我们通常会对2Checkouts网址进行“sale / detail_sale”API调用,以获取特定交易/促销的详细信息。

Suppose that the sale is of recurring type. 假设销售是经常性的。 Will that particular transaction/sale have a recurring_id (or subscription_id) associated with it. 该特定交易/销售是否具有与之相关的recurring_id(或subscription_id)。

Like in PayPal: If the transaction is of recurring type, then it has a subscription_id(like I-XXXXXXXXXX) associated with it. 与PayPal类似:如果事务是重复类型,那么它有一个与之关联的subscription_id(如I-XXXXXXXXXX)。 All the transactions related to that subscription will have the same subscription_id, but their transaction_id's are different.The subscription_id acts like the parent-id. 与该订阅相关的所有事务将具有相同的subscription_id,但它们的transaction_id是不同的.s subscription_id的行为类似于parent-id。

Any help will be appreciated. 任何帮助将不胜感激。

Thanks in advance. 提前致谢。

2Checkout recurring sales do not have any additional recurring identifier. 2Checkout定期销售没有任何额外的定期标识符。 All 2Checkout sales have a sale_id, and invoice_id and at least one lineitem_id. 所有2Checkout销售都有sale_id,invoice_id和至少一个lineitem_id。 Recurring sales create a new invoice on each recurring installment so the sales/detail_sale API call may return multiple invoices. 定期销售在每个定期分期付款上创建新发票,因此sales / detail_sale API调用可能会返回多个发票。 So the sale_id can have many invoice_id's and each invoice_id can have many linitems_id's. 所以sale_id可以有很多invoice_id,每个invoice_id可以有很多linitems_id。

If you need to stop the recurring billing on a sale, you need to stop the recurring billing an each active recurring lineitem. 如果您需要在销售中停止定期结算,则需要停止每个有效的重复生产线的定期结算。 The lineitem_id is changed on each new invoice on a recurring sale so when making the stop_lineitem_recurring call it is necessary to use the lineitem_ids from the most recently billed invoice as demonstrated in the 2checkout-php-library . 在定期销售的每张新发票上都会更改lineitem_id,因此在进行stop_lineitem_recurring调用时,必须使用最近结算的发票中的lineitem_ids,如2checkout-php-library中所示

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

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