mirror of
https://github.com/standardebooks/web.git
synced 2025-07-10 00:30:28 -04:00
Update user in database if they exist when processing a payment
This commit is contained in:
parent
de9e8161ce
commit
727e1af67d
2 changed files with 9 additions and 15 deletions
|
@ -50,15 +50,6 @@ $pendingPayments = Db::Query('start transaction;
|
|||
update PendingPayments set ProcessedOn = utc_timestamp() where ProcessedOn is null;
|
||||
commit;');
|
||||
|
||||
// $pendingPayments = [];
|
||||
// $csv = array_map( 'str_getcsv', file( '/home/alex/donations.csv') );
|
||||
// foreach($csv as $row){
|
||||
// $obj = new stdClass();
|
||||
// $obj->TransactionId = $row[0];
|
||||
// $obj->ChannelId = PAYMENT_CHANNEL_FA;
|
||||
// $pendingPayments[] = $obj;
|
||||
// }
|
||||
|
||||
if(sizeof($pendingPayments) == 0){
|
||||
// Don't start the very slow Selenium driver if we have nothing to process
|
||||
exit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue