We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed3488b commit e7ef10eCopy full SHA for e7ef10e
1 file changed
src/PayoneBundle/Registry/Registry.php
@@ -190,5 +190,20 @@ public function findTransactionAppointedForPayoneReference($payoneReference)
190
return $result != false ;
191
}
192
193
+ public static function getBankDataForReference($payoneReference){
194
+ $db = Db::get();
195
+ $result = $db->fetchRow(
196
+ "SELECT data FROM " . self::LOG_TABLE_NAME . " WHERE `" . self::COLUMN__PAYONE_REFERENCE . "` = ? AND `type` = 'preauthorization' ",
197
+ [$payoneReference]
198
+ );
199
+
200
+ if($result){
201
+ return json_decode( $result['data'], true);
202
+ }
203
204
+ return null;
205
206
207
208
209
0 commit comments