#Mau

1 messages · Page 1 of 1 (latest)

fleet palmBOT
steady vortex
sudden sphinx
#

how can I make the customer/client to accept the terms and conditions for stripe through my app?

#

im asking for the information needed for the standard account :

#

const createStripeAccount = async (email) => {
try {
const account = await stripe.accounts.create({
type: 'standard',
email: email,
country: 'US',
business_type: 'individual',
individual: {
first_name: 'John',
last_name: 'Doe',
dob: {
day: 1,
month: 1,
year: 1980
},
address: {
line1: '123 Main St',
city: 'Anytown',
state: 'CA',
postal_code: '12345',
country: 'US'
},
email: email,
phone: '+14155552671',
ssn_last_4: '1234',
},
business_profile: {
url: 'https://www.cloche.menu/',
mcc: '5734',
product_description: 'A cool product.',
},
// capabilities: {
// card_payments: { requested: true },
// transfers: { requested: true },
// },
external_account: {
object: 'bank_account',
country: 'US',
currency: 'usd',
routing_number: '110000000',
account_number: '000123456789',
},
// tos_acceptance: {
// date: Math.floor(Date.now() / 1000),
// ip: '8.8.8.8' // Replace with user's IP
// }
});

        console.log('Account created', account);
        return account;
    } catch (error) {
        console.error('Error creating Stripe account', error);
        throw error;
    }
}
#

after I capture all the information needed I just need them to accept the terms and conditions but I have no clue how to do that

steady vortex
#

What happens when you pass tos_acceptance above?