Quote:
Originally Posted by Sooccer
Is there any way to buy "Freedom packs" more times...pm pls
|
Try old way:
Chrome: Ctlr+Shift+J payment tab open.
function throwError(msg) {
alert(msg);
throw new Error(msg);
}
if (typeof(Payment) === "undefined") {
try {
var paymentLayer = document.getElementsByClassName('paymentContent')[0];
} catch (e) {
var paymentLayer = document.getElementsByTagName('iframe')[0];
}
if (typeof(paymentLayer) === "undefined") {
throwError('No payment layer or window detected. Are you logged in and is a payment window visible?');
}
var confirmNewTab = confirm('Payment frame detected, but it\'s required to be opened as a seperate window.\n\n' +
'Click \"OK\" to open the frame in a new tab. You have to copy the script content in the console there again!' +
'\n\n(There is a good chance that your popup blocker will block this tab.)');
if (confirmNewTab) {
window.open(paymentLayer.src, '_blank');
throw new Error('Continue in the newly opened tab');
}
throw new Error('Cancelled by user.');
}
if ((Payment.cartElements.length < 1) || (typeof(Payment.cartElements[0]) === "undefined")) {
// Prepare the cart by removing old undefined entries
Payment.cartElements = [];
throwError('The shopping cart is empty! Add an item first (either by using a payment link or choosing something from the left list).');
}
var itemDesc = Payment.cartElements[0].item.textContent;
var targetAmount = prompt('Please enter how often you want to buy the package \"' + itemDesc + '\"');
if ((isNaN(targetAmount)) || (targetAmount == "") || (targetAmount < 1)) {
throwError('Enter only numbers.');
}
// Make sure the is only one item in the cart
Payment.cartElements = Payment.cartElements.slice(0, 1);
var totalPrice = Payment.cartElements[0].shoppingCartPrice;
for (var i = 1; i < targetAmount; i++) {
Payment.cartElements.push(Payment.cartElements[0]);
totalPrice += Payment.cartElements.slice(-1)[0].shoppingCartPrice;
}
// For security list the cart elements in the console
var cartStr = 'Shopping cart content:\n';
for (i = 0; i < Payment.cartElements.length; i++) {
cartStr += (i + 1) + '. ' + Payment.cartElements[i].item.textContent + '\n';
}
try {
console.info(cartStr);
} catch (e) {}
var confirmBuy = confirm('You are going to buy the package \"' + itemDesc + '\" ' +
Payment.cartElements.length + ' times, for a total price of ' + totalPrice + getShoppingCartCurrency() +
'.\n\nYou have to pay the price of ' + totalPrice + getShoppingCartCurrency() + ', you don\'t get anything for free!' +
'\nYOU HAVE BEEN WARNED!\n\nPlease also check the console, your shopping cart content is listed there.\n' +
'If everything is correct, press \"OK\"');
if (!confirmBuy) {
// Reset cart to 1 element
Payment.cartElements = Payment.cartElements.slice(0, 1);
throwError('Cancelled by user.');
} else {
Payment.calcSums();
Payment.requestMethods();
alert('Everything done. Now continue with the payment as normal.');
}
Edit: and tell us if it work :)