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
$('#paid').live('pageshow',function(e) { | |
}); |
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
var profile = $.parseJSON(localStorage.getItem('123')); | |
// 3rd State | |
if(profile !== null) { | |
... | |
} else { | |
// 1st state |
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
$('#subscribe').live('click',function(e) | |
{ | |
$.mobile.showPageLoadingMsg(); | |
$.ajax({ | |
url: 'subscriptions.cfc', | |
data: 'method=setExpressCheckout', | |
success: function(data){ | |
var obj = $.parseJSON(data); | |
window.location = obj['redirecturl'] |
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
// Our method, credentials, and api version | |
data.METHOD = "SetExpressCheckout"; | |
data.USER = request.UID; | |
data.PWD = request.PASSWORD; | |
data.SIGNATURE = request.SIG; | |
data.METHOD = "SetExpressCheckout"; | |
data.VERSION = request.VER; | |
// Our api endpoint | |
data.URLBASE = request.URLBASE; |
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
<cfscript> | |
returnObj = StructNew(); | |
returnObj['url'] = url; | |
</cfscript> | |
<script> | |
ec = <cfoutput>#serializeJSON(returnObj)#</cfoutput>; | |
</script> |
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
$.ajax({ | |
url: 'subscriptions.cfc', | |
data: 'method=GetExpressCheckoutDetails&token=' + | |
ec['url']['token'], | |
success: function(data){ | |
var obj = $.parseJSON(data); | |
detail = obj; | |
$('#amt').html('Our premium 1 year subscription costs $' + | |
obj['response']['AMT']); |
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
$('#confirm').live('click',function(e) { | |
$.mobile.showPageLoadingMsg(); | |
$.ajax({ | |
url: 'subscriptions.cfc', | |
data: 'method=CreateRecurringPaymentsProfile&token=' + detail['response']['TOKEN'], | |
success: function(data){ | |
var obj = $.parseJSON(data); | |
profile = obj['response'];; |
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
var profile = $.parseJSON(localStorage.getItem('123')); | |
$.mobile.showPageLoadingMsg(); | |
// PROFILE ALREADY EXISTS, VERIFY IT. | |
if(profile !== null) | |
{ | |
if (profile['PROFILESTATUS'] === 'ActiveProfile') | |
{ | |
$.ajax({ | |
url: 'subscriptions.cfc', |
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"> |
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
<form name="Form1" id="Form1" action="SimplePay.cfm" method="post"> | |
<label>Sender's Email</label> | |
<input type="text" id="senderEmail" name="senderEmail" value="[email protected]" class="input-text"> | |
<label>Receiver's Email</label> | |
<input type="text" id="receiverEmail" name="receiverEmail" value="[email protected]" class="input-text"> | |
<label>Amount you ar sending</label> | |
<input type="text" id="receiverAmount" name="receiverAmount" value="1.00" class="input-text"> | |
OlderNewer