支付成功回调
This commit is contained in:
@@ -15,7 +15,7 @@ service pay {
|
||||
post /api/pay/payment-intent(OrderPaymentIntentReq) returns (response);
|
||||
|
||||
@handler StripeWebhookHandler
|
||||
get /api/pay/stripe-webhook(StripeWebhookReq) returns (response);
|
||||
post /api/pay/stripe-webhook(StripeWebhookReq) returns (response);
|
||||
}
|
||||
|
||||
// 生成预付款
|
||||
@@ -27,12 +27,15 @@ type (
|
||||
PayMethod int64 `form:"pay_method"` //支付方式
|
||||
}
|
||||
OrderPaymentIntentRes {
|
||||
RedirectUrl string `json:"redirect_url"`
|
||||
RedirectUrl string `json:"redirect_url"`
|
||||
ClientSecret string `json:"clientSecret"`
|
||||
}
|
||||
)
|
||||
|
||||
// StripeWebhook支付通知
|
||||
type (
|
||||
StripeWebhookReq {
|
||||
Payload []byte `json:"base_byte_slice,optional"`
|
||||
StripeSignature string `json:"Stripe-Signature"`
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user