添加新的支付方式:Stripe

This commit is contained in:
2024-07-16 16:59:58 +08:00
parent 037a0d12ff
commit b9041d9c09
12 changed files with 407 additions and 178 deletions

View File

@@ -1,7 +1,9 @@
package com.ai.da.service;
import com.ai.da.mapper.primary.entity.PaymentInfo;
import com.ai.da.model.dto.AlipayHKCallbackDTO;
import com.paypal.orders.Order;
import com.stripe.model.checkout.Session;
import java.util.Map;
@@ -14,4 +16,10 @@ public interface PaymentInfoService {
void createPaymentInfoForPayPal(Order order);
void createPaymentInfoForAliPayHK(AlipayHKCallbackDTO alipayHKCallbackDTO);
void createPaymentInfoForStripe(Session session);
PaymentInfo getPaymentInfoByOrderId(String orderId);
void updatePaymentStatusById(Long id, String status, String content);
}