Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 7c40e81691
Fetching contributors…

Cannot retrieve contributors at this time

72 lines (63 sloc) 2.386 kB
<!--
*************************************************
RPprofiledetails.cfm
This page takes necessary parameter from GetRPprofileDetails page
and pssing into doHttppost function to perform Get Recurring Payments Profile Details.
This page will show the response value coming from the Server.
If any error occurs, the page will redirect to APIError.cfm
to show exact error details
*************************************************
-->
<cfoutput>
<head>
<title>PayPal CF SDK -Get RP profile Details API</title>
<link href="sdk.css" rel="stylesheet" type="text/css" />
</head>
<body>
<cfset StructClear(Session)>
<CFOBJECT COMPONENT="CallerService" NAME="caller">
<table class="api" align="center" border="0">
<CFTRY>
<CFSET requestData = StructNew()>
<CFSET requestData.USER = "#USERNAME#">
<CFSET requestData.PWD = "#PASSWORD#">
<CFSET requestData.SIGNATURE = "#SIGNATURE#">
<CFSET requestData.SUBJECT = "#UNIPAYSUBJECT#">
<CFSET requestData.VERSION = "#version#">
<CFSET requestData.METHOD = "GetRecurringPaymentsProfileDetails">
<CFSET requestData.PROFILEID = "#trim(Form.profileId)#">
<!---
Calling doHttppost for API call
--->
<cfinvoke component="CallerService" method="doHttppost" returnvariable="response">
<cfinvokeargument name="requestData" value=#requestData#>
<cfinvokeargument name="serverURL" value=#serverURL#>
<cfinvokeargument name="proxyName" value=#proxyName#>
<cfinvokeargument name="proxyPort" value=#proxyPort#>
<cfinvokeargument name="useProxy" value=#useProxy#>
</cfinvoke>
<cfset responseStruct = caller.getNVPResponse(#URLDecode(response)#)>
<cfset messages = ArrayNew(1)>
<cfset Session.resStruct ="#responseStruct#">
<cfif responseStruct.Ack is "Success">
<center>
<b>Recurring Payments Profile Details</b><br><br>
<table class="api"><cfoutput>#displayText(responseStruct)#</cfoutput></table>
</center>
</cfif>
<cfif responseStruct.Ack is "Failure">
<CFLOCATION URL="APIError.cfm?error=fromServer">
</cfif>
<CFCATCH>
<cfset responseStruct = StructNew() >
<cfset responseStruct.errorType = "#cfcatch.type#">
<cfset responseStruct.errorMessage = "#cfcatch.message#">
<cfset Session.resStruct = "#responseStruct#">
<CFLOCATION URL="APIError.cfm?error=fromClient">
</CFCATCH>
</CFTRY>
<br>
</body>
<a class="home" id="CallRPLink" href="RecurringPaymentsIndex.cfm">Recurring Payments Home</a>
</html>
</cfoutput>
Jump to Line
Something went wrong with that request. Please try again.