#inderjit-janjua_api

1 messages · Page 1 of 1 (latest)

boreal monolithBOT
#

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

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

keen gyro
lost plover
#

A Payment Method object is for example your credit card. A PaymentIntent is the intent to make payment.

keen gyro
#

Okay that makes sense

lost plover
#

do you have a specific question about the error message you're seeing? Like what the link mentions, you should be using Stripe components to collect payment method details and not pass raw card details via the API

keen gyro
#

So I made a POST {{url}}/v1/payment_methods call in Postman

#

Obviously i'm doing it wrong because i'm passing in credit card data

#

What should I pass on the request body

#

tok_visa

#

What should the key be

#

For this value

lost plover
keen gyro
#

Is it "visa"

keen gyro
#

I like getting the flow right

#

In Postman

#

Before I proceed coding

#

Its personal preference

#

I'm aiming to create a payment method

lost plover
#

Maybe lets take a step back, again, why are you trying to create a PaymentMethod in this manner? Cause like I've mentioned previously, this isn't how you should be creating a PaymentMethod.

keen gyro
#

Okay so my goal is to create a subscription

Before I do that I do:
Create Customer
Create Payment Method
Attach Payment Method to Customer
Create Product
Create Price
Create Subscription

#

This works as expected

Create Customer
Create Product
Create Price

#

Im working on this:
Create Payment Method
Attach Payment Method to Customer

lost plover
#

are the subscriptions meant to be created on the connected account?

keen gyro
#

Yes

#

O wait

#

I think I messed up

#

You might be right about that

#

Connected account has offers

#

The customers stipe account should have the subscription

icy wyvern
#

I want to distinguish between selected items and unselected items, for example, add a background color to one of the categories. Is it possible to support this?

lost plover
keen gyro
#

No sorry i'm confusing myself

#

Let me think

#

Okay thank you

lost plover
#

I'll recommend following the guide and building out a POC first, then it'll be easier to understand how it works

keen gyro
#

Okay thank you

#

I'll do that

keen gyro
lost plover
#

oh oops, i didn't realize that was from someone else. Thanks for helping me redirect!