将返回 URL 条带化到公共文件夹之外

问题描述 投票:0回答:1

我的网站是用 MVC PHP 编写的。 这会将视图页面放置在域公共文件夹外部的应用程序文件夹中。

支付后,Stripe 返回公共文件夹,而不是应用程序/视图中的取消或成功页面。

我在付款时给出了此页面的完整路径,但 MVC PHP 从 stripe 返回时看不到它。

我期望完整的返回路径来运行成功或取消页面。

这对我测试时非常有用。

define('STRIPE_SUCCESS_URL', 'https://localhost/stripe/app/payment-success.php'); //Payment success URL 
define('STRIPE_CANCEL_URL', 'https://localhost/stripe/app/payment-cancel.php'); //Payment cancel URL

当运行并运行index.php时,这不会发生。

define('STRIPE_SUCCESS_URL', 'https://mywebsite.com/stripe/app/payment-success.php'); //Payment success URL 
define('STRIPE_CANCEL_URL', 'https://mywebsite.com/stripe/app/payment-cancel.php'); //Payment cancel URL

我是 MVC PHP 新手。

你能告诉我我做错了什么吗?

php model-view-controller stripe-payments returnurl
1个回答
0
投票

解决了,

非常感谢C3roe。 您给我的参考正是我在学习曲线上前进所需要的。

© www.soinside.com 2019 - 2024. All rights reserved.