2024-02-14 12:10:15 +08:00
|
|
|
package com.ai.da.service;
|
|
|
|
|
|
2024-07-16 16:59:58 +08:00
|
|
|
import com.ai.da.mapper.primary.entity.PaymentInfo;
|
2024-05-15 15:38:11 +08:00
|
|
|
import com.ai.da.model.dto.AlipayHKCallbackDTO;
|
2024-03-01 17:31:26 +08:00
|
|
|
import com.paypal.orders.Order;
|
2024-07-16 16:59:58 +08:00
|
|
|
import com.stripe.model.checkout.Session;
|
2024-03-01 17:31:26 +08:00
|
|
|
|
2024-02-14 12:10:15 +08:00
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
public interface PaymentInfoService {
|
|
|
|
|
|
|
|
|
|
void createPaymentInfo(String plainText);
|
|
|
|
|
|
|
|
|
|
void createPaymentInfoForAliPay(Map<String, String> params);
|
2024-03-01 17:31:26 +08:00
|
|
|
|
|
|
|
|
void createPaymentInfoForPayPal(Order order);
|
2024-05-15 15:38:11 +08:00
|
|
|
|
|
|
|
|
void createPaymentInfoForAliPayHK(AlipayHKCallbackDTO alipayHKCallbackDTO);
|
2024-07-16 16:59:58 +08:00
|
|
|
|
|
|
|
|
void createPaymentInfoForStripe(Session session);
|
|
|
|
|
|
|
|
|
|
PaymentInfo getPaymentInfoByOrderId(String orderId);
|
|
|
|
|
|
|
|
|
|
void updatePaymentStatusById(Long id, String status, String content);
|
2024-02-14 12:10:15 +08:00
|
|
|
}
|