mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 10:02:02 -04:00
Convert some constants to enums
This commit is contained in:
parent
06425d3dd6
commit
ee7c8343dd
52 changed files with 282 additions and 268 deletions
|
@ -69,7 +69,8 @@ try{
|
|||
$driver = FirefoxDriver::start($capabilities);
|
||||
|
||||
foreach($pendingPayments as $pendingPayment){
|
||||
if($pendingPayment->ChannelId == PAYMENT_CHANNEL_FA){
|
||||
$pendingPayment->Processor = PaymentProcessor::from($pendingPayment->Processor);
|
||||
if($pendingPayment->Processor == PaymentProcessor::FracturedAtlas){
|
||||
$log->Write('Processing donation ' . $pendingPayment->TransactionId . ' ...');
|
||||
|
||||
if(Db::QueryInt('
|
||||
|
@ -121,7 +122,7 @@ try{
|
|||
|
||||
$payment = new Payment();
|
||||
$payment->User = new User();
|
||||
$payment->ChannelId = $pendingPayment->ChannelId;
|
||||
$payment->Processor = $pendingPayment->Processor;
|
||||
try{
|
||||
// If the donation is via a foundation (like American Online Giving Foundation) then there will be a 'soft credit' <th> element.
|
||||
if(sizeof($detailsRow->findElements(WebDriverBy::xpath('//th[normalize-space(.) = "Soft Credit Donor Info"]'))) > 0){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue