From 6ea84beb323cee3c52f4ec1d003daee87dab7ee6 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Tue, 22 Dec 2020 13:23:36 +0500 Subject: [PATCH] send user id to server on requesting purchase --- apps/mobile/src/components/Premium/PremiumDialog.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/mobile/src/components/Premium/PremiumDialog.js b/apps/mobile/src/components/Premium/PremiumDialog.js index 142ff18ec..53e3c028d 100644 --- a/apps/mobile/src/components/Premium/PremiumDialog.js +++ b/apps/mobile/src/components/Premium/PremiumDialog.js @@ -254,7 +254,14 @@ class PremiumDialog extends React.Component { eSendEvent(eOpenLoginDialog); }, 400); } else { - RNIap.requestSubscription(this.state.product?.productId) + RNIap.requestSubscription( + this.state.product?.productId, + false, + null, + null, + null, + this.state.user.id, + ) .then((r) => {}) .catch((e) => { console.log(e);