#arpit-gupta_code

1 messages ยท Page 1 of 1 (latest)

shrewd joltBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1305620962477080607

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

cyan girder
open totem
#

Sure. Give me some time.

shrewd joltBOT
#

๐Ÿง‘โ€๐Ÿ’ป How to format code on Discord

Inline code: wrap in single backticks (`)

This:

The variable `foo` contains the value `bar`.

Will turn into this:

The variable foo contains the value bar.

Code blocks: wrap in three backticks (```)

Also, you can specify the language after the first three backticks to get syntax highlighting.

This:

```javascript
function foo() {
return 'bar';
}
```

Will turn into this:

function foo() {
  return 'bar';
}```

Notes about **code blocks**:
- Specifying the language is optional (e.g., you can omit `javascript` in the example above)
  - If you don't specify the language you won't get syntax highlighting
- When you're inside a code block (after you type \`\`\`) the `Return`/`Enter` key will add a new line instead of sending your message
  - Once you end the code block `Return`/`Enter` works normally again

You can [read more about message formatting on Discord's website.](https://support.discord.com/hc/en-us/articles/210298617)
open totem
#

async function configureStripe() {
  await loadStripeSDK()
  if (!stripeSDK.value) {
    return
  }
  const options = prepareStripePaymentElementOptions()
  await createPaymentElement(options)
}

async function loadStripeSDK() {
  const { publishableKey, accountId } = props
  const stripe = await loadStripe(publishableKey, {
    stripeAccount: accountId || undefined,
  })
  if (!stripe) {
    setCardError(MESSAGES.STRIPE_SDK_LOAD_ERROR)
    return
  }
  stripeSDK.value = stripe
  return stripe
}

function prepareStripePaymentElementOptions() {
  const {
    mode,
    currency,
    paymentMethodConfiguration,
    paymentMethodOptions,
    enableBNPL,
    paymentMethodTypes,
  } = props.stripeOptions

  const paymentMethodTypesOrConfiguration = paymentMethodConfiguration
    ? { payment_method_configuration: paymentMethodConfiguration }
    : { payment_method_types: paymentMethodTypes }
  let { amount } = props.stripeOptions
  let captureMethod = 'automatic'
  if (
    amount === 0 &&
    mode !== StripePaymentMode.SETUP &&
    mode !== StripePaymentMode.SUBSCRIPTION
  ) {
    captureMethod = 'manual'
    amount = 1
    if (props.stripeMinimumChargeAmount)
      amount = props.stripeMinimumChargeAmount[currency?.toUpperCase()] || 1
  }
  // https://stripe.com/docs/payments/accept-a-payment-deferred?platform=web&type=payment#additional-options
  const options: any = {
    mode,
    amount: amountInSmallestCurrency(amount, currency),
    currency: currency,
    captureMethod,
    ...paymentMethodTypesOrConfiguration,
    payment_method_options: paymentMethodOptions,
  }

  return options
}```
#

Here mode is passed as subscription when recurring product is selected and it does not load ideal when recurring product is selected.

cyan girder
#

Is the currency EUR? From our iDEAL page, it looks like we only support iDEAL for EUR payments at the moment. Otherwise can you send me your account ID? (acct_1234) Given that code, there should be a way for me to look up specifically why iDEAL isn't showing as an option for these payments

open totem
#

yes

shrewd joltBOT
open totem
#

account id: acct_1PcpMhB9ZMu7qZKZ

icy path
#

Hi, stepping in and catching up here

open totem
#

sure

cyan girder
#

Is that the account that you are testing this flow on? And are you testing as this account or is it a connect scenario? I am not seeing the logs I would expect given that setup.

open totem
#

okay let me try with this account right away

cyan girder
#

One other thing that might be helpful for you is that we have a tool for this in the dashboard. You can input info on the payment you are trying to make and we show explanations of why a certain payment method is or is not included. Testing just now shows that iDEAL should be available in my dashboard, but there may be something more informative if you look
https://dashboard.stripe.com/test/settings/payment_methods/review

open totem
cyan girder
#

Thank you! I have what I need from that, will get back to you shortly

open totem
#

Sure.

cyan girder
open totem
#

But this is not an invoice right?

icy path
#

Not directly, however, subscription uses invoices under the hood so that setting is used for subscription payments.

open totem
#

And here ideal is enabled

icy path
#

There are differences in one time payment, and Billing payment method configurations.

open totem
#

But then how sepa direct debit is showing on checkout for subscriptions although it is not enabled here where you are mentioning.

#

It is enabled in the LeadConnecter default config.

#

not in the PMC which you have sent for Billing

#

Any answer to the above question regarding sepa debit?

#

Anyone there?

icy path
#

Can you share the specific instance where you saw Sepa Debit while it was disabled while using Billing?

open totem
icy path
#

Also, I'm helping other folks on this channel at the same time so it takes a bit to circle back here. Thank you for your patience.

open totem
#

Ohhk got it.

#

Here is the proof of sepa debit showing for recurring products

#

but not ideal

icy path
#

Taking a look

open totem
#

ok

icy path
#

I'm asking my teammate to confirm here, hang tight

shrewd joltBOT
brittle comet
#

Hi ๐Ÿ‘‹

My colleagues have been spending a lot of time digging on this and we have not come to a clear conclusion yet. We will be raising this issue internally to try to get to the bottom of it but, for you, I recommend you write in to Support https://support.stripe.com/contact so you can be kept informed of our progress.

open totem
#

Any uodate here?

brittle comet
#

Just what I shared above