mefelasefing stuff use this code to check cbe tranfers receipts
made it just now
/**
* Generates a CBE receipt transaction link
* @param {string} transactionId - The transaction ID (e.g., "FT25296C4YJC")
* @param {string|number} senderAccount - The sender's account number (will use last 8 digits)
* @returns {string} The complete transaction link
*/
function generateCbeReceiptLink(transactionId, senderAccount) {
if (!transactionId || transactionId.trim() === '') {
throw new Error('Transaction ID is required');
}
const accountStr = senderAccount.toString();
if (accountStr.length < 8) {
throw new Error('Sender account must have at least 8 digits');
}
const last8Digits = accountStr.slice(-8);
const baseUrl = "https://apps.cbe.com.et:100/?id=";
return `${baseUrl}${transactionId}${last8Digits}`;
}
/**
* Verifies a CBE receipt link
* @param {string} receiptLink - Full CBE receipt URL
*/
async function verifyCbeReceipt(receiptLink) {
try {
const response = await fetch(receiptLink);
if (!response.ok) {
console.log("Verified Receipt β ");
} else {
console.log("Receipt link is accessible βοΈ");
}
} catch (error) {
console.error("Error fetching the receipt:", error.message);
}
}
made it just now
for-coder
mefelasefing stuff use this code to check cbe tranfers receipts /** * Generates a CBE receipt transaction link * @param {string} transactionId - The transaction ID (e.g., "FT25296C4YJC") * @param {string|number} senderAccount - The sender's account numberβ¦
ik pepoles might send duplicate receipts this is only 50% i will release that can handle duplication too
this is just some indomie stuff for now π«
this is just some indomie stuff for now π«
π2
One of the things I like about telegram
Like I can watch the animation only more than 10X
WHO DESIGNED THE UI AND ANIMATIONS πππ€
Like I can watch the animation only more than 10X
π―1
Coding is fun until it starts to do what you told it to do instead of what its you want it to do....π€·ββοΈ
π3