#hamid - Session

1 messages · Page 1 of 1 (latest)

prisma finch
#

That's a code snippet, what about it is not what you expect?

trail sonnet
#

any property to set that will save user's credit card info

#

I wan user's card saved

prisma finch
#

Oh sure

trail sonnet
#

user have to add it again and again

#

any property to set

prisma finch
trail sonnet
#

so that user will be saved againsth thatcustomer or email asddress

prisma finch
#

You can use the Checkout Session with mode: 'setup' to create a Payment Method and save it to the Customer

trail sonnet
#

see my code please

#

its already setup

#

and also used customer stripe id

#

customer: retrieve_stripe_customer_id(order),

prisma finch
#

Can you share a request ID where you created a Checkout Session using this code?

trail sonnet
#

do not have access to dahsboard for now

#

client is away

#

any other way we can track it down?

prisma finch
#

Do you have an ID for a session where is occurred?

trail sonnet
#

yea i have id session but its live session id

#

will it be secure to share?

prisma finch
#

Test would be better.

trail sonnet
#

cs_test_c1rCjTqjnJq3tPHAPrffBGeqPpdSoeUpHQnU5H19ANnwhVkTScexsoiqqH

#

just created

prisma finch
#

Okay so what happens when you complete and submit the checkout form?

trail sonnet
#

it says save card

#

and it returns

#

but when i come again to card with new order

#

nothing saved

#

i have entere all the card details again

prisma finch
#

When you say "I come again", what do you mean?

#

I see 17 saved cards for that customer

trail sonnet
#

that means i go back to stripe again

#

for another order

#

and ill have to enter card details again.

prisma finch
#

But, like I said, your customer has 17 cards already

#

In what scenario are you not seeing the saved payment methods?

trail sonnet
#

when i landed on steipe checkout page

#

I do not have to enter card again

#

landed means here when comes on stripe checkout page