SlideShare uma empresa Scribd logo
1 de 7
Baixar para ler offline
International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.3, No.4, August 2013
DOI : 10.5121/ijcsea.2013.3405 49
MOBILE PHONE APPLICATION PROGRAMMING
INTERFACES FOR E-COMMERCE
Thomas Mugo1
, Karari Ephantus Kinyanjui2
and Kihuha Cyrus Kamau3
1
Department of Computer Science, Dedan Kimathi University of Technology, Nyeri,
Kenya
mugo.thomas@ibearesearch.org
2
Department of Computer Science, Dedan Kimathi University of Technology, Nyeri,
Kenya
efantus.kinyanjui@dkut.ac.ke
3
Department of Computer Science, Dedan Kimathi University of Technology, Nyeri,
Kenya
kamau.cyrus@gmail.com
ABSTRACT
As the mobile and Internet penetration rates in Kenya rise every year, online business and e-commerce will
steadily pick. This will have a huge impact on how we live and how we transact business. However, a few
more things have to be in place before we can reach that time when e-Commerce will be commonplace to
all individuals. Payments, security and merchandise delivery solutions will have to be developed to
facilitate smooth e-commerce. This paper is an extract from a project report on the issue of payment in a
Kenyan e-commerce environment.
KEYWORDS
Kenya, Mobile, Payment, e-Commerce, API
1. INTRODUCTION
Besides having a good internet connection and an e-commerce portal, a customer making
purchases of a good or a service electronically will want to make payments in a secure, seamless
and unobtrusive way.
The payment process should be brief, easy to understand, not suspicious and most of all seamless
on the customers end while for merchants and retailers it should be easy to integrate and manage.
The current solutions fail to meet the threshold of the afore mentioned conditions for the Kenyan
market while others like use credit/debit cards have caught little traction in the Kenyan market.
2. PROJECT OBJECTIVES
2.1. Main objective
The main objective of the study was to come up with a cross platform mobile payments
Application Programming Interface (API).
International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.3, No.4, August 2013
50
2.2. Specific objectives
The API will have to be a RESTful API to enhance easy integration and facilitate payments
across electronic commerce platforms.
3. PROJECT JUSTIFICATION
With a mobile phone penetration rate standing at over 63% and internet penetration rate at over
20% and doubling almost annually for the past two years, there is absolutely no doubt that
electronic business tractions can be conducted conveniently and by the masses if mobile phone
payments technology is harnessed and applied to online transactions and other forms of electronic
transactions.
This is further backed by the impressive reception that mobile payments have received in the
Kenyan market. A RESTful mobile payments API would ensure that merchants and retailers can
build e-commerce portals and be able to accept mobile payments from various platforms that their
applications were built on.
4. GENERAL SCOPE AND APPLICATION OF THE PROJECT
The mobile payments API would exist as a third party service relying on the existing mobile
payments solution by telecommunication service provider such as M-Pesa. This service will stand
in between e-commerce applications and the main mobile payments service provider thus
facilitating customers to seamlessly transact across the applications and the main service.
5. LITERATURE REVIEW
There are two other mobile payments APIs that have been built for the Kenyan mobile payments
market; PesaPI and PasaPal. The two APIs are different and have different weaknesses. Pesapi is
an open source Application Programming Interface designed for MPesa. Pesapal is a proprietary
API that works by partnering with Banks, Mobile Network Operators and Credit Card companies
to give consumers as many payment options as possible.
The details of these APIs can be accessed via internet with links provided in the references
section here-in.
The two APIs are not platform independent and their integration with e-commerce applications is
not easy.
Other methods in use in other markets for instance PayPal and Moneybookers are heavily
dependent on credit/debit cards which are not very popular in the country.
Harnessing the advantages of high penetration and positive reception that mobile payments have
had in Kenya requires a familiar and acceptable solution to online and electronic payments to be
developed. The strengths of this API will be in its ease of integration and ability to be used across
platforms.
7. METHODOLOGY
The API will be based on REST (Representational State Transfer) style of software architecture.
The API will therefore make use of the following standards based on REST:
International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.3, No.4, August 2013
51
a.HTTP
b.URL
c.JSON (Resource Representations)
d.text/xml, text/html, text/json
7.1.Resources
7.1.1.Hardware
1. Linux Server box
2. Mobile equipment e.g. phone, modem
3. Computer terminals e.g. laptops and desktops
7.1.2. Software
1. Debian based Linux distribution - Ubuntu
2. Database server - Postgresql
3. SMS gateway – Kernel
4. Python web and API frameworks – django, piston, tastypie
7.2.System development approach
The System was developed in short sprint sessions with one major object of development to be
tackled. As a result, the scrum methodology was opted for development.
Scrum is an iterative and incremental agile software development method for managing software
projects and product or application development.
8. ANALYSIS AND DESIGN
8.1. System design
To satisfy the requirements that have already been specified and set beforehand, we went for the
Object-Oriented Analysis and Design (OOAD) approach for this application. With this approach,
we would be able to view the system as a group of interacting objects.
Each object represents some entity of interest in the system being modeled, and is characterized
by the class, the state (data elements), and the behavior. The following diagrams define the
architecture, components, and modules of the API under development.
International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.3, No.4, August 2013
52
8.1.1.Use case diagram
Figure 1: Use case diagram
The API’s intended clients/users are e-commerce applications/modules.
The system process in prose happens as follows:
• A user initiates a checkout from an e-commerce application and chooses a mobile
payment solution as the preferred method of payment.
• The user then makes the payment using their phone.
• The API receives immediate payment notification from the payment solution of the
payment.
• The API notifies the e-commerce application of successful payment and hands over the
flow back to the application.
• The e-commerce application finalizes the transaction and notifies the user of success.
International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.3, No.4, August 2013
53
8.1.2.Dataflow diagram
Figure 2: Dataflow diagram
8.2. API resources
Resource endpoint: http://127.0.0.1:8000/api/v1/payment/"
Data parameters: '{"user_id":1, "code":"sdgsdg", "amount":80, "product_code":"sdgdgs"}'
Example request using curl:
curl -i -H "Content-Type: application/json" -X POST --data '{"user_id":1, "code":"sdgsdg",
"amount":80, "product_code":"sdgdgs"}' http://127.0.0.1:8000/api/v1/payment/
Underlying database models
class Payment(models.Model):
user = models.ForeignKey(User)
code = models.CharField(max_length=32)
amount = models.DecimalField(max_digits=12, decimal_places=3,
null=True, blank=True)
product_code = models.CharField(max_length=32)
created_at = models.DateTimeField(auto_now_add=True)
International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.3, No.4, August 2013
54
8.3. Challenges
Development and implementation of this API faced the following challenges:
a. Technology – Several different technologies had to come together and work in harmony to
get the API working.
b. Resources – For testing purposes, limited resources were available and it was difficult to
create a near production environment thus simulations had to be used.
9. CONCLUSION AND RECOMMENDATION
9.1. Limitation
The most outstanding limitation is in getting testing sandboxes from the payment solutions
provides. Getting pay-bill numbers and till numbers for testing is very challenging due to long
and demanding due process put in place by the providers.
9.2. Recommendation
While this system is built to be generic, and to work with various payment notification solutions
provided by payment solutions, We would recommend that http post notifications be applied
whenever possible as it makes use of a reliable network (internet) and reliable networking
protocols.
9.3. Conclusion
The objectives of building this API have been sufficiently achieved. Further testing and more
intensive integration would be needed for the system to be certified as robust enough to be used in
a production environment.
With this API, business and organizations can now leverage it to receive payments via popular
mobile payment systems in the market and be able to provide the purchased goods and services
on an immediate basis.
ACKNOWLEDGEMENTS
Many thanks go to the many people who have seen us through this project. Dedan Kimathi
University of Technology specifically, the Department of Computer science in School of
Computer Science and Information Technology. Special thanks go to IBEA research team
member Thomas Mugo for his technical input.
REFERENCES
[1] http://mobilemonday.co.ke/2011/kenyan-mobile-phone-penetration-is-now-over-63/ - Date of last
access – 7/2/2012
[2] http://en.wikipedia.org/wiki/List_of_countries_by_number_of_Internet_users - Date of last access –
7/2/2012
[3] http://www.techmtaa.com/2011/10/05/cck-quarterly-report-98-of-internet-users-in-kenya-access-
through-mobile/ - Date of last access – 7/2/2012
[4] http://tomayko.com/writings/rest-to-my-wife - Date of last access – 7/2/2012
[5] http://www.xfront.com/REST-Web-Services.html - Date of last access – 7/2/2012
International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.3, No.4, August 2013
55
[6] http://www.xfront.com/REST-Web-Services.html - Date of last access – 7/2/2012
[7] http://en.wikipedia.org/wiki/Representational_state_transfer - Date of last access – 7/2/2012
[8] http://developer.pesapal.com/forum/2-pesapal-integration/172-pesapal-api-reference-Date of last
access-7/2/2012
[9] http://blog.komzinc.com/2012/02/pesapi-m-pesa-api.html-PasaPi Mpesa API- 21/8/2012
AUTHORS
Name: Thomas T. Mugo
Mobile: +254 724 614 314
Interest: Software development, social media
Occupation: Researcher and application developer, IBEA Research,
www.ibeareseach.org
Name: Ephantus Kinyanjui Karari
Mobile: +254 721 374 616
Interest: Web and Mobile computing
Occupation: Lecturer & PhD Student; Department of Computer Science,
KUT (www.dkut.ac.ke), Nyeri, Kenya
Name: Kahuha Cyrus Kamau
Mobile: +254 722 808 500
Interest: Web and Mobile computing
Occupation: Lecturer , Department of Computer Science,
DKUT (www.dkut.ac.ke), Nyeri, Kenya

