Skip to content

Instantly share code, notes, and snippets.

View pcave's full-sized avatar

Phillip Cave pcave

View GitHub Profile
@pcave
pcave / gist:18a79c5b1051daae194d8278ab308b73
Last active October 26, 2017 20:41
Update card_id where missing
<?php
$result = db_query("SELECT f.did FROM fundraiser_sustainers_series s
INNER JOIN fundraiser_sustainers f ON f.master_did = s.did
INNER JOIN fundraiser_donation d ON d.did = f.did
WHERE s.status = 'active'
AND gateway = 'authnet_aim|commerce_payment_authnet_aim'
AND card_id IS NULL
AND d.status = 'pending_future_payment' limit 100");