Skip to content

Commit

Permalink
Only prefill id_number if the prefill option is enabled (#108)
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Aguirre Gonzalez <95381655+jorgea-stripe@users.noreply.github.com>
  • Loading branch information
jorgea-stripe committed Apr 9, 2024
1 parent 657507b commit c8f5f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/routes/stripe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,10 @@ app.post('/create-account', userRequired, async (req, res) => {
first_name: user.firstName || undefined,
last_name: user.lastName || undefined,
email: user.email || undefined,
id_number: '000000000',
// Prefill individual information
...(shouldPrefill
? {
id_number: '000000000',
address: {
line1: 'address_full_match',
city: 'South San Francisco',
Expand Down

0 comments on commit c8f5f60

Please sign in to comment.