MediaWiki:DonationFormSandbox.js: Difference between revisions

Content deleted Content added
No edit summary
base64 decode recipient_id if needed
 
Line 853:
}
// SMS
ifvar (recipient_id = mw.util.getParamValue( 'recipient_id' ) ) {;
params.recipient_idif = mw.util.getParamValue( 'recipient_id' ); {
if ( isNaN( parseFloat( recipient_id ) ) ) {
// Lop off last 2 characters and decode base64
params.recipient_id = atob( recipient_id.slice(0, -2) );
} else {
params.recipient_id = recipient_id;
}
}