Mais conteúdo relacionado

Mais procurados

Re-imagining Digital Content
Re-imagining  Digital ContentRe-imagining  Digital Content
Re-imagining Digital ContentMahindra Comviva
 
Esewa - Nepal's First Online Payment
Esewa - Nepal's First Online PaymentEsewa - Nepal's First Online Payment
Esewa - Nepal's First Online PaymentManish Tuladhar
 
Connected Cars Quickly Becoming Part of the Internet of Things (IoT)
Connected Cars Quickly Becoming Part of the Internet of Things (IoT)Connected Cars Quickly Becoming Part of the Internet of Things (IoT)
Connected Cars Quickly Becoming Part of the Internet of Things (IoT)ParthaS
 
How we do monotize SaaS as a VAS in India?
How we do monotize SaaS as a VAS in India?   How we do monotize SaaS as a VAS in India?
How we do monotize SaaS as a VAS in India? Ranjit Kumar
 
MeasureWorks eFinancials - Best practices for a successfull mobile experienc...
MeasureWorks eFinancials  - Best practices for a successfull mobile experienc...MeasureWorks eFinancials  - Best practices for a successfull mobile experienc...
MeasureWorks eFinancials - Best practices for a successfull mobile experienc...MeasureWorks
 
Ecommerce Business in India
Ecommerce Business in IndiaEcommerce Business in India
Ecommerce Business in IndiaPalak Arora
 
