deleted: fix_stuck_refund.sql
This commit is contained in:
parent
f58bd3e628
commit
fee8dac473
1 changed files with 0 additions and 27 deletions
|
|
@ -1,27 +0,0 @@
|
|||
-- Fix the payment that had a successful refund but missing transaction hash
|
||||
-- Payment ID: a7d015e7-9adf-11f0-a73e-02dfe05770ee
|
||||
-- Refund TX: 86797dcc2f1a32a23142199844470b4890d8137421bb1e647608add9783c5e2a
|
||||
-- Refund amount: 0.00156780318058 XMR = 1567803180 piconero
|
||||
|
||||
UPDATE mps_crypto_payment
|
||||
SET
|
||||
refund_tx_hash = '86797dcc2f1a32a23142199844470b4890d8137421bb1e647608add9783c5e2a',
|
||||
refund_amount = 1567803180,
|
||||
refund_reason = 'Underpayment: received 0.001722860638 but expected 0.003628767358',
|
||||
status = 'underpaid-refunded-complete',
|
||||
updated_timestamp = CAST(strftime('%s', 'now') AS INTEGER) * 1000
|
||||
WHERE
|
||||
id = 'a7d015e7-9adf-11f0-a73e-02dfe05770ee'
|
||||
AND status = 'underpaid-refunded'
|
||||
AND refund_tx_hash IS NULL;
|
||||
|
||||
-- Verify the update
|
||||
SELECT
|
||||
id,
|
||||
status,
|
||||
refund_tx_hash,
|
||||
refund_amount,
|
||||
refund_reason,
|
||||
datetime(updated_timestamp/1000, 'unixepoch', 'localtime') as updated_at
|
||||
FROM mps_crypto_payment
|
||||
WHERE id = 'a7d015e7-9adf-11f0-a73e-02dfe05770ee';
|
||||
Loading…
Add table
Add a link
Reference in a new issue