HELP! Using REST for an API belonging to a payment processor

PoorExcuse4aWebmaster

Banned - Abuse of Staff
Joined
Sep 9, 2021
Messages
154
Reaction score
158
I've been google searching for hours. So I'm hoping that someone knows of a simple tutorial where I can get started on learning to use REST.
 
Maybe you should specify what you want to achieve

Being able to send http requests is crucial - so maybe start there?
 
Do you know
I've been google searching for hours. So I'm hoping that someone knows of a simple tutorial where I can get started on learning to use REST.
Do you know any programming language. Rest APIs are pretty much useless without a way to programmatically make http requests.

There's nothing much to learn about it. All you do is hit an http request on a certain endpoint optionally with some (usually json) payload and auth token.

if you can be a bit more specific about what you are trying to do then we can be more helpful.
 
Maybe you should specify what you want to achieve

Being able to send http requests is crucial - so maybe start there?


This is my problem.

The payment processor for our subscription based site has an API that we need to use. Only they use something called ** REST ** and not only is this the first time I've heard of this.... It's also all new to me so I'm really in the dark on this. The payment processor's documentation is really poor.

I figure the first thing I need to learn is ** What is REST** and how it's used. Then I need to figure out how to use it.

I've got a good handle on html, CSS, PHP and Java so I'm not totally useless but I am slow to figure things out.
 
I figure the first thing I need to learn is ** What is REST** and how it's used
All REST is is an "API architecture". In simple words, it's a way to get data from a service's database that it makes available to its users over the internet.

Heres a course on freecodecamp.

Here's how to do it with php
https://www.google.com/amp/s/weichie.com/blog/curl-api-calls-with-php/amp/
P.s - do you know what JSON and HTTP verbs like GET,POST, PUT, DELETE are? If not. You will want to learn that too.
 
Heres a course on freecodecamp.
Thanks. I just quit everything to watch all of this. As I think it's pretty essential for my skill set too :)
 
The payment processor for our subscription based site has an API that we need to use. Only they use something called ** REST ** and not only is this the first time I've heard of this.... It's also all new to me so I'm really in the dark on this. The payment processor's documentation is really poor.

I figure the first thing I need to learn is ** What is REST** and how it's used. Then I need to figure out how to use it.

I've got a good handle on html, CSS, PHP and Java so I'm not totally useless but I am slow to figure things out.

If you're not familiar at all with REST API's, my advice is to download Postman and start experimenting with it first. You will also be able to understand the basic notions behind REST API's.
"Play" in Postman with the HTTP requests that need to be sent to/ received from your Payment Processor API. This way you will understand the logic behind your payment processor's API. Then, move on to designing the app that will work with these requests in production. You can design it in your favorite programming language: Java, C#, Python, Javascript etc

Here it is a video that will help you in understanding Postman & the basic API's knowledge:
 
All REST is is an "API architecture". In simple words, it's a way to get data from a service's database that it makes available to its users over the internet.

Heres a course on freecodecamp.

Here's how to do it with php
https://www.google.com/amp/s/weichie.com/blog/curl-api-calls-with-php/amp/
P.s - do you know what JSON and HTTP verbs like GET,POST, PUT, DELETE are? If not. You will want to learn that too.

This is all new to me. So I know none of the verbs and in fact... This is the first time I've heard of *verbs*

Big thank you for the video

I remember you mentioning about learning Php and Wordpress. If you found that useful, maybe you'd find this useful too.

https://deliciousbrains.com/php-curl-how-wordpress-makes-http-requests/

Yup... I'm having all kinds of problems
Thank you !!

Look at PSR
Ex:
https://datatracker.ietf.org/doc/draft-irtf-t2trg-rest-iot/

Thank you !!!

If you're not familiar at all with REST API's, my advice is to download Postman and start experimenting with it first. You will also be able to understand the basic notions behind REST API's.
"Play" in Postman with the HTTP requests that need to be sent to/ received from your Payment Processor API. This way you will understand the logic behind your payment processor's API. Then, move on to designing the app that will work with these requests in production. You can design it in your favorite programming language: Java, C#, Python, Javascript etc

Here it is a video that will help you in understanding Postman & the basic API's knowledge:

Thank you !!!
 
I found a good way is to use postman to execute calls to the API. Once you have them working in the tool, there is an option to export the call as code in almost every language. So you get working code for your API straight away. Then you can play around with it
 
what is the programming lang you use to consume the rest api? based on that your payment proccess may be providing some wrapper for your lang
 
Back
Top