Skip to content

Commit

Permalink
Merge pull request #115 from dparker1005/fix-creating-recurring-order…
Browse files Browse the repository at this point in the history
…s-after-other-gateway-payment

Do not create recurring orders if last payment was from another gateway
  • Loading branch information
dparker1005 committed Mar 28, 2024
2 parents 0453d12 + 53002db commit a0a92ba
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pmpro-pay-by-check.php
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,6 @@ function pmpropbc_recurring_orders()
(SELECT mo1.id, mo1.user_id, mo1.timestamp
FROM {$wpdb->pmpro_membership_orders} AS mo1
WHERE mo1.membership_id = $level->id
AND mo1.gateway = 'check'
AND mo1.status IN('pending', 'success')
) as o2
Expand Down

0 comments on commit a0a92ba

Please sign in to comment.