Accept
Last updated
Was this helpful?
Was this helpful?
from hyperswitch_prism import DisputeClient
dispute_client = DisputeClient(
connector='stripe',
api_key='YOUR_API_KEY',
environment='SANDBOX'
)request = {
"dispute_id": "dp_xxx",
"reason": "Tracking shows package lost in transit - no delivery confirmation available"
}
response = await dispute_client.accept(request){
"dispute_id": "dp_xxx",
"status": "LOST",
"amount_debited": {
"minor_amount": 1000,
"currency": "USD"
},
"status_code": 200
}┌─────────────────────────────────────────────────────────┐
│ Should I Accept This Dispute? │
└─────────────────────────────────────────────────────────┘
│
┌──────────────┼──────────────┐
▼ ▼ ▼
┌──────────┐ ┌──────────┐ ┌──────────┐
│ Evidence │ │ Cost > │ │ Valid │
│ Exists? │ │ Dispute? │ │ Claim? │
└────┬─────┘ └────┬─────┘ └────┬─────┘
│ │ │
No Yes Yes
│ │ │
└──────────────┴──────────────┘
│
▼
┌─────────────────┐
│ ACCEPT DISPUTE │
└─────────────────┘