#lucawebdev
1 messages · Page 1 of 1 (latest)
hello! you're listening for the charge.disputed.created event?
yes, I am
Can you share a sample eventId and what field are you looking for ?
json{ "object": { "id": "dp_1OjI84A5Jdz4MJW3wgETRED0", "object": "dispute", "amount": 100, "balance_transaction": null, "balance_transactions": [ ], "charge": "ch_3OjI83A5Jdz4MJW315wlWfoy", "created": 1707815896, "currency": "usd", "evidence": { "access_activity_log": null, "billing_address": null, "cancellation_policy": null, "cancellation_policy_disclosure": null, "cancellation_rebuttal": null, "customer_communication": null, "customer_email_address": null, "customer_name": null, "customer_purchase_ip": null, "customer_signature": null, "duplicate_charge_documentation": null, "duplicate_charge_explanation": null, "duplicate_charge_id": null, "product_description": null, "receipt": null, "refund_policy": null, "refund_policy_disclosure": null, "refund_refusal_explanation": null, "service_date": null, "service_documentation": null, "shipping_address": null, "shipping_carrier": null, "shipping_date": null, "shipping_documentation": null, "shipping_tracking_number": null, "uncategorized_file": null, "uncategorized_text": null }, "evidence_details": { "due_by": 1708646399, "has_evidence": false, "past_due": false, "submission_count": 0 }, "is_charge_refundable": true, "livemode": false, "metadata": { }, "payment_intent": "pi_3OjI83A5Jdz4MJW31dbQbS2q", "payment_method_details": { "card": { "brand": "visa", "network_reason_code": "10" }, "type": "card" }, "reason": "fraudulent", "status": "warning_needs_response" } }
I want the dispute to be triggered with a custom payment_intent
instead of being a randomly generated one
No that's not possible
The dispute is created using this feature:
https://github.com/stripe/stripe-cli/blob/master/pkg/fixtures/triggers/charge.disputed.created.json
Using the payment method pm_card_createDisputeInquiry that creates a dispute automatically
how am I supposed to be prepared for disputes then
can I trigger a dispute for an already made payment?
In live mode, the dispute is created by the customer and not by you
so in test mode, you need to use one of the test payment method that triggeres a dispute automatically:
https://stripe.com/docs/testing#disputes
ohh, ok, thank you very much