GithubHelp home page GithubHelp logo

Comments (35)

rockcesar avatar rockcesar commented on August 16, 2024 2

Check this server side PHP example:

https://github.com/rockcesar/PiNetworkDevelopments/blob/master/server1.php

from pi-platform-docs.

0205miss avatar 0205miss commented on August 16, 2024 1

I can post successfully....By using python request package

from pi-platform-docs.

dannybutterfield1880 avatar dannybutterfield1880 commented on August 16, 2024 1

basically the api.js file is creating endpoints on your server side which you can then call from your client side using POST https://your-api-url/api/v1/payments/approve and you would need to pass paymentId to the body of this request

from pi-platform-docs.

rockcesar avatar rockcesar commented on August 16, 2024 1

There is a Python3 Server side example, made in Odoo, that is almost pure Python3:

https://github.com/rockcesar/PiNetworkDevelopments/blob/master/website_pinetwork_odoo/controllers/main.py

from pi-platform-docs.

Sten435 avatar Sten435 commented on August 16, 2024 1

If anyone has questions about the Pi Network SDK or other general coding questions regarding anything related to the Pi Network, then you ask them in the Pi Network Developer Portal: https://discord.gg/qM3fXPq4fK
It is a faster way to connect with people, instead of contact people through email, or through the Pi chat app, which can be a real pain.

This is not an AD, this is an informative post for people who may need a communication server for a question.

from pi-platform-docs.

n37r09u3 avatar n37r09u3 commented on August 16, 2024

same error

from pi-platform-docs.

NadeemDxb avatar NadeemDxb commented on August 16, 2024

Yes it's true

from pi-platform-docs.

Sten435 avatar Sten435 commented on August 16, 2024

I can post successfully....By using python request package

@aszasz1234 Can you share your output with us?

And possibly your code ?

from pi-platform-docs.

Sten435 avatar Sten435 commented on August 16, 2024

I tried it with PHP and JS both give me the error.

from pi-platform-docs.

0205miss avatar 0205miss commented on August 16, 2024

In python:
requests.post(url,
headers={'Authorization':'Key APIKEY'})

from pi-platform-docs.

Sten435 avatar Sten435 commented on August 16, 2024

In python:
requests.post(url,
headers={'Authorization':'Key APIKEY'})

What response do you get?

from pi-platform-docs.

0205miss avatar 0205miss commented on August 16, 2024

In python:
requests.post(url,
headers={'Authorization':'Key APIKEY'})

What response do you get?

Same as the document under the platform_api page

from pi-platform-docs.

vcyk avatar vcyk commented on August 16, 2024

In python:
requests.post(url,
headers={'Authorization':'Key APIKEY'})

What response do you get?

Same as the document under the platform_api page

Is url with or without colon after /payments/

from pi-platform-docs.

vcyk avatar vcyk commented on August 16, 2024

I tried it with PHP and JS both give me the error.

Has the error been resolved ?

from pi-platform-docs.

Sten435 avatar Sten435 commented on August 16, 2024

@vcyk its without the :

from pi-platform-docs.

Sten435 avatar Sten435 commented on August 16, 2024

I tried it with PHP and JS both give me the error.

Has the error been resolved ?

The error has not been resolved.

Still waiting on a reply from @aurelienshz

from pi-platform-docs.

dannybutterfield1880 avatar dannybutterfield1880 commented on August 16, 2024

@Sten435 I've got everything working I'll share a guide in a couple of hours using JavaScript (node), express and axios for the request

from pi-platform-docs.

Sten435 avatar Sten435 commented on August 16, 2024

@Sten435 I've got everything working I'll share a guide in a couple of hours using JavaScript (node), express and axios for the request

Thanks, bud πŸ‘

from pi-platform-docs.

Sten435 avatar Sten435 commented on August 16, 2024

@Sten435 I've got everything working I'll share a guide in a couple of hours using JavaScript (node), express and axios for the request

So are all the endpoints working correctly?

Greetings
Stan P

from pi-platform-docs.

dannybutterfield1880 avatar dannybutterfield1880 commented on August 16, 2024

FirePi/functions/pi-network have a look at this directory I am working on. It is not finished yet and is taking some time. But when its finished this will be a full base code to build a firebase + Pi network + react app. I will extract the Pi network parts of this code and make more simple server side example once I have finished this set up.

from pi-platform-docs.

dannybutterfield1880 avatar dannybutterfield1880 commented on August 16, 2024

The way it is set up we would only be required to modify the handler.js methods to do something with the response from pi's servers. I am writing a detailed guide but will take some time

from pi-platform-docs.

dannybutterfield1880 avatar dannybutterfield1880 commented on August 16, 2024

I am also now getting this error in my second project FirePi see this issue #36

Not sure why it worked once but not again

from pi-platform-docs.

dannybutterfield1880 avatar dannybutterfield1880 commented on August 16, 2024

@Sten435 I have a working version now at https://pi-services-f7f6f--uat-6nq6u5qi.web.app/#/ the payment process will start on page load and it completed successfully. Now its all working ill sort a proper guide out. Just didn't want to misinform people

from pi-platform-docs.

Sten435 avatar Sten435 commented on August 16, 2024

@dannybutterfield1880 your application not working on my end.

Screenshot_20210702-151242.jpg

from pi-platform-docs.

dannybutterfield1880 avatar dannybutterfield1880 commented on August 16, 2024

@Sten435 that is strange. Try firepi-react.web.app I've also just got that working. Maybe it's an issue with your Pi browser app have you tried reinstalling or using a different device?

from pi-platform-docs.

dannybutterfield1880 avatar dannybutterfield1880 commented on August 16, 2024

Are you using a VPN, tunnelling or proxy or anything like that?

from pi-platform-docs.

Sten435 avatar Sten435 commented on August 16, 2024

Thanks, i will try reinstaling.

from pi-platform-docs.

Sten435 avatar Sten435 commented on August 16, 2024

Are you using a VPN, tunnelling or proxy or anything like that?

No im not using tunnels or vpn or proxy.

from pi-platform-docs.

NadeemDxb avatar NadeemDxb commented on August 16, 2024

It's not working URL:

from pi-platform-docs.

dannybutterfield1880 avatar dannybutterfield1880 commented on August 16, 2024

@NadeemDxb

[https://firepi-react.web.app](Fire Pi)

Not sure if the link will work as I'm in my phone

from pi-platform-docs.

dannybutterfield1880 avatar dannybutterfield1880 commented on August 16, 2024

@Sten435 I'm not sure about that error I haven't come across it yet just fishing for ideas of why it may be

from pi-platform-docs.

dannybutterfield1880 avatar dannybutterfield1880 commented on August 16, 2024

@NadeemDxb Just realised the github link doesn't work, do you mean that?

https://github.com/dannybutterfield1880/fire-pi-base

from pi-platform-docs.

Sten435 avatar Sten435 commented on August 16, 2024

As of now 06/07 This bug seems fixed, lat me know if anywane has this error.

Il close this issue for now.

from pi-platform-docs.

81888 avatar 81888 commented on August 16, 2024

This problem has not been solved.

from pi-platform-docs.

hklee93 avatar hklee93 commented on August 16, 2024

@81888 what's the issue you're experiencing?

from pi-platform-docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.