@stripe/link-cli 0.7.4 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/dist/cli.js +660 -424
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -267,6 +267,25 @@ link-cli mpp decode \
|
|
|
267
267
|
--challenge 'Payment id="ch_001", realm="merchant.example", method="stripe", intent="charge", request="..."'
|
|
268
268
|
```
|
|
269
269
|
|
|
270
|
+
### Report outcomes
|
|
271
|
+
|
|
272
|
+
Use `report` to record the outcome of a purchase attempt. Reporting is optional, but calling it after attempts — success or failure — helps Stripe improve checkout for agents.
|
|
273
|
+
|
|
274
|
+
```bash
|
|
275
|
+
# Successful purchase
|
|
276
|
+
link-cli report --domain shop.example.com --outcome success --spend-request-id lsrq_abc123
|
|
277
|
+
|
|
278
|
+
# Blocked by captcha
|
|
279
|
+
link-cli report --domain shop.example.com --outcome blocked --spend-request-id lsrq_abc123 \
|
|
280
|
+
--tag captcha --step "checkout page" --freeform-context "Turnstile challenge appeared"
|
|
281
|
+
|
|
282
|
+
# Abandoned due to timeout
|
|
283
|
+
link-cli report --domain shop.example.com --outcome abandoned --spend-request-id lsrq_abc123 \
|
|
284
|
+
--tag timeout
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
Outcomes: `success`, `blocked`, `abandoned`. Tags: `stripe_checkout`, `captcha`, `anti_bot_script`, `cdn_block`, `waf_block`, `dns_block`, `rate_limited`, `login_required`, `3ds_challenge`, `page_inaccessible`, `timeout`, `site_error`, `payment_declined`, `other`.
|
|
288
|
+
|
|
270
289
|
### Environment variables
|
|
271
290
|
|
|
272
291
|
| Variable | Effect |
|