Payments QA Runbook
Vesper QA guide for payment gateway readiness, saved methods, payment links, checkout, recurring plans, refunds, disputes, settlement, and payment reports
Use this runbook in Vesper QA only:
https://exodus--vesper.sandbox.lightning.force.com
QA Scope
Validate the full payment path when payment metadata, settings, gateway routing, quote readiness, checkout, recurring plans, settlement, or payment reports change.
Preconditions
| Requirement | Expected Vesper QA state |
|---|---|
| Gateways | Sandbox A and Sandbox B are active sandbox gateways. |
| Target org | .sf/config.json target org is vesper when running local QA commands. |
| Test card | Use supported sandbox card 4242424242424242, expiration 12/2030, CVV 123. |
| Customer data | Use generated QA customer/account/contact records. |
| Production data | Do not use production cards, production gateway credentials, or production customers. |
Gateway Readiness
- Open Payment Gateway Connections.
- Confirm Sandbox A and Sandbox B are active and not production gateways.
- Run/inspect connection checks if gateway code changed.
- Confirm lifecycle status is correct.
- Confirm no production gateway is mixed into the test route.
If a gateway is deprecated or removed, use the successor-backed lifecycle docs before testing customer payment.
Saved Method Flow
- Open a QA Account or Contact.
- Use
Add_Payment_Method. - Enter the sandbox test card.
- Save it to the customer vault.
- Confirm the payment vault/inventory view shows token coverage for the expected routes.
- Confirm the card appears once with gateway token chips rather than duplicate saved methods.
Expected result: saved card ending in 4242 is visible and route readiness messages are accurate.
Quote and Sales Order Flow
- Create or use a QA quote with payment-required conditions.
- Confirm quote payment readiness.
- Submit for approval.
- Approve through the supported review action.
- Convert or sync to Sales Order.
- Open the Sales Order payment console.
- Confirm saved method and route-level token selectors.
If readiness says retokenization required, do not override it. Diagnose gateway/token coverage.
Payment Link Checkout
- Create a Payment Order from Sales Order or use an existing QA Payment Order.
- Send a payment link email from Salesforce.
- Open the payment link in the QA/browser replay context.
- Pay with the sandbox test card.
- Confirm Payment Intent, Attempt, Transaction, Receipt, Allocation, and Invoice/Sales Order state.
- Confirm the email/action history is recorded.
Do not use a manually built checkout URL.
Recurring Plan QA
- Confirm Payment Operations Settings allow recurring payments for the test.
- Create or manage a recurring plan from Sales Order.
- Confirm
Payment_Agreement__cstate, next scheduled payment, amount, method, and route. - Test pause, resume, and cancel actions.
- Confirm agreement PDF generation when relevant.
Scheduler installation and settings toggles are separate checks. A class existing in metadata does not mean live automation is enabled.
Refund, Void, and Dispute QA
Use sandbox data only.
| Scenario | Expected evidence |
|---|---|
| Void | Parent transaction and reversal transaction/update. |
| Refund | Refunded amount, receipt/allocation impact, transaction reference. |
| Dispute | Dispute__c tied to Payment Order/transaction context. |
| Processor event | Processor_Event__c record if the event path is being tested. |
Settlement and Reporting
After payment execution:
- Review Payment Operations Dashboard.
- Review AR/payment reports.
- Confirm gateway accounting reports include the transaction.
- Confirm settlement sync fields or settlement records if settlement behavior changed.
- Confirm Metric Integrity Dashboard has no new payment issues.
Exit Criteria
Payments QA is complete when:
- Gateway readiness is confirmed.
- Saved method and token coverage behave as expected.
- Payment link checkout creates the expected payment evidence.
- Sales Order/Invoice/AR state updates correctly.
- Recurring/refund/dispute paths are tested if changed.
- Reports and dashboards reflect the result.
- All test data is labeled or included in the run evidence.
Last updated on