Skip to content

Commit

Permalink
Fixed ProductDetail replacing array with string
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreaming-Codes committed Jun 14, 2024
1 parent bf5de02 commit 36d4b5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion android/src/main/java/MobilePaymentsPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class MobilePaymentsPlugin(private val activity: Activity) : Plugin(activity) {
}

return@executeSuspendingCommand JSObject().apply {
put("price", priceArray)
put("price", priceArray[0])
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ struct AccountIdentifiers {
#[serde(rename_all = "camelCase")]
#[tsync]
pub struct ProductDetail {
pub price: Vec<String>
pub price: String
}

#[derive(Serialize, Deserialize)]
Expand Down

0 comments on commit 36d4b5b

Please sign in to comment.