fix(payment): update Stripe webhook endpoint url
This commit is contained in:
parent
42a99c4925
commit
5cca0e7aa3
@ -72,7 +72,7 @@ func (l *CreatePaymentMethodLogic) CreatePaymentMethod(req *types.CreatePaymentM
|
||||
SecretKey: cfg.SecretKey,
|
||||
PublicKey: cfg.PublicKey,
|
||||
})
|
||||
url := fmt.Sprintf("%s/notify/Stripe/%s", req.Domain, paymentMethod.Token)
|
||||
url := fmt.Sprintf("%s/v1/notify/Stripe/%s", req.Domain, paymentMethod.Token)
|
||||
endpoint, err := client.CreateWebhookEndpoint(url)
|
||||
if err != nil {
|
||||
l.Errorw("[CreatePaymentMethod] create stripe webhook endpoint error", logger.Field("error", err.Error()))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user