我有一个应用程序,我基本上想说的是,当用户从条带页面取消订阅时,然后将他们重定向回我的应用程序上的登录页面/注册页面!我无法为我的一生找到解决方案。我似乎无法在 Stripe Dashboard 中找到执行此操作的位置,并且我正在使用带有 stripe 的 firebase 连接,因此它全部存储在那里,但即使在那里,也没有显示取消重定向 url 的行。 .我的代码在这里:
export async function goToBilliingPortal(){
const functionRef = app
.functions('us-central1')
.httpsCallable('ext-firestore-stripe-subscriptions-createPortalLink');
const {data} = await functionRef({returnUrl : window.location.origin});
window.location.assign(data.url);
};
我想知道我是否可以cancel_url在这里添加一个这样的字段?