#ferret_paymentintent-integration

1 messages ¡ Page 1 of 1 (latest)

silver bloomBOT
#

👋 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/1306742548559302767

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

glad oriole
glad oriole
#

I think the issue is that you're trying to pass the string card into the parameter payment_method, but that parameter takes a Payment Method ID.

#

Yeah, that's the issue.

#

You should be supplying a Payment Method ID, like pm_123... there.

round steppe
glad oriole
#

Let's back up a bit. Which code did you copy? Can you link me to it?

#

Also, can you tell me at a high-level what you're trying to build?

round steppe
glad oriole
#

So you're trying to implement the payment part of that, where you create an off-session payment using already-saved payment details?

glad oriole
#

Try following the instructions there and let me know if you run into any issues.

round steppe
glad oriole
#

You didn't specify the saved Payment Method.

#

You need to set payment_method to the Payment Method ID you want to use.

round steppe
# glad oriole You didn't specify the saved Payment Method.

Okay, how do I retrieve payment method id from customer when creating new customer future payemts?

            CustomerCreateParams params =
                    CustomerCreateParams.builder()
                            .setName(debtor.getName())
                            .setEmail(debtor.getEmail())
                            .build();

            Customer customer = Customer.create(params);
            stripeCustomerId = customer.getId();
            debtor.setStripeCustomerId(stripeCustomerId);
            //debtor.setStripePaymentMethodId(customer.retrievePaymentMethod("card").getId());
glad oriole
#

Usually, though, you would have already noted the specific Payment Method to use as a result of some prior interaction.

#

You would need to know, for example, which Payment Method to use if a customer has more than one attached.

round steppe
silver bloomBOT
vagrant geode
#

ferret_paymentintent-integration

round steppe
glad oriole
#

Happy to help!

round steppe
# glad oriole Happy to help!

Is it possible to add our invoice number to Payment Intent object? I am adding the description with "Invoice 1234"

vagrant geode
#

You can put it on the description or in metadata

round steppe
vagrant geode
#

yes it's only available if you use our Invoicing product which is separate and unrelated to what you seem to want