@@ -179,7 +179,9 @@ def _send_payments(self, batches):
179179 )
180180 try :
181181 _logger .info ("G2P Bridge Disbursement Batch Data: %s" , batch_data )
182- token = self .create_jwt_token (json .dumps (batch_data , separators = ("," , ":" )))
182+ token = self .create_jwt_token (
183+ json .dumps (batch_data , indent = None , separators = ("," , ":" ), sort_keys = True )
184+ )
183185 headers = {
184186 "Accept" : "application/json" ,
185187 "Content-Type" : "application/json" ,
@@ -268,7 +270,9 @@ def payments_status_check(self, id_):
268270 }
269271 try :
270272 _logger .info ("G2P Connect Disbursement Status Data: %s" , status_data )
271- token = payment_manager .create_jwt_token (json .dumps (status_data , separators = ("," , ":" )))
273+ token = payment_manager .create_jwt_token (
274+ json .dumps (status_data , indent = None , separators = ("," , ":" ), sort_keys = True )
275+ )
272276 headers = {
273277 "Accept" : "application/json" ,
274278 "Content-Type" : "application/json" ,
@@ -388,7 +392,9 @@ def _create_envelope_g2p_bridge(self, cycle):
388392 },
389393 }
390394 try :
391- token = self .create_jwt_token (json .dumps (envelope_request_data , separators = ("," , ":" )))
395+ token = self .create_jwt_token (
396+ json .dumps (envelope_request_data , indent = None , separators = ("," , ":" ), sort_keys = True )
397+ )
392398 headers = {
393399 "Accept" : "application/json" ,
394400 "Content-Type" : "application/json" ,
0 commit comments