diff --git a/pkg/fixtures/triggers/charge.disputed.created.json b/pkg/fixtures/triggers/charge.disputed.created.json index e63d118d5..a6b2934e8 100644 --- a/pkg/fixtures/triggers/charge.disputed.created.json +++ b/pkg/fixtures/triggers/charge.disputed.created.json @@ -4,13 +4,14 @@ }, "fixtures": [ { - "name": "charge", - "path": "/v1/charges", + "name": "payment_intent", + "path": "/v1/payment_intents", "method": "post", "params": { - "source": "tok_createDisputeInquiry", "amount": 100, "currency": "usd", + "payment_method": "pm_card_createDisputeInquiry", + "confirm": true, "description": "(created by Stripe CLI)" } } diff --git a/pkg/fixtures/triggers/charge.failed.json b/pkg/fixtures/triggers/charge.failed.json index a5e3c3dde..33877d556 100644 --- a/pkg/fixtures/triggers/charge.failed.json +++ b/pkg/fixtures/triggers/charge.failed.json @@ -4,14 +4,15 @@ }, "fixtures": [ { - "name": "charge", + "name": "payment_intent", "expected_error_type": "card_error", - "path": "/v1/charges", + "path": "/v1/payment_intents", "method": "post", "params": { - "source": "tok_chargeDeclined", "amount": 100, "currency": "usd", + "payment_method": "pm_card_visa_chargeDeclined", + "confirm": true, "description": "(created by Stripe CLI)" } } diff --git a/pkg/fixtures/triggers/charge.refund.updated.json b/pkg/fixtures/triggers/charge.refund.updated.json index 9df97c1e2..216edcc1b 100644 --- a/pkg/fixtures/triggers/charge.refund.updated.json +++ b/pkg/fixtures/triggers/charge.refund.updated.json @@ -4,13 +4,14 @@ }, "fixtures": [ { - "name": "charge", - "path": "/v1/charges", + "name": "payment_intent", + "path": "/v1/payment_intents", "method": "post", "params": { - "source": "tok_visa", "amount": 100, "currency": "usd", + "payment_method": "pm_card_visa", + "confirm": true, "description": "(created by Stripe CLI)" } }, @@ -19,7 +20,7 @@ "path": "/v1/refunds", "method": "post", "params": { - "charge": "${charge:id}" + "payment_intent": "${payment_intent:id}" } }, { diff --git a/pkg/fixtures/triggers/charge.refunded.json b/pkg/fixtures/triggers/charge.refunded.json index 2b41c67d4..3f222dddb 100644 --- a/pkg/fixtures/triggers/charge.refunded.json +++ b/pkg/fixtures/triggers/charge.refunded.json @@ -4,13 +4,14 @@ }, "fixtures": [ { - "name": "charge", - "path": "/v1/charges", + "name": "payment_intent", + "path": "/v1/payment_intents", "method": "post", "params": { - "source": "tok_visa", "amount": 100, "currency": "usd", + "payment_method": "pm_card_visa", + "confirm": true, "description": "(created by Stripe CLI)" } }, @@ -19,7 +20,7 @@ "path": "/v1/refunds", "method": "post", "params": { - "charge": "${charge:id}" + "payment_intent": "${payment_intent:id}" } } ] diff --git a/pkg/fixtures/triggers/charge.succeeded.json b/pkg/fixtures/triggers/charge.succeeded.json index e41809190..cf328707a 100644 --- a/pkg/fixtures/triggers/charge.succeeded.json +++ b/pkg/fixtures/triggers/charge.succeeded.json @@ -4,13 +4,14 @@ }, "fixtures": [ { - "name": "charge", - "path": "/v1/charges", + "name": "payment_intent", + "path": "/v1/payment_intents", "method": "post", "params": { - "source": "tok_visa", "amount": 100, "currency": "usd", + "payment_method": "pm_card_visa", + "confirm": true, "description": "(created by Stripe CLI)" } }