Cooldude100
Coder
Hello. I am making a money transferring software like Venmo or PayPal and I was wandering if anyone could help me get the code for the transactions. I am using SQLite and not flask. If anyone can help, please do.
By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!Hi there,Hello. I am making a money transferring software like Venmo or PayPal and I was wandering if anyone could help me get the code for the transactions. I am using SQLite and not flask. If anyone can help, please do.
Hi there,
Can you elaborate on the purpose of this money transfer app is? Just want to make sure everyone is on the same page here.
Many services provide the use of their applications so that developers or anyone wanting to make an application can use said service. An example of this is PayPal. The way this is done is with the use of API tokens. So an API token, is a string made up of a bunch of letters, numbers, and sometimes even symbols. Best way to think about this is comparing a service to a hotel. A hotel provides rooms so that people can have a temporary place to rest and sleep. Every guest of the hotel is provided a keycard that will only open the room the guest is assigned to. This is essentially what Paypal, for example, is. Paypal, in our situation, is the hotel, provides the services that developers/people want to use. Each user is provided with a keycard, or API token, so that Paypal can identify the user and allow them to use the service.This is a money transfer app called Fruit Surf. It allows you to make an account for free and with that account you can transfer money. I have found an America first Api but it has this thing called an "Api token" I don't know how to put this into python.
Hello. When I say I am using python I am actually using Py script in html. Though everytime I try to import something the terminal popup doesn't show up. Do you have any idea what is happening?Many services provide the use of their applications so that developers or anyone wanting to make an application can use said service. An example of this is PayPal. The way this is done is with the use of API tokens. So an API token, is a string made up of a bunch of letters, numbers, and sometimes even symbols. Best way to think about this is comparing a service to a hotel. A hotel provides rooms so that people can have a temporary place to rest and sleep. Every guest of the hotel is provided a keycard that will only open the room the guest is assigned to. This is essentially what Paypal, for example, is. Paypal, in our situation, is the hotel, provides the services that developers/people want to use. Each user is provided with a keycard, or API token, so that Paypal can identify the user and allow them to use the service.
Now, in your case, you would have to read the service documentation and see how to obtain your own token, and look to see how to apply the token in the language you are using, in this case, python.
Judging from what I just saw in one of your duplicate posts... it seems you may have to indent a line or two... Haven't had the opportunity to work with pyscript, but given the fact it is based on python, I am going to go ahead and make a safe bet that the issue is in the if statement. If you correct that, and it still does not work, you may have to look at what you are actually passing in to the execute command for your database connectionHello. When I say I am using python I am actually using Py script in html. Though everytime I try to import something the terminal popup doesn't show up. Do you have any idea what is happening?
I am sorry but I am a beginner coder and do not know how indents work. Here is the Py script code:Judging from what I just saw in one of your duplicate posts... it seems you may have to indent a line or two... Haven't had the opportunity to work with pyscript, but given the fact it is based on python, I am going to go ahead and make a safe bet that the issue is in the if statement. If you correct that, and it still does not work, you may have to look at what you are actually passing in to the execute command for your database connection
<py-script>
import.requests
access_token = ''
api_url = 'https://affapiv2.docs.apiary.io/#introduction/api-token'
#
headers = {
'Authorization': f'Bearer {access_token}',
'Content-Type': 'application/json'
}
response = requests.get(api_url, headers=headers)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Request failed with status code: {response.status_code}")
print(response.text)
</py-script>
A few things:I am sorry but I am a beginner coder and do not know how indents work. Here is the Py script code:
Tell me if there is any indents. And if you can, Fix the code pleaseCode:<py-script> import.requests access_token = '' api_url = 'https://affapiv2.docs.apiary.io/#introduction/api-token' # headers = { 'Authorization': f'Bearer {access_token}', 'Content-Type': 'application/json' } response = requests.get(api_url, headers=headers) if response.status_code == 200: data = response.json() print(data) else: print(f"Request failed with status code: {response.status_code}") print(response.text) </py-script>
All Tokens must be requested from American First Finance for each location that will use the API.
Code Forum is a community platform where coding enthusiasts can connect with other developers, engage in discussions, ask for help, and share their knowledge with a supportive community. It's a perfect place to improve your coding skills and to find a community of like-minded individuals who share your passion for coding.
We use essential cookies to make this site work, and optional cookies to enhance your experience.