Comments (35)
Check this server side PHP example:
https://github.com/rockcesar/PiNetworkDevelopments/blob/master/server1.php
from pi-platform-docs.
I can post successfully....By using python request package
from pi-platform-docs.
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.
There is a Python3 Server side example, made in Odoo, that is almost pure Python3:
from pi-platform-docs.
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.
same error
from pi-platform-docs.
Yes it's true
from pi-platform-docs.
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.
I tried it with PHP and JS both give me the error.
from pi-platform-docs.
In python:
requests.post(url,
headers={'Authorization':'Key APIKEY'})
from pi-platform-docs.
In python:
requests.post(url,
headers={'Authorization':'Key APIKEY'})
What response do you get?
from pi-platform-docs.
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.
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.
I tried it with PHP and JS both give me the error.
Has the error been resolved ?
from pi-platform-docs.
@vcyk its without the :
from pi-platform-docs.
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.
@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 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 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.
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.
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.
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.
@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.
@dannybutterfield1880 your application not working on my end.
from pi-platform-docs.
@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.
Are you using a VPN, tunnelling or proxy or anything like that?
from pi-platform-docs.
Thanks, i will try reinstaling.
from pi-platform-docs.
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.
It's not working URL:
from pi-platform-docs.
[https://firepi-react.web.app](Fire Pi)
Not sure if the link will work as I'm in my phone
from pi-platform-docs.
@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.
@NadeemDxb Just realised the github link doesn't work, do you mean that?
https://github.com/dannybutterfield1880/fire-pi-base
from pi-platform-docs.
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.
This problem has not been solved.
from pi-platform-docs.
@81888 what's the issue you're experiencing?
from pi-platform-docs.
Related Issues (20)
- KYC HOT 1
- L HOT 1
- KYC new HOT 4
- Pi HOT 4
- Reklam
- Ψ§ΩΩΩ Ω HOT 1
- GBQFO4C33WGOYC7A4CVPP2KJ2LABHYURTHTHFF6CT6E5CQ5ZQJBMUEGY HOT 8
- New Issue
- Thank you HOT 1
- Ju HOT 1
- Test
- Expectativa HOT 1
- [](url)[![.github/workflows/update-apis.yaml](https://github.com/a2425rdl/google-api-nodejs-client/actions/workflows/update-apis.yaml/badge.svg)](https://github.com/a2425rdl/google-api-nodejs-client/actions/workflows/update-apis.yaml)
- Kyc HOT 1
- PI, NODE'S, Stellar, Communication Portal
- Not sure whsts next. Step9 in dev mode
- ζ ι’ο½ζδΊ€P R
- How can I integrate pi payment and user authentication into flutter app HOT 2
- Raspberry pi
- NASIR Javed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pi-platform-docs.