Created
January 4, 2020 10:58
-
-
Save thanhtungdp/d110aa221de415da43a6db36e3ce4fe2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
client.processTrip({ | |
idTrip: 'trip_id_' + Math.floor(Date.now() / 1000).toString(), | |
idDriver: 'id_driver_' + Math.floor(Date.now() / 1000).toString(), | |
idGuess: 'id_guess_' + Math.floor(Date.now() / 1000).toString(), | |
amount: 15000, | |
balanceType: 1, | |
appMode: 'dev', | |
platform: 'IOS' | |
}, (error, response) => { | |
if (!error) { | |
console.log("Response : ", response) | |
} else { | |
console.log("Error:", error.message); | |
} | |
}); | |
client.createPaymentOrder({ | |
debitAccountId: 'id_debit_' + Math.floor(Date.now() / 1000).toString(), | |
creditAccountId: 'id_credit_' + Math.floor(Date.now() / 1000).toString(), | |
note: 'THANH TOAN CUOC XE', | |
amount: 15000, | |
balanceType: 1, | |
currency: 1, | |
appMode: "dev" | |
}, (err, response) => { | |
if (!err) { | |
console.log(response) | |
} else { | |
console.log(err) | |
} | |
}) | |
client.saveBillingLogDriver({ | |
idDriver: 'id_driver_' + Math.floor(Date.now() / 1000).toString(), | |
idGuess: 'id_guess_' + Math.floor(Date.now() / 1000).toString(), | |
amount: 15000, | |
balanceType: 1, | |
note: 'THANH TOAN CUOC XE', | |
appMode: 'dev', | |
platform: 'IOS', | |
paymentOrderId: 'payment_order_id', | |
currency: 1, | |
}, (error, response) => { | |
if (error) { | |
console.log(error) | |
} else { | |
console.log(response) | |
} | |
}); | |
client.saveBillingLogGuess({ | |
idDriver: 'id_driver_' + Math.floor(Date.now() / 1000).toString(), | |
idGuess: 'id_guess_' + Math.floor(Date.now() / 1000).toString(), | |
amount: 15000, | |
balanceType: 1, | |
note: 'THANH TOAN CUOC XE', | |
appMode: 'dev', | |
platform: 'IOS', | |
paymentOrderId: 'payment_order_id', | |
currency: 1, | |
}, (error, response) => { | |
if (error) { | |
console.log(error) | |
} else { | |
console.log(response) | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment