#wannalearn-ids

1 messages · Page 1 of 1 (latest)

little dew
#

hi! That seems sensible enough, customer IDs cus_xxx are the unique identifier in Stripe so it makes sense to use those. (multiple customers can have the same email in Stripe)

small hemlock
#

each discord ID is basically a person

#

as it never changes

little dew
#

not sure really, I don't completely follow what you're trying to do

#

a Customer is someone who pays you on Stripe; traditionally the flow is

  • customer visits your site
  • they pay for your service and you create a cus_xxx Customer for them and associate the payment with that
  • in your database you save the Stripe cus_xxx in your "users" table and mark them as 'paid' which gives them access to your product
#

that's the high-level traditional way of doing online payments

small hemlock
little dew
#

this is a public support channel, sorry

#

ultimately you don't have to tell me

#

just let me know what the specific problem you have with the Stripe API is and I can try to help

small hemlock
#

alright

#

simple question then

#

will there be any issues if my DB looked like this:

{
  "_id": 306037627675607041,
  "stripe_cus_id": "cus_abcdefg"
}

so that every time 306037627675607041 wants to make a purchase, an invoice with cus_abcdefg as customer id gets sent to him?

little dew
#

seems reasonable I think

#

assuming this Discord user is the same person and you want that same person to be charged each time

small hemlock
#

correct