Tim sloane preparing for rapid payments innovation
Tim sloane preparing for rapid payments innovationTim sloane preparing for rapid payments innovation
Tim sloane preparing for rapid payments innovationCO-OPFinancialServices
 
Global telecom trends by 2020
Global telecom trends by 2020Global telecom trends by 2020
Global telecom trends by 2020Ashutosh Pandey
 
H imanshu final mcs ppt 20147
H imanshu final mcs ppt 20147H imanshu final mcs ppt 20147
H imanshu final mcs ppt 20147Himanshu Phatnani
 
Mobile Enterprise, the coming explosion
Mobile Enterprise, the coming explosionMobile Enterprise, the coming explosion
Mobile Enterprise, the coming explosionPaul Van Doorn
 
Future Of Indian Telecom
Future Of Indian TelecomFuture Of Indian Telecom
Future Of Indian Telecompurushothamks
 
Communication Service Providers (CSP) and the Telecom API Ecosystem
 Communication Service Providers (CSP) and the Telecom API Ecosystem Communication Service Providers (CSP) and the Telecom API Ecosystem
Communication Service Providers (CSP) and the Telecom API EcosystemAlan Quayle
 
telecoms in europe 2015
telecoms in europe 2015telecoms in europe 2015
telecoms in europe 2015Boni
 
Esewa and eBanking in Nepal
Esewa and eBanking in NepalEsewa and eBanking in Nepal
Esewa and eBanking in Nepalmswikar
 
Protocols in Mobile Electronic Commerce
Protocols in Mobile Electronic CommerceProtocols in Mobile Electronic Commerce
Protocols in Mobile Electronic CommerceIJERA Editor
 

Mais procurados (19)

Re-imagining Digital Content
Re-imagining  Digital ContentRe-imagining  Digital Content
Re-imagining Digital Content
 
Esewa - Nepal's First Online Payment
Esewa - Nepal's First Online PaymentEsewa - Nepal's First Online Payment
Esewa - Nepal's First Online Payment
 
Connected Cars Quickly Becoming Part of the Internet of Things (IoT)
Connected Cars Quickly Becoming Part of the Internet of Things (IoT)Connected Cars Quickly Becoming Part of the Internet of Things (IoT)
Connected Cars Quickly Becoming Part of the Internet of Things (IoT)
 
