#ruul_api

1 messages ¡ Page 1 of 1 (latest)

warped jayBOT
#

👋 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/1243547309116227696

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

vernal valve
gentle swan
#

Yeah that email you screenshotted links official, recommended integrations

vernal valve
#

we are using stripe api

#

not the checkouts

gentle swan
#

You don't have to use checkout

#

Click custom flow at the top

#

There's multiple options

vernal valve
#

under which section I can see it

gentle swan
#

Click custom flow at the top

vernal valve
#

did

#

we need to integrate this ?

gentle swan
#

yeah

vernal valve
#

I'm not sure if it's going to work out for us

#

we save payment details then use it to switch between different plans

gentle swan
#

What do you mean

#

Why wouldn't that work

vernal valve
#

doesn't payment intent work for a single time ?

gentle swan
#

Yeah but you can also pass setup_future_usage to save the payment method so you can use it again

vernal valve
#

using card details on api we create payment methods & save it on customer

gentle swan
vernal valve
#

she/he can manage multiple multiple cards that way

#

hmm

gentle swan
#

You don't need to pass raw card details to do that though...

#

See the link i shared above

vernal valve
#
   * Creates a PaymentMethod
   * @param card card details
   * @returns PaymentMethod object
   */
  public async createPaymentMethod(
    card: Stripe.PaymentMethodCreateParams.Card1,
    metadata?: Stripe.MetadataParam
  ): Promise<Stripe.PaymentMethod> {
    return this.stripe.paymentMethods.create({
      type: "card",
      card,
      ...(metadata && { metadata }),
    });
  }
#

so this is not allowed?

gentle swan
#

The issue is you're passing a raw card number to us via the api, which isn't allowed, per that email you received

vernal valve
#

I'm trying to see if we can solve it from api side

#

but doesn't seem like it'll work out that way

#

right?

gentle swan
#

You can't pass raw card details

#

So you need to use an integration path that does not do that

#

I linked you one above