Bphone A50 – Thanh toán bằng Pi

π 0,290

Điện thoại Bphone A50 nổi bật với thiết kế thời thượng, dung lượng pin khủng 5000mAh và được trang bị chip Mediatek Helio G85 chắc chắn sẽ là lựa chọn dành cho bạn nếu bạn đang tìm kiếm sản phẩm điện thoại thông minh hiệu năng ổn định với giá thành hợp lý.

Liên hệ trao đổi thông tin:

Gọi ngayFacebook
Danh mục: ,
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*>