#luftjunkie
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- luftjunkie, 3 hours ago, 11 messages
Hi 👋 yes:
https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_configuration
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Oh, but what should the structure of it look like now? I give only an string with the configuration id?
Yup, the string beside the field in our reference indicates the type the parameter is expecting, and the description explains that you should provide the ID of a payment method configuration object.
Oh, yeah I have looked on something different before, thank you toby. Btw, what is on your profile pic?
Let make me sure, ok is it correct: ```js
const paymentIntent= await stripe.paymentIntents.create({
amount: price,
currency: "usd",
payment_method_configuration: "pmc_1OH8UDL8z1e5mvb6pg8zlaau",
customer: createdCustomer.id,
transfer_data: {
destination: destinationId,
},
});
Do you get an error when you run it?