To match the old online payment history page:
- apiClientName: billing_visa_master_username / billing_sber_username
- formUrl falls back to the logged register.do response, so finalized
attempts keep it; successUrl is the returnUrl logged with register.do
- callbackStatus ("received") and callbackAt from the attempt's first
callback_received log
- index visa_master_payment_logs (order_id, step) for those lookups
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 lines
310 B
SQL
6 lines
310 B
SQL
-- payment-history reads each attempt's register/callback log rows
|
|
-- (formUrl, returnUrl, first callback) by order and step; without this
|
|
-- every row of a page scans all of its order's logs.
|
|
CREATE INDEX IF NOT EXISTS visa_master_payment_logs_order_step_idx
|
|
ON visa_master_payment_logs (order_id, step);
|