Ctrl+code ⌨️
102 subscribers
129 photos
29 videos
1 file
99 links
Just sharing my next move 👣👣
Download Telegram
Forwarded from 𝕜𝕚𝕕𝕒
Telebirr API

Telebirr is a mobile wallet payment system that allows users to make transactions using their mobile phones. The Telebirr API enables developers to integrate Telebirr's payment capabilities into their web applications, making it easier to handle payments seamlessly.

Installation

To use the Telebirr API in your Node.js application, you can install the telebirr-sdk package via npm:

npm install telebirr-sdk
Initialization

First, initialize the Telebirr payment API with your API credentials:

import { Telebirr } from 'telebirr-sdk';

const telebirr = new Telebirr(appId, appKey, shortCode, publicKey);
Replace appId, appKey, shortCode, and publicKey with the actual values provided by Telebirr.

Encrypt Payload

Encrypt a payload using the provided encryption method:

const encryptedData = telebirr.encrypt({
nonce: 'unique_nonce',
outTradeNo: 'transaction_id',
returnUrl: 'return_url',
subject: 'payment_subject',
timeoutExpress: 'timeout_express',
timestamp: 'timestamp',
totalAmount: 'total_amount',
receiveName: 'receiver_name', // optional
notifyUrl: 'notification_url', // optional
});
Sign Data

Sign the payload data for security purposes:

const signature = telebirr.signData({
nonce: 'unique_nonce',
outTradeNo: 'transaction_id',
returnUrl: 'return_url',
subject: 'payment_subject',
timeoutExpress: 'timeout_express',
timestamp: 'timestamp',
totalAmount: 'total_amount',
receiveName: 'receiver_name', // optional
notifyUrl: 'notification_url', // optional
});
Initialize Web Payment

Initiate a web payment transaction using the signature and encrypted data:

telebirr.initWebPayment(url, signature, encryptedData)
.then(response => {
console.log("Response from Telebirr:", response);
// Handle successful response here
})
.catch(error => {
console.error("Error from Telebirr:", error);
// Handle error here
});
Example Response

Upon a successful request, the API returns a response like this:

{
"code": 0,
"msg": "success",
"data": {
"toPayUrl": "https://h5pay.trade.pay/payId=RE9879T0972S"
}
}
The code 0 always indicates success.

Important Considerations

When integrating the Telebirr API, ensure that you handle errors appropriately and secure your API credentials. Additionally, always verify the response from the API to confirm the success of the transaction.

For more details and examples, you can refer to the Telebirr GitHub repository.
Forwarded from Chapi Dev Talks
Registration is Open for DevMeetup V3!🎉🎉

Join us on February 22 at Capstone ALX Tech Hub, Lideta, for a day of inspiring keynotes, networking, hackathons, and fun challenges. Hear from founders and developers sharing their journeys!

📅 Date: February 22
Time: 9:00 AM
📍 Location: Capstone ALX Tech Hub, Lideta
📌 RSVP Here: https://devmeetup.et/register

Spaces are limited secure your spot now!

For any collaborations contact @chapimenge or @Merry_Abate16.

A huge shoutout to our amazing sponsors:

🥇 Platinum Sponsors: ALX Ethiopia, iceaddis, Convex Technologies, Chapa and Yegara Host.

🥉 Silver Sponsors: Horan Software, Kuraz Tech, along with individual supporters who’ve made this possible. Thank you all for your incredible support!

#DevMeetupV3 #DeveloperCommunity #Innovation
Forwarded from Frectonz
Devtopia #001 is out. Me and Yafet had a great conversation with Beka (@bekacru_c), creator of better-auth.

[apple]
[spotify]

[twitter announcement]
[linkedin announcement]
የዓቢይ ጾም የመጀመሪያ ሳምንት ንባብ

ማቴዎስ 6
16: “ስትጦሙም፥ እንደ ግብዞች አትጠውልጉ፤ ለሰዎች እንደ ጦመኛ ሊታዩ ፊታቸውን ያጠፋሉና፤ እውነት እላችኋለሁ፥ ዋጋቸውን ተቀብለዋል።
17-18: አንተ ግን ስትጦም፥ በስውር ላለው አባትህ እንጂ እንደ ጦመኛ ለሰዎች እንዳትታይ ራስህን ተቀባ ፊትህንም ታጠብ፤ በስውር የሚያይ አባትህም በግልጥ ይከፍልሃል።

የምናደርገውን ኹሉ ሰው እንዲያይልን ከኾነ የምናደርገው ዋጋችንን ከሰዎች ተቀብለናልና ከእግዚአብሔር ዘንድ ዋጋ የለንም በስውር የምናደርገውን ግን ከሰማይ አባታችን ዘንድ ወጋ እናገኝበታለን። ጾማችን ለመታየት ፣ ጾመኞች ናቸው ለመባል አይኹን ይልቅስ ብልና ነቀዝ የማያበላሸው ሰማያዊውን መዝገብ ለማግኘት ይኹን እርሱም ኢየሱስ ክርስቶስ ነው "መዝገብነ ዘኢይረክቦ ሠራቂ ወኢያማስኖ ፃፄ ወቁንቁኔ ውእቱ ኢየሱስ ክርስቶስ - ሌባ የማይቀርበው ብልና ነቀዝ የማያበላሸው መዝገባችን እርሱ ኢየሱስ ክርስቶስ ነው" እንዲል አባ ጊዮርጊስ።

እንደ ግብዞች አትጹሙ ፤ እንኳን አደረሳችሁ መልካም የዓቢይ ጾም። ያው የኢትዮጵያን ምንባባት ከብዙ ቦታ ስለምታገኙት እኔ በዚህ ጾም የኮፕቲክን አቀርብላችኋለው የተባረከ የጌታ ቀን።
እንኳን አደረሳችሁ ለታላቁ ጾም
Forwarded from Dagmawi Babi
Guillermo Rauch — Upbringings, Education, Career, NextJS, Vercel, V0, Advises and More
youtube.com/watch?v=aKNUJxioIRU

I had so much fun talking to RauchG, he's very chill and subtly smart in his words. Also this's the first episode where my editor changed somethings up, you're gonna see some infographics and stuff now.

Hope you enjoy this! 😊

#DagmawiBabiPodcast #GuillermoRauch
@Dagmawi_Babi
11🥰1
ነጮቹም ግን c++ እንደዚህ ነው የሚረዱት?😁
Forwarded from RΔCkZy
This had me in tears,Lol😭
😭3
Forwarded from Tech Nerd (Tech Nerd)
what's an object oriented way to become wealthy ?

Inheritance 😂
@selfmadecoder
Forwarded from Esyu
its almost 4am 🌒 i am fixing some issues from my past project 😴
i am pushing the huge commit uhhh..
as you know, recently typescript compiler rewritten by another language called 'GO'. What was the previous ?
Anonymous Quiz
51%
TypeScript
20%
JavaScript
15%
C++
6%
Java
8%
C