How we do monotize SaaS as a VAS in India?
How we do monotize SaaS as a VAS in India?   How we do monotize SaaS as a VAS in India?
How we do monotize SaaS as a VAS in India?
 
Introducing AI into telcos
Introducing AI into telcosIntroducing AI into telcos
Introducing AI into telcos
 
E banking
E bankingE banking
E banking
 
MeasureWorks eFinancials - Best practices for a successfull mobile experienc...
MeasureWorks eFinancials  - Best practices for a successfull mobile experienc...MeasureWorks eFinancials  - Best practices for a successfull mobile experienc...
MeasureWorks eFinancials - Best practices for a successfull mobile experienc...
 
Ecommerce Business in India
Ecommerce Business in IndiaEcommerce Business in India
Ecommerce Business in India
 
Tim sloane preparing for rapid payments innovation
Tim sloane preparing for rapid payments innovationTim sloane preparing for rapid payments innovation
Tim sloane preparing for rapid payments innovation
 
Global telecom trends by 2020
Global telecom trends by 2020Global telecom trends by 2020
Global telecom trends by 2020
 
H imanshu final mcs ppt 20147
H imanshu final mcs ppt 20147H imanshu final mcs ppt 20147
H imanshu final mcs ppt 20147
 
Direct Carrier billing
Direct Carrier billingDirect Carrier billing
Direct Carrier billing
 
X apps portfolio
X apps portfolioX apps portfolio
X apps portfolio
 
Mobile Enterprise, the coming explosion
Mobile Enterprise, the coming explosionMobile Enterprise, the coming explosion
Mobile Enterprise, the coming explosion
 
Future Of Indian Telecom
Future Of Indian TelecomFuture Of Indian Telecom
Future Of Indian Telecom
 
Communication Service Providers (CSP) and the Telecom API Ecosystem
 Communication Service Providers (CSP) and the Telecom API Ecosystem Communication Service Providers (CSP) and the Telecom API Ecosystem
Communication Service Providers (CSP) and the Telecom API Ecosystem
 
telecoms in europe 2015
telecoms in europe 2015telecoms in europe 2015
telecoms in europe 2015
 
Esewa and eBanking in Nepal
Esewa and eBanking in NepalEsewa and eBanking in Nepal
Esewa and eBanking in Nepal
 
Protocols in Mobile Electronic Commerce
Protocols in Mobile Electronic CommerceProtocols in Mobile Electronic Commerce
Protocols in Mobile Electronic Commerce
 

Semelhante a MOBILE PHONE APPLICATION PROGRAMMING INTERFACES FOR E-COMMERCE

Payments(paa s) – the new mantra and trends
Payments(paa s) – the new mantra and trendsPayments(paa s) – the new mantra and trends
Payments(paa s) – the new mantra and trendsRamesh Kumar Nanjundaiya
 
Efficient m commerce marketing application based internet of things using nea...
Efficient m commerce marketing application based internet of things using nea...Efficient m commerce marketing application based internet of things using nea...
Efficient m commerce marketing application based internet of things using nea...IAEME Publication
 
How to build an online payment app development like pay pal
How to build an online payment app development like pay palHow to build an online payment app development like pay pal
How to build an online payment app development like pay palNoman Shaikh
 
Voice Controlled E-commerce Web App
Voice Controlled E-commerce Web AppVoice Controlled E-commerce Web App
Voice Controlled E-commerce Web AppIRJET Journal
 
IRJET- Smart Shopping Application using NFC
IRJET- Smart Shopping Application using NFCIRJET- Smart Shopping Application using NFC
IRJET- Smart Shopping Application using NFCIRJET Journal
 
ELECTRIC VEHICLE CHARGING STATION FINDER AND SLOT BOOKING MOBILE APPLICATION ...
ELECTRIC VEHICLE CHARGING STATION FINDER AND SLOT BOOKING MOBILE APPLICATION ...ELECTRIC VEHICLE CHARGING STATION FINDER AND SLOT BOOKING MOBILE APPLICATION ...
ELECTRIC VEHICLE CHARGING STATION FINDER AND SLOT BOOKING MOBILE APPLICATION ...IRJET Journal
 
Pay-Cloak:Biometric
Pay-Cloak:BiometricPay-Cloak:Biometric
Pay-Cloak:Biometricijtsrd
 
Software engineering based fault tolerance model for information system in pl...
Software engineering based fault tolerance model for information system in pl...Software engineering based fault tolerance model for information system in pl...
Software engineering based fault tolerance model for information system in pl...IJECEIAES
 
