# wx.chooseInvoiceTitle(Object object)
Start from base library version 1.5.0. Please remaining backward compatible.
with Promise style call: Supported
Mini Program plugin: Support, need to Mini Program base library version no less than 2.16.1
Select the user's invoice header. The current Mini Program must be associated with a Official Account message template, And this Official Account message template It's done.WeChat AuthenticationTo call the chooseInvoiceTitle。
# parameter
# Object object
attribute | type | Default values | Required | Introductions |
---|---|---|---|---|
success | function | no | Interface calls the successful callback function | |
fail | function | no | Interface calls failed callback functions | |
complete | function | no | Interface calls the end of the callback function (call success or failure will be executed) |
# object.success callback
# parameter
# Object res
attribute | type | Introductions |
---|---|---|
type | string | Header Type |
title | string | Header name |
taxNumber | string | Tax Number Payable |
companyAddress | string | Unit address |
telephone | string | Phone number |
bankName | string | Bank name |
bankAccount | string | Bank account |
errMsg | string | Error message |
res.type Legal value
value | Introductions | Minimum version |
---|---|---|
0 | unit | |
1 | personal |
# sample code
wx.chooseInvoiceTitle({
success(res) {}
})