25 lines
446 B
Plaintext
Raw Normal View History

2023-07-26 11:06:05 +08:00
syntax = "v1"
info (
2023-08-04 16:50:01 +08:00
title: "支付模块"
desc: "支付相关"
2023-07-26 11:06:05 +08:00
author: ""
email: ""
)
import "basic.api"
service pay {
2023-07-26 19:23:16 +08:00
@handler StripeWebhookHandler
2023-07-28 11:15:42 +08:00
post /api/pay/stripe-webhook(StripeWebhookReq) returns (response);
2023-07-28 19:03:36 +08:00
2023-07-26 11:06:05 +08:00
}
2023-07-26 19:23:16 +08:00
// StripeWebhook支付通知
type (
StripeWebhookReq {
2023-07-28 11:15:42 +08:00
Payload []byte `json:"base_byte_slice,optional"`
StripeSignature string `json:"Stripe-Signature"`
2023-07-28 19:03:36 +08:00
RemoteAddr string `json:"remote_addr"`
2023-07-26 19:23:16 +08:00
}
2023-07-26 11:06:05 +08:00
)