IRJET- A Mobile Payment System Based on Face Recognition
IRJET- A Mobile Payment System Based on Face RecognitionIRJET- A Mobile Payment System Based on Face Recognition
IRJET- A Mobile Payment System Based on Face RecognitionIRJET Journal
 
LunchBox:- A Web And Mobile Application
LunchBox:- A Web And Mobile ApplicationLunchBox:- A Web And Mobile Application
LunchBox:- A Web And Mobile ApplicationIRJET Journal
 
IRJET - Anti-Fraud ATM Security System
IRJET  - Anti-Fraud ATM Security SystemIRJET  - Anti-Fraud ATM Security System
IRJET - Anti-Fraud ATM Security SystemIRJET Journal
 
Creation Of Social Group in Full Stack Progressive Apparel Purchasing Web App
Creation Of Social Group in Full Stack Progressive Apparel Purchasing Web AppCreation Of Social Group in Full Stack Progressive Apparel Purchasing Web App
Creation Of Social Group in Full Stack Progressive Apparel Purchasing Web AppIRJET Journal
 
4 Trends that Define the Future of Banking.pdf
4 Trends that Define the Future of Banking.pdf4 Trends that Define the Future of Banking.pdf
4 Trends that Define the Future of Banking.pdfNovoPay
 
IRJET- E-Grievance: Centralized System for Municipal Corporation to Citizens ...
IRJET- E-Grievance: Centralized System for Municipal Corporation to Citizens ...IRJET- E-Grievance: Centralized System for Municipal Corporation to Citizens ...
IRJET- E-Grievance: Centralized System for Municipal Corporation to Citizens ...IRJET Journal
 
Easy Mobile Cable Management System Using Android Application
Easy Mobile Cable Management System Using Android ApplicationEasy Mobile Cable Management System Using Android Application
Easy Mobile Cable Management System Using Android ApplicationIJMTST Journal
 
Development of Electronic Bank Deposi and Withdrawal System Using Quick Respo...
Development of Electronic Bank Deposi and Withdrawal System Using Quick Respo...Development of Electronic Bank Deposi and Withdrawal System Using Quick Respo...
Development of Electronic Bank Deposi and Withdrawal System Using Quick Respo...AnthonyOtuonye
 
IRJET- Intelligent Cart
IRJET-  	  Intelligent CartIRJET-  	  Intelligent Cart
IRJET- Intelligent CartIRJET Journal
 
Cloud Computing for E-Commerce
Cloud Computing for E-CommerceCloud Computing for E-Commerce
Cloud Computing for E-CommerceIOSR Journals
 
IRJET- Queue Control System using Android
IRJET- Queue Control System using AndroidIRJET- Queue Control System using Android
IRJET- Queue Control System using AndroidIRJET Journal
 
HOW FUTURISTIC TECHNOLOGY CAN CHANGE FUTURE OF MOBILE APP DEVELOPMENT
HOW FUTURISTIC TECHNOLOGY CAN CHANGE FUTURE OF MOBILE APP DEVELOPMENTHOW FUTURISTIC TECHNOLOGY CAN CHANGE FUTURE OF MOBILE APP DEVELOPMENT
HOW FUTURISTIC TECHNOLOGY CAN CHANGE FUTURE OF MOBILE APP DEVELOPMENTTekRevol LLC
 

Semelhante a MOBILE PHONE APPLICATION PROGRAMMING INTERFACES FOR E-COMMERCE (20)

Payments(paa s) – the new mantra and trends
Payments(paa s) – the new mantra and trendsPayments(paa s) – the new mantra and trends
Payments(paa s) – the new mantra and trends
 
Efficient m commerce marketing application based internet of things using nea...
Efficient m commerce marketing application based internet of things using nea...Efficient m commerce marketing application based internet of things using nea...
Efficient m commerce marketing application based internet of things using nea...
 
How to build an online payment app development like pay pal
How to build an online payment app development like pay palHow to build an online payment app development like pay pal
How to build an online payment app development like pay pal
 
Voice Controlled E-commerce Web App
Voice Controlled E-commerce Web AppVoice Controlled E-commerce Web App
Voice Controlled E-commerce Web App
 
IRJET- Smart Shopping Application using NFC
IRJET- Smart Shopping Application using NFCIRJET- Smart Shopping Application using NFC
IRJET- Smart Shopping Application using NFC
 
