#teriyaki229

1 messages ยท Page 1 of 1 (latest)

wary pineBOT
lone lotus
spare basalt
#

Hello! Not sure I completely understand. You're trying to make a custom payment form for Subscriptions and you don't want to use Elements?

lone lotus
#

How do i implement this form with a subscription model

spare basalt
#

Why don't you want to use Elements?

lone lotus
spare basalt
#

We strongly recommend you use Stripe Elements. If you don't, you'll be handling raw card data yourself, which means you need to be fully PCI compliant, which is a huge burden.

lone lotus
#

He is willing to fill in all of this

#

in my previous thread i did discuss regarding this

#

just that the technical part is where i am having issue can you help? ๐Ÿ˜…

spare basalt
#

What specific help do you need? If you're not using our UI elements you need to pass raw card data to the API.

lone lotus
#

It is for a subscription

spare basalt
#

There are several different ways to do that. Can you be more specific? What have you tried that hasn't worked?

lone lotus
#

right now i am just creating subscription intent

spare basalt
lone lotus
#

okay.

#

what after that though

spare basalt
#

Can you ask a more specific question?

#

I'm not sure what you mean, as there are a myriad of possible next steps, and without more details I can't help you.

lone lotus
#
    const { error } = await stripe.confirmPayment({
      elements,
      confirmParams: {
        return_url: HOME_URL,
        payment_method_data: {
          billing_details: {
            email: email,
            name: `${FirstName} ${LastName}`,
          },
        },
      },
    });

This is what i was doing before. I am just looking to replace this

spare basalt
#

Have you tried specifying the card info in payment_method_data?

lone lotus
wary pineBOT
lone lotus
#

Hello?

nova spade
#

๐Ÿ‘‹ I'm taking over

#

Give me a moment to catch up

#

The code you shared is client-side code for confirming payment.

Rubeus shared a link earlier that shows how you can send raw card information via server-side using the API
#1209576431580086332 message

So you'd basically create your own form and send that information to your server-side code that calls Stripe's API with raw card information

lone lotus
#

okay but iam confused regarding the process

#

can you guide me through it please? thanks

nova spade
#

We recommend against sending raw PANs to our APIs. So we don't have any guides/resources we can share.

i can understand what to do till here
That step creates a PaymentMethod. What are you not clear on after this point?

lone lotus
#

How do i use that payment method to charge the customer for the subscription intent that was created earlier?

spare basalt
lone lotus
#

Maybe. I will get back to you in a minute please keep the thread open for the meantime

nova spade
#

sure

lone lotus
#

nice works

#

thank you rubues thank you hanzo. I dont want to ping you because you two are already so busy

#

but thank you

#

๐Ÿ™

nova spade
#

NP! ๐Ÿ™‚ Happy to help

#

Good luck

lone lotus
#

can you refer me the docs for updating customers

#

nvm got it

#

thank you

nova spade
#

Great ๐Ÿ™‚

lone lotus
#

we can close this thread now. Thank you

#

Thank you for your support