https://l.facebook.com/l.php?u=https%3A%2F%2Fyoutu.be%2FUVgUe7fNS9I%3Ffbclid%3DIwAR2LBu1qlBwdweUc0XATqJf_PZax70NooqrUhjHFn_WGtiNsZQL6fXHjXBw&h=AT3nneDiDusaXcTSaHQjndPpZIvVNazojbKZ-kyIDt3ey6_64DOWOIyyLuIGZxZBSLZ0rnfVyo_2Hl1cnrSnz4kTi_k0-kxzXhz8FVQckQTp95Wg8VnTyQeTccJWxnbm97oDPI3HkDITHQtJ9k0Z&__tn__=-UK-R&c[0]=AT16YKNIONMRO_0YzdMMGSaAnSx-lKpAt-PbzoMYUEl4R21KyqWvbgV5rkjdwKuow_Fqyqnd6nlgZN4_rt2rcCAVq5oYn9WQ1y_SW9Ra5W83d1ZU45C1h_4R9kFr0G9kcYDdA2YgbZDd1YPhXE-YcaS0EZhH9M0N_VpdHMJq8p9BILl6NliZxdi3utXYYcvs-_LJTj7AvcBFUcGzMTxsHw

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