Skip to content

Commit a20708e

Browse files
authored
spec: reorder Stripe verification procedure to validate challenge before extracting SPT (#210)
1 parent f775ef1 commit a20708e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

specs/methods/stripe/draft-stripe-charge-00.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,16 @@ contains the following fields:
233233

234234
Servers MUST verify Payment credentials for charge intent:
235235

236-
1. Extract the `spt` from the credential payload
237-
2. Verify the challenge ID matches the one issued
238-
3. Verify the challenge has not expired
236+
1. Verify the challenge ID matches the one issued
237+
2. Verify the challenge has not expired
238+
3. Extract the `spt` from the credential payload
239239
4. Verify the SPT has not been previously used (replay protection)
240240
5. Validate the SPT exists and is valid via Stripe API (optional pre-check)
241241

242+
Servers MUST complete challenge ID validation and expiry checks (steps 1-2)
243+
before processing credential material (steps 3-5). This ensures basic
244+
request validity is established before accessing payment tokens.
245+
242246
## Challenge Binding
243247

244248
Servers MUST verify that the credential corresponds to the exact challenge

0 commit comments

Comments
 (0)