@@ -96,6 +96,7 @@ def record(self, extra_data={}):
9696 'task_id' : self .get_record_task_id (),
9797 'user_id' : self .get_record_user_id (),
9898 'credential_id' : self .get_record_credential_id (),
99+ 'payflow' : getattr (self , 'payflow' , None ),
99100 'request' : self .get_record_request (),
100101 'response' : self .get_record_response ()
101102 }
@@ -134,6 +135,12 @@ def initialize_application_id(self):
134135 'utf-8' ) if application_id and len (application_id ) > 0 else None
135136 logger .debug (f'application id { self .application_id } ' )
136137
138+ def initialize_payflow (self ):
139+ payflow = self .request .query_arguments .get ('payflow' )
140+ self .payflow = payflow [0 ].decode (
141+ 'utf-8' ) if payflow and len (payflow ) > 0 else None
142+ logger .debug (f'payflow { self .payflow } ' )
143+
137144 def initialize_task_id (self ):
138145 self .task_id = str (uuid4 ())
139146 logger .debug (f'task id { self .task_id } ' )
@@ -145,3 +152,4 @@ def initialize(self):
145152 self .initialize_api_id ()
146153 self .initialize_user_id ()
147154 self .initialize_credential_id ()
155+ self .initialize_payflow ()
0 commit comments