#richard_20727

1 messages · Page 1 of 1 (latest)

lost breachBOT
near sigil
#

Hello! What error are you seeing?

halcyon oxide
near sigil
#

And this is the error you're getting after changing your code to set stripeAccount?

halcyon oxide
near sigil
#

Ah, so it looks like you haven't actually passed in /set the stripeAccount right?

#

Right now, you're only passing in the publishable key

halcyon oxide
#

i am in the paymentIntet creation

near sigil
#

You also need to do it client-side though - otherwise we won't know which account to look at for the client-secret (like the error mentions)

halcyon oxide
#

and the PaymentIntent obj i'm trying to create looks like this:

Stripe::PaymentIntent.create(
      {
        amount: ,
        currency: ,
        description: ,
        receipt_email: ,
        application_fee_amount:,
      },
      { stripe_account: stripe_account }
near sigil
#

Yup! It'll look somethign like this:

var stripe = Stripe('{{PLATFORM_PUBLISHABLE_KEY}}', {
  stripeAccount: '{{CONNECTED_STRIPE_ACCOUNT_ID}}',
});