buy_async


Description:

[ Version ( since = "1.3" ) ]
public async bool buy_async (string id, double amount, string currency, Cancellable? cancellable) throws Error

Asynchronously buy a snap from the store.

See buy_sync for more information.

Parameters:

this

a Client.

id

id of snap to buy.

amount

amount of currency to spend, e.g. 0.99.

currency

the currency to buy with as an ISO 4217 currency code, e.g. "NZD".

cancellable

a Cancellable or null.

callback

a TaskReadyCallback to call when the request is satisfied.

user_data

the data to pass to callback function.