ELECTRIC VEHICLE CHARGING STATION FINDER AND SLOT BOOKING MOBILE APPLICATION ...
ELECTRIC VEHICLE CHARGING STATION FINDER AND SLOT BOOKING MOBILE APPLICATION ...ELECTRIC VEHICLE CHARGING STATION FINDER AND SLOT BOOKING MOBILE APPLICATION ...
ELECTRIC VEHICLE CHARGING STATION FINDER AND SLOT BOOKING MOBILE APPLICATION ...
 
Pay-Cloak:Biometric
Pay-Cloak:BiometricPay-Cloak:Biometric
Pay-Cloak:Biometric
 
Software engineering based fault tolerance model for information system in pl...
Software engineering based fault tolerance model for information system in pl...Software engineering based fault tolerance model for information system in pl...
Software engineering based fault tolerance model for information system in pl...
 
IRJET- A Mobile Payment System Based on Face Recognition
IRJET- A Mobile Payment System Based on Face RecognitionIRJET- A Mobile Payment System Based on Face Recognition
IRJET- A Mobile Payment System Based on Face Recognition
 
LunchBox:- A Web And Mobile Application
LunchBox:- A Web And Mobile ApplicationLunchBox:- A Web And Mobile Application
LunchBox:- A Web And Mobile Application
 
IRJET - Anti-Fraud ATM Security System
IRJET  - Anti-Fraud ATM Security SystemIRJET  - Anti-Fraud ATM Security System
IRJET - Anti-Fraud ATM Security System
 
Creation Of Social Group in Full Stack Progressive Apparel Purchasing Web App
Creation Of Social Group in Full Stack Progressive Apparel Purchasing Web AppCreation Of Social Group in Full Stack Progressive Apparel Purchasing Web App
Creation Of Social Group in Full Stack Progressive Apparel Purchasing Web App
 
4 Trends that Define the Future of Banking.pdf
4 Trends that Define the Future of Banking.pdf4 Trends that Define the Future of Banking.pdf
4 Trends that Define the Future of Banking.pdf
 
IRJET- E-Grievance: Centralized System for Municipal Corporation to Citizens ...
IRJET- E-Grievance: Centralized System for Municipal Corporation to Citizens ...IRJET- E-Grievance: Centralized System for Municipal Corporation to Citizens ...
IRJET- E-Grievance: Centralized System for Municipal Corporation to Citizens ...
 
Easy Mobile Cable Management System Using Android Application
Easy Mobile Cable Management System Using Android ApplicationEasy Mobile Cable Management System Using Android Application
Easy Mobile Cable Management System Using Android Application
 
Development of Electronic Bank Deposi and Withdrawal System Using Quick Respo...
Development of Electronic Bank Deposi and Withdrawal System Using Quick Respo...Development of Electronic Bank Deposi and Withdrawal System Using Quick Respo...
Development of Electronic Bank Deposi and Withdrawal System Using Quick Respo...
 
IRJET- Intelligent Cart
IRJET-  	  Intelligent CartIRJET-  	  Intelligent Cart
IRJET- Intelligent Cart
 
Cloud Computing for E-Commerce
Cloud Computing for E-CommerceCloud Computing for E-Commerce
Cloud Computing for E-Commerce
 
IRJET- Queue Control System using Android
IRJET- Queue Control System using AndroidIRJET- Queue Control System using Android
IRJET- Queue Control System using Android
 
HOW FUTURISTIC TECHNOLOGY CAN CHANGE FUTURE OF MOBILE APP DEVELOPMENT
HOW FUTURISTIC TECHNOLOGY CAN CHANGE FUTURE OF MOBILE APP DEVELOPMENTHOW FUTURISTIC TECHNOLOGY CAN CHANGE FUTURE OF MOBILE APP DEVELOPMENT
HOW FUTURISTIC TECHNOLOGY CAN CHANGE FUTURE OF MOBILE APP DEVELOPMENT
 

Último

Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 

Último (20)

Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 

