我正在尝试将 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