Skip to content

Instantly share code, notes, and snippets.

@thanhtungdp
Created January 4, 2020 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thanhtungdp/d110aa221de415da43a6db36e3ce4fe2 to your computer and use it in GitHub Desktop.
Save thanhtungdp/d110aa221de415da43a6db36e3ce4fe2 to your computer and use it in GitHub Desktop.
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