#simonsayscode

1 messages ยท Page 1 of 1 (latest)

naive forumBOT
tender abyss
#

Hi ๐Ÿ‘‹ do you have a question that we can help you with?

steady blaze
#

oops! i had my cursor in the wrong window....

#

but i did have a question!

#
  1. i wanted to confirm that it's possible to have a charge without an associated customer
#

and 2) if that's the case, how can i associate a charge id with a customer i create afterwards

tender abyss
#

Yes, you can create Charges that are not associated with Customer objects, though if you're working on a new integration you'll probably want to use Payment Intents instead of Charges.

steady blaze
#

yeah, unfortunately the payload that we're getting with a charge id comes from an integration out of our hands: https://help.calendly.com/hc/en-us/articles/115002674754-Stripe#getstarted

tender abyss
#

Ah gotcha.

#

I'm not sure off-hand what happens if you take a Charge that had no value in the customer field when the payment was processed, but then was attached to one later. I would recommend setting up a quick test flow to see how that impacts the Charge object and if it leads to the behavior you're hoping.

steady blaze
#

i'll give that a try ๐Ÿ˜•

#

its unfortunate that the calendly integration linked doesn't differentiate between testing vs prod environments, which means that charges are against prod...

#

thus the ๐Ÿ˜•

tender abyss
#

Oh, that sounds pretty frustrating. Have you reached out to Calendly to see if there is a way to run your project in their service in test mode? (Stripe uses different API keys to differentiate between test and live modes)

steady blaze
#

we haven't but we should (not holding my breath on that one...)