Automate Recurring Venmo Payments with Github Actions and IFTTT

UPDATED: APR 27, 2023 | PUBLISHED: MAY 4, 2022 | 3.19k words, 15 minute read β€” GUIDES

Like so many tinkerers, I love to automate small parts of my life, while ignoring any actual work I should be doing. After stumbling on Joe’s Venmo automation , I immediately swept all the important things off my plate to have some fun. Now let’s set up automatic payments on Venmo in less than an hour β€” with email notifications for peace of mind!

Clock + robot snake + Venmo

Why not Nocode (Zapier, IFTTT, etc.) πŸ”—︎

You’ll need to know how to code a small amount for this guide. This setup is an alternative to the Zapier Venmo integration and IFTTT Venmo integration, which don’t seem to exist anymore (if they ever did). Venmo shut down their developer APIs and have had them in maintenance mode since 2016 , so unlikely for anything to change on that front. Normally I look to nocode tools first for projects, but unfortunately in this case, you’ll need to know how to run code online.

Ingredients πŸ”—︎

The 3 pieces you will need to set this up (in <1 hour):

  • A scheduled trigger (GitHub actions, AWS Cloudwatch, etc.)
  • A place to run a Python script + it’s dependency (GitHub actions, PythonAnywhere, Node.js with Autocode is in exploration)
  • A free or cheap notification service (IFTTT, AWS SNS, etc.)

I use GitHub Actions + Python script + IFTTT for sending emails, but feel free to step off the beaten path if you have other ideas.

How to set up automatic payments on Venmo πŸ”—︎

