Worlds / Payments and billing / PayPal Braintree
PayPal Braintree world
A local Braintree with transactions, vaulted payment methods, customers, disputes and settlement batches. Test the agent that voids, refunds and handles disputes based on settlement status.
TransactionsVaultVoidsRefundsDisputes
| Transaction ID | Customer | Amount | Status |
|---|---|---|---|
| 8k2m4p | Rina Shah | $75.00 | Submitted For SettlementVoided |
| 9a7x1c | Rina Shah | $75.00 | Settled |
| 3d9q2r | Glenwood Cafe | $210.00 | SettledRefunded |
| 5h1n8w | Tom Avery | $45.00 | SettledRefunded |
| 7j3b6t | Lea Brandt | $19.99 | Processor Declined |
fig. 1 · illustrative replica · the agent's changes land as you scroll
What's in this world
What you get when you open PayPal Braintree. Seeded, local, yours to break.
Seeded records
- transactions
- 160 across authorized, submitted_for_settlement, settled and processor_declined
- customers
- 70 with vaulted payment method tokens
- disputes
- 5 open, 2 won, 1 lost
- subscriptions
- 30 on monthly plans, 3 past due
Agent jobs you can test
- Void unsettled transactions and refund settled ones
- Update a vaulted card for a customer
- Accept or submit evidence on a dispute
What your agent can get wrong here
The reply sounds right. The record is what counts.
ActionWhat the world recordsCommon mistake
Refund a transaction
transaction.status and the refund's refunded_transaction_idRefunds a charge that is under an open disputeVoid or refund
the call used against settlement statusRefunds an unsettled transaction instead of voiding itUpdate a vaulted card
payment method token on the customer and subscriptionsAdds a new card but leaves subscriptions on the expired tokenRespond to a dispute
dispute.status and evidence attachedAccepts the dispute and also issues a refundExample test
Describe the job. Review the checks before anything runs.
Clean up the double charges from Tuesday. Void the duplicate if it has not settled, refund it if it has. Do not refund anything with an open dispute.
- 018k2m4p voided, not refunded
- 023d9q2r refunded once for $210.00
- 035h1n8w untouched because dispute dp_44 is open
- 04No refund issued on 9a7x1c, the original charge
- 05No new transactions created on any customer
fig. 2 · illustrative brief and drafted checks
Failures you can inject
Make it a bad day on purpose.
effect
Refund returns error 91506, cannot refund unless settledfires before the handler · state untouched · same result every runEvidence
StatusIncluded in the closed beta, like every world in the catalog. Apply and tell us the workflow you want to test.Known limitations