1、接入paypal
2、修改支付宝支付
This commit is contained in:
29
src/main/java/com/ai/da/service/PayPalCheckoutService.java
Normal file
29
src/main/java/com/ai/da/service/PayPalCheckoutService.java
Normal file
@@ -0,0 +1,29 @@
|
||||
package com.ai.da.service;
|
||||
|
||||
import com.paypal.http.exceptions.SerializeException;
|
||||
import com.paypal.orders.Order;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public interface PayPalCheckoutService {
|
||||
|
||||
HashMap<String, String> createOrder(Long productId,String returnUrl) throws SerializeException;
|
||||
/**
|
||||
* 回调
|
||||
* @param map
|
||||
*/
|
||||
String callback(@SuppressWarnings("rawtypes") Map map);
|
||||
|
||||
String queryOrder(String orderNo) throws SerializeException;
|
||||
|
||||
Order captureOrder(String orderId) throws IOException;
|
||||
|
||||
Boolean refundOrder(String orderId, String reason) throws IOException;
|
||||
|
||||
String getOAuth();
|
||||
|
||||
void processOrder(String orderId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user