#alpha_invoice-pmts

1 messages ¡ Page 1 of 1 (latest)

boreal micaBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1240789958357286983

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

gusty summit
#

So you have Payment Methods from Customers already, and you just want to know how to use them to pay a new Invoice?

swift orchid
#

yes I have payment methods from customers already created and I want to use an specific one

modest mapleBOT
fossil rock
#

alpha_invoice-pmts

#

Use the Create Invoice API and set default_payment_method: 'pm_123'

swift orchid
#

for example client A has a payment method for buying cards and another one for buying clothes When I create an new invoice I want to be able to chose what payment method use

#

mmm so you mean changing the default payment method on demand?

#

I understand the default is a setting for the customer I dont want to change the default payment method only use a different for certain cases

fossil rock
#

Sure, but your code creates the Invoice, you know which PaymentMethod pm_123 they want to use so you can set the default for that Invoice specifically

swift orchid
#

ahhh ok so that's only gonna afffect that invoice right?

#

OK I think that can work thanks