#deepakkumarwizniche_67815

1 messages · Page 1 of 1 (latest)

violet mirageBOT
severe furnace
#

await this.stripeObj.confirmSetup(this.clientSecret, confirmParams)

#

What's wrong here?

gloomy frigate
severe furnace
#

i am doing the same thing

#

Yes I am

gloomy frigate
#

Well in the line you showed me above, you pass two params

#

Not 1 object which is what's expected

severe furnace
#

stripe.confirmCardSetup(clientSecret,data?,options?)

#

I am using this one

gloomy frigate
#

Yeah you should pass in an object like what's done in the example I linked

#

Objects are wrapped with {} in javascript

severe furnace
#

I am

gloomy frigate
#

Send your code then

#

Because the example you just shared doesn't do that

severe furnace
#

ohh

#

let confirmParams = {
payment_method: {
card: this.cardNumber,
billing_details: {
name: this.customerData.first_name,
},
},
};
let options = {
handleActions: false,
};

      const cardSetup = await this.stripeObj.confirmSetup([this.clientSecret, confirmParams, options]);
#

look

gloomy frigate
#

That's also wrong

severe furnace
#

how to fix it

gloomy frigate
#

You are passing an array

#

Pass an object

#

Objects have {}

#

not []

severe furnace
#

ohh

#

romise) IntegrationError: Invalid value for stripe.confirmSetup(): confirmParams.payment_method should be a string. You specified: [object Object].

#

const cardSetup = await this.stripeObj.confirmSetup({clientID, confirmParams, options});

#

Now this

gloomy frigate
#

What guide are you following?

#

You're passing things that aren't even in the the api spec

severe furnace
#

message
:
"No such setupintent: 'seti_1NrnnVRQrfWSZuABrgYV28Sn'" Now it gives this error

#

Setup intent is for the connect user

#

how to do that?

gloomy frigate
severe furnace
#

await loadStripe(process.env.STRIPE_PK, this.$auth.user.account.wallet_token);

#

This is how it works

#

?

gloomy frigate
#

No

#

See the example I linked above