@@ -275,9 +275,14 @@ public void onErrorResponse(VolleyError error) {
275275 @ Override
276276 protected Map <String , String > getParams () throws AuthFailureError {
277277 Map <String , String > params = new HashMap <>();
278+
279+ String email =null ;
280+ email = getPrimaryEmailAddress ();
281+ if (email !=null )
282+ params .put (EMAIL_TAG , email );
283+
278284 params .put (SKU_TAG , sku );
279285 params .put (DEVICE_ID_TAG , getDeviceID (context ));
280- params .put (EMAIL_TAG , getPrimaryEmailAddress ());
281286 return params ;
282287 }
283288 };
@@ -333,10 +338,15 @@ public void onErrorResponse(VolleyError error) {
333338 @ Override
334339 protected Map <String , String > getParams () throws AuthFailureError {
335340 Map <String , String > params = new HashMap <>();
341+
342+ String email =null ;
343+ email = getPrimaryEmailAddress ();
344+ if (email !=null )
345+ params .put (EMAIL_TAG , email );
346+
336347 params .put (SKU_TAG , sku );
337348 params .put (PAY_CODE_TAG , payCode );
338349 params .put (VERIFICATION_TYPE_TAG , getVerificationType ());
339- params .put (EMAIL_TAG , getPrimaryEmailAddress ());
340350 params .put (DEVICE_ID_TAG , getDeviceID (context ));
341351 params .put (DEVICE_MODEL_TAG , Build .MODEL );
342352 params .put (DEVICE_MANUFACTURER_TAG , Build .MANUFACTURER );
0 commit comments