<%@ page import="paypal.sdk.profiles.APIProfile" %>
<%@ page import="paypal.sdk.profiles.ProfileFactory" %>
<%@ page import="org.apache.commons.fileupload.*" %>
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%@ page language="java" %>
<%@ include file='constants.jsp' %>
<%
try {
APIProfile profile = null;
profile = ProfileFactory.createSignatureAPIProfile();
profile.setAPIUsername(DEFAULT_USER_NAME);
profile.setAPIPassword(DEFAULT_PASSWORD);
profile.setSignature(DEFAULT_SIGNATURE);
profile.setEnvironment(testEnv);
session.setAttribute("environment", testEnv);
System.out.println("arrive here 33333333");
caller.setAPIProfile(profile);
System.out.println("arrive here 4444444");
session.setAttribute("caller", caller);
...........
|