#simonsayscode
1 messages ยท Page 1 of 1 (latest)
Hi ๐ do you have a question that we can help you with?
oops! i had my cursor in the wrong window....
but i did have a question!
- 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
does updating the customer field here: https://stripe.com/docs/api/charges/update update the customer's profile with this charge that was created in the past?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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.
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
With our Stripe integration, youโll be able to collect payments from invitees at the time an event is scheduled. You can save time and reduce no-shows by connecting your Stripe account to Calendly ...
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.
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 ๐
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)
we haven't but we should (not holding my breath on that one...)