Diving into the meat & potatoes you came for, how to actually get this dang thing running.

  1. (Optional) πŸ’Œ Set up IFTTT notifications

    ℹ️ If you don’t care about being notified, skip this step and remove the notify() code in script.

    Example of the IFTTT notification email

    IFTTT allows a variety of target services , I originally used SMS, then converted to email since it’s not an urgent alert.

    • Sign up for IFTTT account (might require downloading of the app).

    • Configure the Webhooks service in IFTTT.

    • Then set up your chosen notification service. My example script sends metadata about the Venmo request sent in the value1 field IFTTT provides. If you use the same, you’ll have to make sure that is mapped correctly to your chosen notification service.

      IFTT applet set-up screen

    • βœ… Use cURL or your favorite web request tool to test your webhook and ensure notifications are sending correctly.

    • Save your webhook URL as a Secret so the workflow can access it. In the browser, go to GitHub Repo -> Settings -> Secrets -> New Repository Secret.

  2. πŸ” Get Venmo access token

    ⚠️🚨 *This token has the same power with your Venmo account as you do, so be very careful with it! It will never expire unless you logout manually, as explained in the docs .

    I plan to update this guide to use Payment Links (a deeplink into the Venmo app that doesn’t require account access) in the near future, but for now, you are forewarned.* ⚠️🚨

    You’ll have to be comfortable working with Python dependencies to run these scripts locally.

    f#peipCrrmfalohiasimtni'settl@prwnvp('raotes"=iir.n:Lnnsdgmoiotee/gnt(=t_gip'S_ainui!yiapttnsncihu(ytpcus'eoeueibiVmmtsm.neawE(spcgnihx'_oomlaiVtrmao:tteot/cnkmcEtmeCmomhonlouae(ihniPueatlhasnd:esetet'csrso)kwn/oaVgyrmeeodentu:=m'eoas)mnuariaelc,ctehpsaastssstwoaoknredne=mpfaaoisrls'wt)ohred)API.")
    • Save the token as the Secret VENMO_ACCESS_TOKEN by going to GitHub Repo -> Settings -> Secrets -> New Repository Secret.
  3. (Optional) πŸ—Ί Map Venmo usernames to IDs

    Then Venmo API requires payment requests to be tied to an ID, rather than the @username we humans use in the app. I did the mapping of usernames during setup and added them as environment secrets , but you can just as easily add 1 extra LOC to convert during regular runs.

    u#vseeKnremyo=_icvsleintemhnoet_.c'pluaisyeemnret.n.itud.s'reerpq.augreetstt__umsoenre_yb(ya_muosuenrtn,amneo(tues,ertnaarmgee)t_user_id=user.id,privacy_setting=PaymentPrivacy.PRIVATE)
  4. 🐍 Modify the Python script

    The script I use has a simple entry point, then defines a separate function for each Venmo request I want it to make, YMMV. You’ll need to make some small adjustments based on how many requests you need it to make & how you fetch Venmo user IDs. The most important bits can be boiled down to this main.py:

    #if#iTIddmmrmOFeeamporpKTf#cantenfiaomeoET_morpxpmonirqrNTm#aivuotyrmcrstn#iij}rpi(ntvut__acfevsue:viseigioffserf).eeKWilcneenengpnftntosiponsrEEnoeamnrt=nttt=yiotinpnrysmteYB(ascrom_m(=((fttfr_terosqH)dsca_oi=fo'Ee'myi_tadv=(sa_u=O:_eicd'_Sfx)[s(fwtiaarpiaieOttsslu2Mcu'c!gmyetstlre.spss'Khoseis=0olcRe])sb_eauesseitV_ek_ee.nicepgwhweqptpsEKetVnro0teeqtF)ioeV=1u.aViuNEanoatshnsuia:toba'estamlMYckli.ltseoihkhl{:stulplOc=eu=dey.fsnl_outasuoe_=enenputeIuoemst_erdAsoECfvIaleadFrkEs.ucEtC'ssirlrinyldsTl_rgpsoriCI.sriortmytTuro_drCnEFteoemoee$eoT=rosceolSTonNrnnrnr{:lrtoribSTkvo(tm.ntearwo((d>(ey_Tein'(age.qmeesi'ie=fnT_nre[apetruoqb.s[f)'tvOWo:!cpt'eeuuhe!t3W,eKEfn]ci(qsneonN]t0enEBr.en'uttsovot0bPmNHogEsgCee}tkinD_:hao'OmeVs_sdreawoy_OtE_sUtI$o:neomaKe(RttS_fn$ngbkep'nTYoeEmot.,hnivOTkpRorefgortiKHe>_nroenoePrEInIeinrtoksroNN=Dyne(_pin_Ga'(ttiIwuvKc)aenFerwaEIcmrftTblacYSeonreTh,sy)sueorToBsntmn_oj{R_teWksrOt,$CtEoeKo$.BsnsEkn''fHo=pNeo)rOj.ntoOcssW)emKaotE,_nnaCKt_tCt.EduAa'YnasNr)ot_Tgtacei)oGtfdE_yeTu}sm;AeyCrsnC_eoEiltSdfS=aSc:_(sAu'uHs)cHecHreH_sHisHd.',)Bpordiyv:ac{yr_essept.ttienxgt=}P'a)ymentPrivacy.PRIVATE)
  5. πŸ‘¨β€πŸ’» Configure GitHub Secrets & Actions

    ℹ️ Cron actions get disabled after 60 days of no activity on the repository - so either plan to push a commit every 50 days, or follow my approach and just wait until GitHub emails you.

    βœ‹ At this point you should have your VENMO_ACCESS_TOKEN saved in Secrets, along with the optional IFTTT_WEBHOOK or USER_IDs values. if you didn’t, go back and do it.

    Now create your workflow definition at .github/workflows/<workflow-name>.yml . This is where you will define your schedule in cron. My example shows monthly Venmo requests.

    #nojano<m:swbrwecosuo:h#-r:nrsrek:utkRd5cfne----fuu/rlsplnl6oo-sunuwnrn#reoepnwo:sasiauaunwR:m:_nemetpmnppmhneeeepvVGCI-ed:seshye:iiet:cccci:EF_FncE"i::::t:pp:thhhhpN_UTauD0suh|epoooeMVSTmrTpbaSaoIinRsnOEETer1aucecnnnvu:VGCIv_NR_>io0tnttt-ssn/EF_FAM_W.nnctiivtti/N_UTrCOIEyg1huouoeaanspMVSTuC_DBmt0:-npnrllsciOEETnEU:HlVhlssslltrp_NR_SSOeea/P/iaieAM_WpSE$OntcysodplpnCOIEy_R{Km1*ehteneiltvC_DBtT_{:o0"seht:pp.EU=HhOIttcoueepSS$OoKDs$hknp3nnySECOnE:e{o-.dvp_R_KNc{ou3p7eaT_U=m:$rft.yn.OIS$a{es@7tciKDEIi${tetvhioE=RFn{sch2oe/N$_T.{s.rense=GITpeCe@n$FDTysc_tmv/V__erUso2lEVWceS.naNEErtEIttMNBesRFheOM.Ht._T.s_OeOsGITtA_nO.FDT/CUvKV__aCSEV}WdEENE}EvSRMNBaS_OMHn_I._OOcTDeA_OeOnCUKdKvCS/EEE}#NSR}a.S_ue_ItnTDovOm.K}aeE}tnNivc}-}loading-of-env;thisissomewhatsillybutIwantedtofinishquick
  6. πŸ–οΈ Sit back and relax - with your automation in place, you’re now saving MINUTES each month! 🀣

    But hey, we learned something neat and learned some new automation tricks. Time well spent.

    XKCD was it worth the time matrix

πŸ§ͺ Experiments & potential improvements πŸ”—︎

  • Writing Node.js function on Autocode after switching to Payment Links.

See Also