#peony-charges-legacy

1 messages · Page 1 of 1 (latest)

old kernelBOT
haughty crown
#

Hey @slate kelp! I'm happy to help but I need a lot more details than just this sentence. What are you trying to do, where did you get the Customer id, did you store payment method details first?

slate kelp
#

I made a customer with card_token_id.
Now I want to create charge with cusomer_id
const charge = stripe.charges.create({
amount: 1000, // Amount in cents
currency: "usd",
customer: customerId, // Replace with the actual customer ID
description: "Example Charge",
});

haughty crown
#

All of those APIs were actively deprecated back in 2018. How did you end up integrating something so old? Which docs are you following?

#

peony-charges-legacy

slate kelp
#

I am not sure

#

Can you provide me correct code?

old kernelBOT
carmine loom
#

👋 stepping in as koopajah needs to step away

#

Let's back up a second

#

What are you trying to do?