MOBILE PHONE APPLICATION PROGRAMMING INTERFACES FOR E-COMMERCE

  • 1. International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.3, No.4, August 2013 DOI : 10.5121/ijcsea.2013.3405 49 MOBILE PHONE APPLICATION PROGRAMMING INTERFACES FOR E-COMMERCE Thomas Mugo1 , Karari Ephantus Kinyanjui2 and Kihuha Cyrus Kamau3 1 Department of Computer Science, Dedan Kimathi University of Technology, Nyeri, Kenya mugo.thomas@ibearesearch.org 2 Department of Computer Science, Dedan Kimathi University of Technology, Nyeri, Kenya efantus.kinyanjui@dkut.ac.ke 3 Department of Computer Science, Dedan Kimathi University of Technology, Nyeri, Kenya kamau.cyrus@gmail.com ABSTRACT As the mobile and Internet penetration rates in Kenya rise every year, online business and e-commerce will steadily pick. This will have a huge impact on how we live and how we transact business. However, a few more things have to be in place before we can reach that time when e-Commerce will be commonplace to all individuals. Payments, security and merchandise delivery solutions will have to be developed to facilitate smooth e-commerce. This paper is an extract from a project report on the issue of payment in a Kenyan e-commerce environment. KEYWORDS Kenya, Mobile, Payment, e-Commerce, API 1. INTRODUCTION Besides having a good internet connection and an e-commerce portal, a customer making purchases of a good or a service electronically will want to make payments in a secure, seamless and unobtrusive way. The payment process should be brief, easy to understand, not suspicious and most of all seamless on the customers end while for merchants and retailers it should be easy to integrate and manage. The current solutions fail to meet the threshold of the afore mentioned conditions for the Kenyan market while others like use credit/debit cards have caught little traction in the Kenyan market. 2. PROJECT OBJECTIVES 2.1. Main objective The main objective of the study was to come up with a cross platform mobile payments Application Programming Interface (API).
  • 2. International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.3, No.4, August 2013 50 2.2. Specific objectives The API will have to be a RESTful API to enhance easy integration and facilitate payments across electronic commerce platforms. 3. PROJECT JUSTIFICATION With a mobile phone penetration rate standing at over 63% and internet penetration rate at over 20% and doubling almost annually for the past two years, there is absolutely no doubt that electronic business tractions can be conducted conveniently and by the masses if mobile phone payments technology is harnessed and applied to online transactions and other forms of electronic transactions. This is further backed by the impressive reception that mobile payments have received in the Kenyan market. A RESTful mobile payments API would ensure that merchants and retailers can build e-commerce portals and be able to accept mobile payments from various platforms that their applications were built on. 4. GENERAL SCOPE AND APPLICATION OF THE PROJECT The mobile payments API would exist as a third party service relying on the existing mobile payments solution by telecommunication service provider such as M-Pesa. This service will stand in between e-commerce applications and the main mobile payments service provider thus facilitating customers to seamlessly transact across the applications and the main service. 5. LITERATURE REVIEW There are two other mobile payments APIs that have been built for the Kenyan mobile payments market; PesaPI and PasaPal. The two APIs are different and have different weaknesses. Pesapi is an open source Application Programming Interface designed for MPesa. Pesapal is a proprietary API that works by partnering with Banks, Mobile Network Operators and Credit Card companies to give consumers as many payment options as possible. The details of these APIs can be accessed via internet with links provided in the references section here-in. The two APIs are not platform independent and their integration with e-commerce applications is not easy. Other methods in use in other markets for instance PayPal and Moneybookers are heavily dependent on credit/debit cards which are not very popular in the country. Harnessing the advantages of high penetration and positive reception that mobile payments have had in Kenya requires a familiar and acceptable solution to online and electronic payments to be developed. The strengths of this API will be in its ease of integration and ability to be used across platforms. 7. METHODOLOGY The API will be based on REST (Representational State Transfer) style of software architecture. The API will therefore make use of the following standards based on REST:
  • 3. International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.3, No.4, August 2013 51 a.HTTP b.URL c.JSON (Resource Representations) d.text/xml, text/html, text/json 7.1.Resources 7.1.1.Hardware 1. Linux Server box 2. Mobile equipment e.g. phone, modem 3. Computer terminals e.g. laptops and desktops 7.1.2. Software 1. Debian based Linux distribution - Ubuntu 2. Database server - Postgresql 3. SMS gateway – Kernel 4. Python web and API frameworks – django, piston, tastypie 7.2.System development approach The System was developed in short sprint sessions with one major object of development to be tackled. As a result, the scrum methodology was opted for development. Scrum is an iterative and incremental agile software development method for managing software projects and product or application development. 8. ANALYSIS AND DESIGN 8.1. System design To satisfy the requirements that have already been specified and set beforehand, we went for the Object-Oriented Analysis and Design (OOAD) approach for this application. With this approach, we would be able to view the system as a group of interacting objects. Each object represents some entity of interest in the system being modeled, and is characterized by the class, the state (data elements), and the behavior. The following diagrams define the architecture, components, and modules of the API under development.
  • 4. International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.3, No.4, August 2013 52 8.1.1.Use case diagram Figure 1: Use case diagram The API’s intended clients/users are e-commerce applications/modules. The system process in prose happens as follows: • A user initiates a checkout from an e-commerce application and chooses a mobile payment solution as the preferred method of payment. • The user then makes the payment using their phone. • The API receives immediate payment notification from the payment solution of the payment. • The API notifies the e-commerce application of successful payment and hands over the flow back to the application. • The e-commerce application finalizes the transaction and notifies the user of success.
  • 5. International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.3, No.4, August 2013 53 8.1.2.Dataflow diagram Figure 2: Dataflow diagram 8.2. API resources Resource endpoint: http://127.0.0.1:8000/api/v1/payment/" Data parameters: '{"user_id":1, "code":"sdgsdg", "amount":80, "product_code":"sdgdgs"}' Example request using curl: curl -i -H "Content-Type: application/json" -X POST --data '{"user_id":1, "code":"sdgsdg", "amount":80, "product_code":"sdgdgs"}' http://127.0.0.1:8000/api/v1/payment/ Underlying database models class Payment(models.Model): user = models.ForeignKey(User) code = models.CharField(max_length=32) amount = models.DecimalField(max_digits=12, decimal_places=3, null=True, blank=True) product_code = models.CharField(max_length=32) created_at = models.DateTimeField(auto_now_add=True)
  • 6. International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.3, No.4, August 2013 54 8.3. Challenges Development and implementation of this API faced the following challenges: a. Technology – Several different technologies had to come together and work in harmony to get the API working. b. Resources – For testing purposes, limited resources were available and it was difficult to create a near production environment thus simulations had to be used. 9. CONCLUSION AND RECOMMENDATION 9.1. Limitation The most outstanding limitation is in getting testing sandboxes from the payment solutions provides. Getting pay-bill numbers and till numbers for testing is very challenging due to long and demanding due process put in place by the providers. 9.2. Recommendation While this system is built to be generic, and to work with various payment notification solutions provided by payment solutions, We would recommend that http post notifications be applied whenever possible as it makes use of a reliable network (internet) and reliable networking protocols. 9.3. Conclusion The objectives of building this API have been sufficiently achieved. Further testing and more intensive integration would be needed for the system to be certified as robust enough to be used in a production environment. With this API, business and organizations can now leverage it to receive payments via popular mobile payment systems in the market and be able to provide the purchased goods and services on an immediate basis. ACKNOWLEDGEMENTS Many thanks go to the many people who have seen us through this project. Dedan Kimathi University of Technology specifically, the Department of Computer science in School of Computer Science and Information Technology. Special thanks go to IBEA research team member Thomas Mugo for his technical input. REFERENCES [1] http://mobilemonday.co.ke/2011/kenyan-mobile-phone-penetration-is-now-over-63/ - Date of last access – 7/2/2012 [2] http://en.wikipedia.org/wiki/List_of_countries_by_number_of_Internet_users - Date of last access – 7/2/2012 [3] http://www.techmtaa.com/2011/10/05/cck-quarterly-report-98-of-internet-users-in-kenya-access- through-mobile/ - Date of last access – 7/2/2012 [4] http://tomayko.com/writings/rest-to-my-wife - Date of last access – 7/2/2012 [5] http://www.xfront.com/REST-Web-Services.html - Date of last access – 7/2/2012
  • 7. International Journal of Computer Science, Engineering and Applications (IJCSEA) Vol.3, No.4, August 2013 55 [6] http://www.xfront.com/REST-Web-Services.html - Date of last access – 7/2/2012 [7] http://en.wikipedia.org/wiki/Representational_state_transfer - Date of last access – 7/2/2012 [8] http://developer.pesapal.com/forum/2-pesapal-integration/172-pesapal-api-reference-Date of last access-7/2/2012 [9] http://blog.komzinc.com/2012/02/pesapi-m-pesa-api.html-PasaPi Mpesa API- 21/8/2012 AUTHORS Name: Thomas T. Mugo Mobile: +254 724 614 314 Interest: Software development, social media Occupation: Researcher and application developer, IBEA Research, www.ibeareseach.org Name: Ephantus Kinyanjui Karari Mobile: +254 721 374 616 Interest: Web and Mobile computing Occupation: Lecturer & PhD Student; Department of Computer Science, KUT (www.dkut.ac.ke), Nyeri, Kenya Name: Kahuha Cyrus Kamau Mobile: +254 722 808 500 Interest: Web and Mobile computing Occupation: Lecturer , Department of Computer Science, DKUT (www.dkut.ac.ke), Nyeri, Kenya