Skip to content

A pipeline to initiate prepaid phone recharge through an sms

Notifications You must be signed in to change notification settings

n4nagappan/recharge-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup Instructions

  1. Setup Serverless for deploying lambda functions
> npm install serverless -g
  1. Configure AWS credentials for Serverless deployment. Instructions here.

  2. Clone repo

> git clone git@github.com:n4nagappan/recharge-bot.git
> cd recharge-bot
  1. Rename the sample_config.json file to config.json.
> mv sample_config.json config.json
  1. Modify the config.json to include your phone number and pay2all client id. You can get your pay2all client id here.

  2. Deploy service

> serverless deploy -s prod

deploy image

  1. Test request
curl --data 'sender=919444944400' https://mokdggyz4a.execute-api.us-east-1.amazonaws.com/prod/recharge

Setting up external accounts

Textlocal account

  1. Setup textlocal account here
  2. Configure an inbox to send HTTP post request to your lambda service when an SMS is received. You can do that under the "Forward incoming messages to a URL" section inside settings.

Pay2All account

  1. Setup Pay2All account here
  2. Top-up your account with some money for recharging.

About

A pipeline to initiate prepaid phone recharge through an sms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published