Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

How to transfer visa and Mastercard with sqlite

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.
 
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.
 
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.

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.
 
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.
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.
 
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.
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?
 
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?
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
 
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
I am sorry but I am a beginner coder and do not know how indents work. Here is the Py script code:

Code:
<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>
Tell me if there is any indents. And if you can, Fix the code please
 
Last edited by a moderator:
I am sorry but I am a beginner coder and do not know how indents work. Here is the Py script code:

Code:
<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>
Tell me if there is any indents. And if you can, Fix the code please
A few things:
1) For your application's safety and security, never post any api tokens/keys/passwords/etc...
2) That is not the api url... the api url is the url that is used to access the services. That is where the api token will be verified.
3) speaking of api token.. not sure if you actually read the section on api tokens... but,
Code:
All Tokens must be requested from American First Finance for each location that will use the API.
 

Latest posts

Buy us a coffee!

Back
Top Bottom