Tiền kỹ thuật số trên chuỗi khối Block chain .và thanh toán xuyên biên giới sẽ là xu thế tất yếu của thế giới các tài sản và dòng tiền truyền thống đang dần phân tán đổ vào hệ thống tiền mã hóa ,tiền số Block chain ! Và Pi coin là một trong số đó!

Gọi ngay

Zalo

// Authenticate the user, and get permission to request payments from them: const scopes = ['payments']; // Read more about this callback in the SDK reference: function onIncompletePaymentFound(payment) { /* ... */ }; Pi.authenticate(scopes, onIncompletePaymentFound).then(function(auth) { console.log(`Hi there! You're ready to make payments!`); }).catch(function(error) { console.error(error); }); Pi.createPayment({ // Amount of π to be paid: amount: 3.14, // An explanation of the payment - will be shown to the user: memo: "...", // e.g: "Digital kitten #1234", // An arbitrary developer-provided metadata object - for your own usage: metadata: { /* ... */ }, // e.g: { kittenId: 1234 } }, { // Callbacks you need to implement - read more about those in the detailed docs linked below: onReadyForServerApproval: function(paymentId) { /* ... */ }, onReadyForServerCompletion: function(paymentId, txid) { /* ... */ }, onCancel: function(paymentId) { /* ... */ }, onError: function(error, payment) { /* ... */ }, });diy class- zals-fb~> «div class-"phone DivFixed*>