0

我正在尝试将 Simplify Commerce 支付系统集成到我的项目中,但我似乎无法做到正确。

这是问题之一:

<%@ page import="com.simplify.package"%>
and I got this error after mousing over the red wavy line:  

Syntax error on token "package", * expected
 I then added a `*` like this `com.simplify.package.*`  

 And I got this: 
 `Syntax error on token "package", Identifier expected`

 I already added all the .jar files to the `WEB-INF/lib` folder.
  What seems to be the problem?

我试图导入jar文件的jsp:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page import="com.simplify.package.*" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Pay Now!</title>
</head>
<body>
<%
    PaymentsApi.PUBLIC_KEY =  "";
    PaymentsApi.PRIVATE_KEY = "";

    CardToken cardToken = CardToken.create(new PaymentsMap()
        .set("card.addressCity", "OFallon")
        .set("card.addressState", "MO")
        .set("card.cvc", "123")
        .set("card.expMonth", 11)
        .set("card.expYear", 19)
        .set("card.number", "5105105105105100")
);

System.out.println(cardToken);
%>

PaymentsApi和下面有红色的路线CardToken

4

1 回答 1

0

解压jar文件查看包结构就解决了。

于 2018-08-01T16:25:35.647 回答