Skip to content

Commit e7ef10e

Browse files
author
Fabian Pechstein
committed
[bug-fix] get bankdata from db for order mail
1 parent ed3488b commit e7ef10e

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/PayoneBundle/Registry/Registry.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,5 +190,20 @@ public function findTransactionAppointedForPayoneReference($payoneReference)
190190
return $result != false ;
191191
}
192192

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+
193208

194209
}

0 commit comments

Comments
 (0)