Rapyd U Office Hours: Python CLI, Create Payment, Retrieve Payment
Learn about Rapyd, fintech payments, and a short demo using Python. Follow along as we learn about the payments ecosystem, the Rapyd developer community, and how to create and retrieve your payment with the payment ID.
00:02
all right [Music] we’re gonna go ahead and get started and talk about uh fintech talk about payments uh here and Rapid U rapid University this is our office hours we have a gathering every last Thursday of the month so this is the last Thursday the month of July we’ll go ahead and get started um and head over to the next slide I’ll just go through an overview of basically what we’re going to do today uh again for those of you familiar with Rapid or or just getting familiar with rapid for the first time we’ll go through an
00:43
overview and maybe you’ll learn something just a little bit about the history and and payments and and really why fintech is so important for every business uh we’ll go and just share uh and dive into a use case and then we’ll get into an API example where today we’re going to do just a create payment request request signature uh that will show just to connect to the API and get started as a developer of course we’ll be working in Python today and then we’ll have a time just a general q a if anyone anyone has
01:22
questions of course you can comment in the video as well as head to community.rapid.net and just look at um you know what we uh we may be working on and if you have any questions feel free to just uh yeah comment in there welcome Mina I just wanted to go over this really this the statements simple you know every business accepts payments if whether you are uh you know brick and mortar you are online of course that is essential in today’s digital world but whether you are through a platform in a Marketplace
02:03
um or just building your own every business has a form of value exchange so this is so important to being a sustainable business to really doing business and serving your customers and what they’re going to invest in your business to get the product or service that you sell and so really again every business accepts payments the options and which the way you are a business accepts payments may vary and so really through what um platform you know the website uh the application in which a business a game uh anything is is located uh where
02:51
your customers now check out or whatever you’re building the users will check out uh in that space and then where are they located and what country are they coming from of course this matters for usability and a product that cares about locality you know of course languages but then also uh you know what is specific to that country and there may be regulations that may stop you one way or another to be able to do business this or build in that in that country the next thing is yeah who are your customers uh specifically and what they
03:33
what do they care about and what are they paying with what local payment methods are specific to uh who they are you know you are they using e-wallets are they do they use card do they use cash uh uh is it bank transfer and so that’s important when considering um your product or service that you’re really providing for your customers and how they’re going to pay for that and so let’s just look at quickly what this looks like okay in in online gaming specifically and so let’s say it you are a mobile
04:09
game I know that the previous slide with the girl was at a desktop but you know she could be a streamer and streaming uh an emulator uh in a mobile game right and how to make purchases on that mobile game um could be restricted to the phone and so you know of course of course if it’s Apple there’s Apple pay Google you know any Android there’s there’s Google pay you know Samsung pay um whatever payment Avenue you know could be just through that Marketplace but you know if you want to expand if that if
04:47
that business wants to expand I know many mobile games now are offering the same thing offering their their products through their own company website so you would uh click a link and redirect to their company website and then be able to pay and they’d have many more options uh to pay uh through that you know bank transfer and of course they would make more revenue on their own website and of course also there’s third party websites that you would go on to buy credits for the game on their website and so those
05:22
are different ways that need to be built out by the developer to accept payments and it definitely maybe different payments of course let’s say this this game is offered in 25 countries it means different payment methods uh and you know of course young adults they may be more inclined to e-wallet or you know just getting in their card but definitely not bank account maybe if they’re older uh certainly bank account uh and then of course you have virtual accounts and so just a few um payment methods that could be offered
06:00
here you also have cash as well um and so yeah the idea is really rapid uses one integration for all these options um and so let’s look at the just the timeline the evolution of before the internet of course there was offline payments it was a lot of brick and mortar but then became came on the internet of course card payments would sync a line and I started doing more payments online of course there was cloud and just more moving towards more mobility and mobile payments especially the next phase would be really this idea it’s not
06:44
rapid but just this idea of one integration for everything you need wherever uh payments goes um you would be able to integrate a company like a rapid which is a fintech as a service and then rapid would just kind of begin to accumulate and integrate everything that you need in the future and so again just this idea that the reality of one single point of integration and so you have multiple platforms rapid collect where you accept payments rapid disperse where you would pay out to any vendors any uh any customers even or any
07:28
specifically workers that you could contract and so that is even payments and payouts just one integration of course you have wallets which is the Hub of financial funds being held and you could even create an ecosystem within that transfers to one another of course there’s rapid issuing for cards and virtual accounts and then all these microservices around that which includes uh identity verification compliance Services which can take months to be able to go through of course FX support when you’re doing
08:07
Global Payments and then all the different payment categories and methods that are included with that Global developer Community uh to help one another uh building we have tons of resources I’ll share that in a little bit for the developer to build one thing we do have coming soon I’m excited about this actually we have it’s it’s um available in in postmen it’s open API so you can take a look at that definitely going to be shared soon and so this is really what it looks like as a developer you are the developer
08:46
building one integration with rapid and that includes so many different Services across different countries to do cross-border payments cross-border uh movement of funds Banks different complaints regulations certainly different payment methods you know FX rates and payment gateways you would have to all come under and really integrate but with rapid really there’s there’s one and so this is what it would look like on the outside on on kind of the interface of everything connected together so you would be the connector
09:26
with rapid the fintech as a service integration and the company that you’re building for company that you’re building um or really any clients that you take on um would include what you incorporate in your service um and so yes this really Global Network that is all together complex but Made Simple when you have that integration and so what is what is this idea of fintech well again every business accepts payments and so all these not all these companies are fintech I think only two the bottom two um but you know Ikea furniture Uber we
10:12
know rappy uh and so these basically all accept payments and really all all work with rapid and so they there’s an aspect to them where they need different payment methods to serve their customers as well as including payouts um to payout to different uh beneficiaries as well um I think actually Llano is a payroll company uh as well so they specifically focus on disburse on payouts pay safe is payments for entertainment um anything you know of course any concerts anything like that and so really what is this recipe to make money
11:02
really it’s just steps just simple steps and and what anyone would do to build out um you know with rapid and build this model and so you provide a service like all those companies like uber for your customers and as you begin to acquire users and grow of course there are more financial services that you can add wallet where they can store funds you know credit which you know probably is the first uh any with any payments uh of course adding bank transfer you know whatever you uh want to offer or whatever your customers use uh you can
11:45
incorporate that as you begin to grow in that area of course there could be uh added services for uh your customers we’ll talk a little bit about that in a little specifically looking at Uber but um of course this is becoming more of that this idea of the super app of adding one uh or with one app uh having multiple services and specifically financial services for your customer um and so Uber we all know Uber ride sharing uh you know you call a taxi call an Uber and pay for it but they also not only have wallets but they’re they’re
12:30
able to pay out to their drivers and so they specifically uh you know oversee this process and so their drivers can choose from weekly bank account deposits um just um instant deposits or daily deposits for a small fee of course uh Uber makes money off this as well as the company that Uber is using for these payouts and then they have wallet funds both the customers of uber as well as the drivers of uber they have both wallet funds they store with Uber so basically it’s like a bank um and then there’s even debit issuing
13:15
the issue cards they can use as well so with fintech with an integration this is made possible for a ride sharing company for Uber where they can focus on their services and then these financial services are provided um and so rapid itself as a developer Community just wanted to jump in this and share this next slide we have so many resources for developers to start building we have a community Forum that you can post any question and get help we have a lot of developers asking questions even just about integrating
13:56
that we help answer we have our GitHub repos I’ll go over one today our Postman collection that I mentioned earlier we have our of course our social Community um uh actually McKay here help helps oversee our docs um and documentation to help you integrate and understand each product we have meetups like this online as well as online tutorials and walkthroughs that you can look up and get help as well and so what does it look like to create something like rapid well this is uh of course when you look at or refer
14:39
back to the network of Global Services this is super super simplified uh you know actually putting together rapid has so many different microservices it’s very uh complicated in putting together over time that’s why it’s been done for the developer done for businesses but um this is really what was used to get started and so again super simplified but you know just built on AWS cloud and added you know with mongodb and MySQL and with its database and the front end is react um you see the hosted checkout or our
15:20
dashboard that’s made with react and then all built with node.js we have a lot of JavaScript developers here at rapid I just want to encourage you to get started uh really you can grab sign up and grab the API Keys which we’ll do today join the community and start building see what you can build um and yeah where you can offer payments for your customers for any clients that you are building for and so I’ll go through some python examples um I’ll just grab the API keys from the client portal set the environment
16:01
variables and then do the request and so we have uh I’ll just take a look at here this is our GitHub github.com rapid samples and what we’re going to look we have different repositories here you can use and look at to get started what I’m working on right here is this rapid API command line interface so this is built in Python there’s a quick guide to get started super easy and so you can just clone this and walk through that um it has the signature request here we’ll take a look at it and this is
16:47
basically the under authentication in our API reference guide uh this is basically this signature which is important on getting started it calculates for you uh this signature request super secure making sure all the requests API requests are secure um and then we’re going to do a payment under the payment object a create payment and so right here above there we go and then what you saw there below is basically the code that you would copy also in a different folder that would connect back to what we call this
17:37
utilities file um and so we can go ahead and get started right now I’m just I’ve already cloned the per repository I have it in my guide oops um and so here we have what you would see in GitHub with the utilities file there and I have it above as well you can see um there’s the access key and secret key and that uses environment variables as well as the URL endpoint here’s the base URL we’ll be sure to set that before we make the request and then we can see basically the timestamp being calculated the the signature header is
18:26
being calculated and then how this is put together for the API call and creating the headers and making the request and that’s going to call any files that you have for that and we’re going to do of course create payment for our request today and so the first thing I’m going to do is after I’ve cloned uh just create the virtual environment and I’m going to install requests and then so what I’m going to do now is grab my API key so I’m going to sign up you would sign up here in the client portal
19:02
and then it would show this your home page of course you’d be working in sandbox and you head to developers and then we have our our sandbox oh it was of course I was just um uh yeah logged out uh but um you would see that screen we also do have that on uh our documentation um and so you would go to actually developers here of course McKay has put this together you would log in and this is the screen that showed uh that was showing and then you just copy these uh the access key and secret key um and so once you have that you just do
19:47
export and then anything that you would want to call the environment so let’s just call it SP test in this case and so here is the short one is the access key and then the secret key is the long of course you don’t want to expose these I’m just working in sandbox the base URL so this is again working in sandbox sandbox API and so let’s go back to utilities so yes access key first right here uh the secret key right here and then the base URL if this was in production it’d just be api.rapid.net
20:30
but this is sandbox so it’s gonna be sandbox.api.net and so just press enter and then we’re just going to make sure this saved I’ll just do Echo SB test uh so then now you can see that this is calling these values and so we’ll add this at the end of every request and so we could see uh each of the requests um what we’re going to do now is create payment right here we can do create payment or sorry python3 create payment Dot py and up you can do Dash H and that’s going to tell you uh really what is needed here we see
21:16
again what is needed for this request and so we’re going to look at positional arguments uh sometimes it’ll have things for you to copy and paste but here we just have the file name so the file name will contain the body and so this will um basically if you go back to this link it’ll show you here in under create payment this body here so this is going to be something that you would save in a file and that would be a lot of them are already included for different payment methods and so that’s actually here
21:56
um so I just titled this or saved this as sgfast Bank dot payment would be included in the request body and um of course it’s a Singapore payment method currency SG this is the payment method type you could look at we did in a previous video previous live stream just listing out the different payment method types and so you would grab this and then just them out as well and so um this is going to this is the create payment file and this is going to use the this file to be able to create that and then so these are both included in
22:40
the repository as well as this one um for a payment method in Mexico bank transfer and so let’s go ahead and create this request and I’m just going to go ahead and copy and paste it in um again so python3 um create payment uh well create payment Dot py and then this is the file uh where it’s located and then the file name SB test Dash a if I scroll up we see the file is here and so it’s when more of the payment method types are in that file uh here’s our environment variables as well as working in sandbox a will include the
23:33
whole request so go ahead and send that and so now we see the full request here um and so we see a success original amount um 100 payment status as active and so here we would grab the basically the payment ID and then all the information for that as well we connected with the API um and that’s how you integrate yeah you can do it quickly with uh GitHub repository basically all all these different API calls the requests and you can build on that add new add new ones we’d love for you to test it out try it
24:16
out you know and even if you add new ones uh contribute uh we can even grab uh get the payment and so python three payment dot py dash H uh and so it’s going to call for the token the token remember was the payment ID and then the environment and so I’m going to go ahead and just do python3 get payment Ty uh include this token um payment ID here test and then Dash a if you want all and so yeah again that’s that is just retrieving the payment as well a few examples to get started to show you questions feel free to ask uh really
25:01
thank you for Gathering thank you for being here um I’ll open it up for any questions that anyone may have hi guys hey welcome I’m doing well thank you first of all for the whole introduction uh I think it was really helpful I just I was wondering since python is like one of the languages that everyone is using right now um are there any apis or any kind of documentation or material that I can use maybe for I don’t know any duration regarding Ruby Elixir something more you know something on that road
25:41
yes um and so uh we do have um uh basically um code samples not only in our documentation I don’t think we have Ruby up uh in our docs but we do have our community Forum um so I’ll go ahead and actually go here um in our docs yeah getting started we do have actually yeah we do have Ruby here um I will make sure actually to do a a tutorial for this in the future um but you can also connect uh specifically to our API you know I we used um the repo today um um but you could also uh connect pretty easily with this save this you know I’ve
26:39
done this with python I haven’t done it with Ruby yet but we do have a walk through uh I think it’s either up or should be put up uh pretty soon um um okay yeah actually we do have a uh tutorial coming soon that will give you a step-by-step uh with Ruby um and so thanks yeah thanks for asking um we’ll be sure to um I can send those over once those are up um to send you some more even more Ruby resources but yeah hey thank you no I need to appreciate that I can see the very different approaches there thank you yeah awesome yeah we love uh
27:27
more more uh developers working on different languages as well to um I know we just had someone write about um using go and so it was they actually added it here in the um accept payments um as well and so on this repo I’m and so yeah great question uh love it I love that um anyone else working in um working on different things um yeah if you had any questions Mina or uh thanks for joining yeah one thing I did say we do have uh an API open API with swagger Hub and Postman come in soon and so we’ll be
28:33
able to share more resources with that really help um with a lot of different projects going on as well I’m so I’m excited for that and two um but um yeah if there are no more questions we can close up and um yeah I just really want to thank everyone for watching thank you everyone for coming on and yeah just being here if there’s anything that you would love to see like for example uh yeah great question on Ruby we can do that certainly in the future um and walk through different signature requests
29:16
um really cool but yeah well and thanks again yeah Bureau thanks again Mina for joining yeah uh have a great day thank you yeah thanks for watching