#growwithjen - Invoice
1 messages ยท Page 1 of 1 (latest)
Hi ๐
What is the purpose for using an Invoice in this casee?
And can you share an example Customer ID where this has occurred?
The original transaction is for new customers to pay and provide their credit card at POS. Once they have used the invoice, I have it save the credit card on file. Later charges we just want to be able to process against the customer/payment method
cus_LSCOa7IYWYiADD
Hi there ๐ jumping in as my teammate needs to step away. I see that you mentioned that you're using Zapier, and wanted to clarify whether you're leveraging a pre-built integration or if you're building your own flow directly interacting with the Stripe APIs?
how about this one? cus_LKI9uLkhMb8NlP
Thanks, Toby, trying to build my own flow. I had to use my own flow to create the invoice, but wasn't aware I could charge card on file with zapier
Gotcha, just to preface, we won't be as familiar with the Zapier side of this flow as we're not sure how they built their integration.
I see that Customer has several Sources attached to it (the predecessor to Payment Methods), but am taking a closer look to see what else is on it.
Ok, I do see in the webhook data coming from Stripe that I can see the card string when it is a credit card processed
Can I call a specific card ID?
when posting to the charge object
Yes, you can pass the Source that you're trying to use to the source parameter:
https://stripe.com/docs/api/charges/create?lang=python#create_charge-source
As mentioned there, you'll most likely need to also pass the Customer's ID though.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok perfect, thank you. So source is enough?
Looking at the types of sources that are on that customer, yes I believe Source and Customer are the fields that you would need to provide.
Being able to reuse a source is dependent on that source actually being reusable though, which you can check by looking at it's usage field (but the sources I glanced at for that most recent customer all appear to be reusable)
https://stripe.com/docs/api/sources/object#source_object-usage
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ok thank you so much!
Any time!