Markdown
GitBook supports many different types of content, and is backed by Markdown — meaning you can copy and paste any existing Markdown files directly into the editor!

thin_event = client.parse_thin_event(payload, signature_header, endpoint_secret)
event = client.v2.core.events.retrieve(thin_event.id)
if isinstance(event, V1BillingMeterErrorReportTriggeredEvent):
# On each type of event, the Stripe library provides a "fetch_related_object" method
# that performs a network request to Stripe to fetch the latest version
# of the object directly associated with the event, in this case, an
# "Meter" object.
meter = event.fetch_related_object()var thinEvent = client.parseThinEvent(payload, signature_header, endpoint_secret);
const event = await client.v2.core.events.retrieve(thinEvent.id);
if (event.type === "v1.billing.meter.error_report_triggered") {
// On each type of event, the Stripe library provides a "fetchRelatedObject" method
// that performs a network request to Stripe to fetch the latest version
// of the object directly associated with the event, in this case, an
// "Meter" object.
var meter = await event.fetchRelatedObject();
}Bearer qwejhqwiueyqiuwyeorder id
USD - United States EUR - Eurozone (19 countries) JPY - Japan GBP - United Kingdom AUD - Australia CAD - Canada CHF - Switzerland & Liechtenstein CNY - China HKD - Hong Kong NZD - New Zealand KRW - South Korea SGD - Singapore SEK - Sweden NOK - Norway MXN - Mexico INR - India RUB - Russia ZAR - South Africa BRL - Brazil TRY - Turkey TWD - Taiwan DKK - Denmark PLN - Poland THB - Thailand IDR - Indonesia HUF - Hungary CZK - Czech Republic ILS - Israel MYR - Malaysia PHP - Philippines PKR - Pakistan CLP - Chile AED - United Arab Emirates SAR - Saudi Arabia COP - Colombia EGP - Egypt VND - Vietnam BDT - Bangladesh KWD - Kuwait QAR - Qatar UAH - Ukraine PEN - Peru MAD - Morocco NGN - Nigeria KZT - Kazakhstan ARS - Argentina DZD - Algeria LKR - Sri Lanka OMR - Oman BHD - Bahrain ETB - Ethiopia CDF - Democratic Republic of the Congo MMK - Myanmar KES - Kenya GHS - Ghana NPR - Nepal VES - Venezuela IQD - Iraq TZS - Tanzania COUPON - Coupon balance (用于抵扣平台费用)
余额使用balance,其他和Checkout相同
余额支付需要传,其他不需要
Feel free to test it out and copy the Markdown below by hovering over the code block in the upper right, and pasting into a new line underneath.
Last updated