#growwithjen - Invoice

1 messages ยท Page 1 of 1 (latest)

junior viper
#

Hi ๐Ÿ‘‹
What is the purpose for using an Invoice in this casee?

#

And can you share an example Customer ID where this has occurred?

spring rock
#

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

junior viper
#

Thank you

#

Okay so this Customer has a default source but it's not a Credit Card.

brisk haven
#

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?

spring rock
#

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

brisk haven
#

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.

spring rock
#

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

brisk haven
spring rock
#

ok perfect, thank you. So source is enough?

brisk haven
#

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

spring rock
#

Ok thank you so much!

brisk haven
#

Any time!