应用内结算的 getBuyIntent() 和 launchPurchaseFlow() 方法有什么区别?

What's the difference between getBuyIntent() and launchPurchaseFlow() methods for in-app billing?

This one says that I shall use getBuyIntent() to start purchase flow, whereas another one 告诉我使用 launchPurchaseFlow()。

我应该使用哪一个?

要在应用计费中使用,您必须使用 IInAppBillingService. First link is about this service API. The second link (training section) explains example with wrapper around IInAppBillingService, so underneath 它也使用 getBuyIntent().