支付成功通知

This commit is contained in:
Hiven
2023-07-26 19:23:16 +08:00
parent e05fcd8248
commit dbf500813c
17 changed files with 482 additions and 30 deletions

View File

@@ -13,6 +13,9 @@ service pay {
@handler OrderPaymentIntentHandler
post /api/pay/payment-intent(OrderPaymentIntentReq) returns (response);
@handler StripeWebhookHandler
get /api/pay/stripe-webhook(StripeWebhookReq) returns (response);
}
// 生成预付款
@@ -26,4 +29,10 @@ type (
OrderPaymentIntentRes {
RedirectUrl string `json:"redirect_url"`
}
)
// StripeWebhook支付通知
type (
StripeWebhookReq {
}
)