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
### Keybase proof | |
I hereby claim: | |
* I am sidneyallen on github. | |
* I am sidmaestre (https://keybase.io/sidmaestre) on keybase. | |
* I have a public key whose fingerprint is 4EFC 9102 DB7A 7311 6CA5 A683 2D22 E0D6 E30D BCF9 | |
To claim this, I am signing this object: |
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
if (XRO_APP_TYPE == "Private" || XRO_APP_TYPE == "Partner") { | |
$signatures ['rsa_private_key'] = BASE_PATH . '/certs/privatekey.pem'; | |
$signatures ['rsa_public_key'] = BASE_PATH . '/certs/publickey.cer'; | |
} |
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
$('#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
$('#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
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
// 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
var profile = $.parseJSON(localStorage.getItem('123')); | |
$.mobile.showPageLoadingMsg(); | |
// PROFILE ALREADY EXISTS, VERIFY IT. | |
if(profile !== null) | |
{ | |
if (profile['PROFILESTATUS'] === 'ActiveProfile') | |
{ | |
$.ajax({ | |
url: 'subscriptions.cfc', |
OlderNewer