getWithdrawInfoV2
Handles withdrawal requests from the user’s account. It sends a withdrawal to the chosen payment method and returns the result of the request. It is used when users withdraw funds from their balance and to show whether the withdrawal was accepted or rejected.
Documentation
Try it now
Request parameters:
Call example:
getWithdrawInfoV2({
amount: '10',
service: 10742,
payee: {
forProduct: 'casino',
statusUrls: {
cancel: 'http://localhost:3000/en?section=account&menu=payment&nested=withdraw&method=VivaWallet',
fail: 'http://localhost:3000/en?section=account&menu=payment&nested=withdraw&method=VivaWallet&status=fail',
pending: 'http://localhost:3000/en?section=account&menu=payment&nested=withdraw&method=VivaWallet&status=pending',
success: 'http://localhost:3000/en?section=account&menu=payment&nested=withdraw&method=VivaWallet&status=success&amount=10'
}
}
})Response examples:
{
code: 0,
rid: 1232676999,
data: {
name: 'VivaWallet',
paymentId: '10742',
status: 'ok',
message: '',
action: '',
method: 'formDraw',
fields: [
[
[{
type: 'select',
label: 'Cards',
className: '',
customAttrs: [],
name: 'WalletId',
options: [{
value: 'ab35fb0a-bf2d-4ec3-ad0e-ffd4df661b72',
label: '516794XXXXXX8832'
}],
rules: {
required: {
message: 'Card is required'
}
}
}, {
type: 'hidden',
label: 'Amount',
className: '',
customAttrs: [],
name: 'amount',
value: '10',
rules: []
}, {
type: 'submit',
label: 'Do Withdraw',
className: '',
customAttrs: [],
name: ''
}]
]
]
}
}