是否可以将 localhost 设置为 Stripe webhook URL? [英] Is it possible to set localhost as a Stripe webhook URL?

查看:32
本文介绍了是否可以将 localhost 设置为 Stripe webhook URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Stripe 创建一个支付网关.

I am creating a payment gateway using Stripe.

我想将我的 localhost url localhost/stripe/webhook.php 设置为我的 webhook url.是否可以将本地主机地址设置为 webhook url?这将用于创建在 Stripe 中每次成功收费时触发的邮件服务.

I want to set my localhost url localhost/stripe/webhook.php as my webhook url. Is it possible to set a localhost address as a webhook url? This will be used to create a mail service that is triggered on every successful charge in Stripe.

推荐答案

Stripe 现在有一个官方工具,Stripe CLI 使这件事变得容易(但仍需要安装另一个工具).

Stripe now has an official tool, the Stripe CLI that makes this easy (but still requires installing another tool).

请参阅下面的答案官方 Stripe CLI 文档.

或者,实现此目的的另一种方法是使用 http://www.ultrahook.com,它允许您在本地主机上接收 webhook.此替代方法适用于所有 webhook,而不仅仅是 Stripe 的

Alternatively, the another way to achieve this is with http://www.ultrahook.com which allows you to receive webhooks on localhost. This alternative will work with all webhooks, not just Stripe's

这篇关于是否可以将 localhost 设置为 Stripe webhook URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