fusenapi/server_api/pay.api
2023-11-16 16:35:22 +08:00

25 lines
446 B
Plaintext

syntax = "v1"
info (
title: "支付模块"
desc: "支付相关"
author: ""
email: ""
)
import "basic.api"
service pay {
@handler StripeWebhookHandler
post /api/pay/stripe-webhook(StripeWebhookReq) returns (response);
}
// StripeWebhook支付通知
type (
StripeWebhookReq {
Payload []byte `json:"base_byte_slice,optional"`
StripeSignature string `json:"Stripe-Signature"`
RemoteAddr string `json:"remote_addr"`
}
)