We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1a3a9f commit 25add61Copy full SHA for 25add61
src/windows.rs
@@ -239,7 +239,7 @@ impl<R: Runtime> Iap<R> {
239
&self,
240
product_id: String,
241
product_type: String,
242
- offer_token: Option<String>,
+ options: Option<PurchaseOptions>,
243
) -> crate::Result<Purchase> {
244
let context = self.get_store_context()?;
245
@@ -254,6 +254,7 @@ impl<R: Runtime> Iap<R> {
254
let store_id = HSTRING::from(&product_id);
255
256
// Create purchase properties if we have an offer token (for subscriptions)
257
+ let offer_token = options.and_then(|opts| opts.offer_token);
258
let purchase_result = if let Some(token) = offer_token {
259
let properties = StorePurchaseProperties::Create(&HSTRING::from(&product_id))?;
260
0 commit comments