增加usdt, usdc购买ceg的功能
This commit is contained in:
parent
285b3244c5
commit
ba15778dfc
File diff suppressed because one or more lines are too long
@ -507,6 +507,21 @@ function nftMallBuy(funId, currency, addresses, ids, amounts, values, signature,
|
|||||||
|
|
||||||
// end of NFT mall
|
// end of NFT mall
|
||||||
|
|
||||||
|
// begin of token mall
|
||||||
|
// buy ceg with usdt, usdc
|
||||||
|
function buyTokenWithErc20(funId, currency, amount, gas, estimate) {
|
||||||
|
promiseCb(
|
||||||
|
funId,
|
||||||
|
jc.wallet.jcStandard.buyTokenWithErc20({
|
||||||
|
currency,
|
||||||
|
amount,
|
||||||
|
estimate,
|
||||||
|
}),
|
||||||
|
(v) => JSON.stringify(v)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
// begin of token mall
|
||||||
|
|
||||||
// begin of google pay
|
// begin of google pay
|
||||||
function queryGoogleProducts(funId, productIds) {
|
function queryGoogleProducts(funId, productIds) {
|
||||||
let ids = JSON.parse(productIds);
|
let ids = JSON.parse(productIds);
|
||||||
@ -523,3 +538,14 @@ function beginGoogleBuy(funId, productId, orderId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// end of google pay
|
// end of google pay
|
||||||
|
|
||||||
|
// begin of iOS in-app pay
|
||||||
|
function queryIOSProducts(funId, productIds) {
|
||||||
|
let ids = JSON.parse(productIds);
|
||||||
|
console.log('queryIOSProducts:: ' + productIds);
|
||||||
|
promiseCb(funId, jc.wallet.paySvr.queryIOSProducts(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
function beginAppleBuy(funId, productId, orderId) {
|
||||||
|
promiseCb(funId, jc.wallet.paySvr.beginIOSPurchase(productId, orderId));
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user