Pi Payments and Pi SDK & Sandbox | Pi Workshop | Pi Network Payments 2021

Pi Payments and Pi SDK & Sandbox | Pi Workshop | Pi Network Payments

Pi Payments and Pi SDK & Sandbox

Welcome to another Hackathon Workshop video :). This week our Core Team designer Hakkyung will tell you the best way to use Pi Payments and Pi SDK and Sandbox while building your application. Tap the recordings on the home screen above to get familiar with how to #Buildpi2gether!

Pi SDK for Building

Pi SDK empowers designers to fabricate applications that coordinate with Pi money and Pi Platform. Follow the documentation to introduce and utilize the Pi SDK.

Pi Payment

Today we’re sending off the Pi App Engine for designers who need to fabricate and convey Pi applications – particularly Ecosystem applications – utilizing Pi Core Team’s adaptable waiter framework. Tap the Read More button in the home screen and look at our Hackathon studio recordings where two Core Team individuals will tell you the best way to use the Developer Portal and Pi App Engine.

The motivation behind this application is to remember all Pioneers for the environment working for Pi. The application desires to channel the inventiveness, aggregate insight, gifts and backing from our enormous local area of in excess of 10 million connected with Pioneers into delivering genuine applications, making utilities and building the biological system, which are essential to the achievement of Pi. Pi Brainstorm

Client SDK reference:

The config object passed to the init work acknowledges the accompanying keys:

rendition (string, required) – this is expected to guarantee similarity of your application with fresher SDK adaptations that could bring breaking changes (in which case breaking changes will be carried out under a higher variant number)
sandbox: (boolean, discretionary) – this empowers you to design the SDK to run in the sandbox.

Using the SDK in sandbox mode:

You may now run your application in the sandbox climate (https://sandbox.minepi.com), gave you’ve arranged an improvement URL in the designer entryway. Visit the designer entrance by opening develop.pi in the Pi Browser to arrange this and view your Sandbox URL.

Pi Payments:Confirmation

Pi.authenticate(scopes: Array, onIncompletePaymentFound: Function): Promise
Bring esteem back:

type AuthResult = {
accessToken: string,
client: {
uid: string,
username: string

Here is a breakdown of different keys accessible on the AuthResult[‘user’] object, and the extensions expected for those keys to be available:

Field Description Required Scope

uid An application neighborhood identifier for the client. This is explicit to this client, and this application. It will change assuming that the client repudiates the authorizations they conceded to your app. (none)
username The client’s Pi username. username


Signature: (installment: PaymentDTO) => void

Each time the client is confirmed, and when they attempt to begin another installment stream, the SDK makes sure that there is no deficient installment for this client. A deficient installment, in this unique circumstance, is an installment which has been submitted to the Pi blockchain, yet where status.developer_completed is still bogus (for example the engineer has not called the/complete endpoint on this installment).

Assuming that a deficient installment is found, this callback will be conjured with the installment’s PaymentDTO.

At the point when this callback is conjured, it is your obligation to finish the relating installment (you ought to no doubt send the installment DTO to your server, and cycle it as indicated by your business rationale). You’ll have to do as such before you can demand another installment from the client.

Make another installment:

type PaymentData = {
sum: number,
notice: string,
metadata: Object,

type PaymentCallbacks = {
onReadyForServerApproval: (paymentId: string) => void,
onReadyForServerCompletion: (paymentId: string, txid: string) => void,
onCancel: (paymentId: string) => void,
onError: (blunder: Error, installment?: PaymentDTO) => void,

Pi.createPayment(paymentData: PaymentData, callbacks: PaymentCallbacks): void;
The createPayment strategy takes two contention: paymentData and callbacks.

It will promptly begin the installment stream, which will open on top of your application, empowering the client to survey the installment and present the blockchain exchange, or reject it.

Caution: simultaneous installments:

While making another installment, assuming that there is now an open installment with your application for the current client:

  • On the off chance that the client has not yet made the blockchain exchange, the open installment will be dropped.
  • Assuming the client has as of now made the blockchain exchange, the new installment will be dismissed (onError will be called) and the onIncompletePaymentFound callback that was passed to the verify strategy will be called with the current installment (utilize this callback to determine what is going on, e.g by sending the past installment to your server for server-side fruition).

Read more:Telcoin Price Prediction 2021

Pi Payments: update

An update for this installment. This will be noticeable to the client in the installment affirmation page. Utilize this to momentarily clarify what the client is paying for.

Pi Payments: metadata

An inconsistent Javascript object that you can connect to this installment. This is for your own utilization. You should involve this item as a method for connecting this installment with your interior business rationale.


This is called when the installment identifier (paymentId) is gotten from Pi Servers.

Utilize this callback to send the paymentId to your backend for Server-Side Approval. Peruse more with regards to Server-Side Approval and the full installment stream in the committed Payments page.


Utilize this callback to send the blockchain exchange identifier (txid), alongside the paymentId to your backend for Server-Side Completion. Peruse more with regards to Server-Side Completion and the full installment stream in the committed Payments page.


Signature: (paymentId: string) => void

This is called when the installment is dropped (by a client activity, or automatically).

The installment might be dropped either on the grounds that the client physically dismissed it, or in light of some other hindering circumstance: the client needs more assets for them to make the installment, another installment has been made simultaneously…


Signature: (blunder: Error, installment?: PaymentDTO) => void

This is called when a blunder happens and the installment can’t be made. On the off chance that the installment has been made, the subsequent contention will be available and you might utilize it to explore the mistake. If not, just the principal contention will be given.

What I can pay with pi?

Pi Pay is a Cambodian portable wallet sent off in 2017. Clients can stack reserves through bank move, portable banking applications and money stores at taking an interest banks and retailers. They can utilize the stacked assets to purchase Pi Payments broadcast appointment, travel or occasion tickets, request food, book taxis, take care of bills and move cash.

How do you buy Pi money?

Go to CoinMarketCap and quest for Pi INU. Tap on the button named “Market” close to Pi Payments the value graph. In this view, you will see a total rundown of spots you can buy Pi INU too as the monetary standards you can use to get it.

Is Pi worth the money?

Notwithstanding a few clients proposing that a solitary Pi could be worth anyplace somewhere in the range of $10 and $100 the present moment, there’s positively no Pi Payments proof to back this up, and the group behind the Pi Network hasn’t delivered a lot of definite data on the task’s points of interest.

Does PI have a future?

Given the quantity of clients who Pi Payments have joined to mine the coin, forecasters like Changelly foresee that the PI cost could ascend to $1 after it begins exchanging on digital currency trades. Be that as it may, the coin has not been sent off. It’s Pi Payments difficult to anticipate its future with any level of precision.

How do I convert my PI coins to cash?

As of now, Pi can’t be changed over into cash. It is made by the Standford graduates and is presently in testing stage. When it goes into Mainnet, then, at that point, Pi Payments we might get to change over it into cash. At present, even the worth of Pi isn’t known.

Leave a Comment

%d bloggers like this: