Spring启动应用付费方式

Spring Boot application payment method

我目前是Spring Boot 应用程序的后端部分,我愿意集成一种支付方式。但我似乎找不到合适的付款方式。我是应用程序开发和独自工作的初学者。你有什么建议吗?

申请: 我正在开发一个平台,用户可以在该平台上租用一段时间的汽车。该应用程序将在前端有一个反应和 android 应用程序。用户可以在 React 和 android 应用程序的地图上看到可用汽车的不同位置。他们可以预订汽车并在使用后解锁、驾驶和锁定。

付款方式: 我正在寻找用户在解锁汽车时承认付款但乘车价格尚不清楚的付款方式。当用户用完车后,乘车价格将由用户驾驶的距离和时间决定。

可能的解决方案: -PayPal:有可能让用户授权付款,但稍后获取资金。资金可以更改,但只能在三天后更改,最大值为 115%。
-CreditCard:我在很多帖子中读到,将信用卡信息存储在数据库中是一个很大的问题。 -Stripe:不太清楚,可能的选择?

有没有solutions/examples解决这个问题的方法。

PayPal: there is a possibility to let the user authorize a payment, but capture the funds later. The funds can be altered but only after three days and with a maximum value of 115 percent.

不用等3天,那是对authorization and capture documentation的误读。如果您需要获取超过 115% 的初始授权,请联系 PayPal。但一个简单的解决方案是授权接近您需要可靠捕获的最大值的值。

Stripe 有能力 place a hold on a card and then capture funds up to 7 days later 您捕获的数量或更少。

Place a hold on a card to reserve funds now but only capture them after your business completes the service. For example, a hotel may authorize a payment in full prior to a guest’s arrival, then move the money when the guest checks out.

When a payment is authorized, the bank guarantees the amount and holds it on the customer’s card for up to seven days.

您可以预留您预计为行程收取的最高金额(比如 50 美元),然后在行程完成时获取实际金额(可能是 23.50 美元)。