【发布时间】:2020-12-22 01:02:03
【问题描述】:
我正在使用 Laravel 构建 Saas 应用程序,我担心这种情况。
我正在集成 Namecheap 域名购买 API 和 Paypal 支付网关 API。
我的逻辑是这样的
-Show Available Domains:
-Customer picks one:
-Customer pays with paypal (redirect to paypal page):
-If payment is success, I will call domain register API.
-If success, then I will show success message.
以上是一切都按我预期工作的完美案例。
但这是我的担忧。
...
-Customer pays with paypal (redirect to paypal page):
-Payment was success, I will call domain register API.
-Domain register API is not success: (maybe i need to refund?)
其他选项:
-Customer pays with paypal (redirect to paypal page):
-Before do actual payment on my side, I will call domain register API.
-If domain register AIP is success, I will do actual payment process.
在这种情况下,如果实际付款过程失败,那么客户将能够免费获得域名。
谁能给我一些建议来解决这些情况?
谢谢
【问题讨论】:
标签: php laravel paypal namecheap