Skip to content
This repository has been archived by the owner on Feb 10, 2020. It is now read-only.

fix: maxlength of vendorfield #1

Merged
merged 5 commits into from
Dec 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ module.exports = class ArkPay extends Emittery {
*/
vendorField (value) {
this.data.transfer.vendorField = value

if (value.length > 64) throw new Error('The given value exceeds the maximum length of 64 characters.')

return this
}
Expand Down