Skip to content

Commit 2d394ca

Browse files
Add types for person and account token creation (stripe#49)
1 parent 46a7337 commit 2d394ca

File tree

4 files changed

+653
-0
lines changed

4 files changed

+653
-0
lines changed

tests/types/index.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,20 @@ stripe.createToken('bank_account', {
280280
account_holder_type: '',
281281
});
282282

283+
stripe.createToken('account', {
284+
individual: {
285+
first_name: 'Jane',
286+
last_name: 'Doe',
287+
},
288+
tos_shown_and_accepted: true,
289+
});
290+
291+
stripe.createToken('person', {
292+
first_name: 'Jane',
293+
last_name: 'Doe',
294+
relationship: {owner: true},
295+
});
296+
283297
const createSource = async () => {
284298
const {source, error} = await stripe.createSource(ibanElement, {
285299
type: 'sepa_debit',

0 commit comments

Comments
 (0)