stripe-js
stripe-js copied to clipboard
Update stripe.d.ts for updating the StripeError interface
adding the request_log_url type on the StripeError
Summary & motivation
Added the request_log_url
type in the StripeError
interface.
https://docs.stripe.com/api/errors#errors-request_log_url
e.g.:
{
code: "resource_missing",
doc_url: "https://stripe.com/docs/error-codes/resource-missing",
message: "No such payment_intent: 'pi_xxxxxxxxx'",
param: "intent",
request_log_url: "https://dashboard.stripe.com/test/logs/req_xxxxxxxx?t=1711953549",
type: "invalid_request_error"
}
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Thank you for merging! @winnie-stripe and @fruchtose-stripe