Created
January 24, 2012 01:35
-
-
Save SidneyAllen/1667180 to your computer and use it in GitHub Desktop.
PayPal Pay Request ColdFusion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfinvoke component="adaptivepayments" method="payRequest" returnvariable="response"> | |
<!--- REQUIRED ---> | |
<cfinvokeargument name="contextPath" value="#GetDirectoryFromPath(SCRIPT_NAME)#"> | |
<cfinvokeargument name="returnPage" value="WebflowReturnPage.cfm"> | |
<cfinvokeargument name="cancelPage" value="Pay.cfm"> | |
<cfinvokeargument name="receiverAmount" value="#form['receiverAmount[]']#"> | |
<cfinvokeargument name="receiverEmail" value="#form['receiverEmail[]']#"> | |
<cfinvokeargument name="actionType" value="#form.actionType#"> | |
<cfinvokeargument name="currencyCode" value="USD"> | |
<!--- OPTIONAL ---> | |
<cfinvokeargument name="feesPayer" value="1"> | |
<cfinvokeargument name="ipnNotificationUrl" value="#form.ipnNotificationUrl#"> | |
<cfinvokeargument name="memo" value="#form.memo#"> | |
<cfinvokeargument name="pin" value="#form.pin#"> | |
<cfinvokeargument name="preapprovalKey" value="#form.preapprovalKey#"> | |
<cfif isDefined("form.reverseAllParallelPaymentsOnError")> | |
<cfinvokeargument name="reverseAllParallelPaymentsOnError" value="#form.reverseAllParallelPaymentsOnError#"> | |
</cfif> | |
<cfinvokeargument name="senderEmail" value="#form.senderEmail#"> | |
<cfinvokeargument name="trackingId" value="#form.trackingId#"> | |
<!--- requestEnvelope class ---> | |
<cfinvokeargument name="errorLanguage" value="en_US"> | |
<!--- clientDetails class ---> | |
<cfinvokeargument name="ipAddress" value="#form.ipAddress#"> | |
<cfinvokeargument name="deviceId" value="#form.deviceId#"> | |
<cfinvokeargument name="applicationId" value="#form.applicationId#"> | |
<cfinvokeargument name="model" value="#form.model#"> | |
<cfinvokeargument name="geoLocation" value="#form.geoLocation#"> | |
<cfinvokeargument name="customerType" value="#form.customerType#"> | |
<cfinvokeargument name="partnerName" value="#form.partnerName#"> | |
<cfinvokeargument name="customerId" value="#form.customerId#"> | |
<!---sender class ---> | |
<cfif isDefined("form.useCredentials")> | |
<cfinvokeargument name="useCredentials" value="#form.useCredentials#"> | |
</cfif> | |
<cfinvokeargument name="email" value="#form.email#"> | |
<cfinvokeargument name="countryCode" value="#form.countryCode#"> | |
<cfinvokeargument name="phoneNumber" value="#form.phoneNumber#"> | |
<cfinvokeargument name="extension" value="#form.extension#"> | |
<!---fundingConstraint class ---> | |
<cfif isDefined("form.fundingType")> | |
<cfinvokeargument name="fundingType" value="#form.fundingType#"> | |
</cfif> | |
<!--- tell the method what type of object to Return valid options are (response, results, payload)---> | |
<cfinvokeargument name="returnObj" value="response"> | |
</cfinvoke> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment