#Monkey D. Luffy-PM

1 messages · Page 1 of 1 (latest)

oblique umbra
#

👋 happy to help

boreal crystal
#

req_WePSX4kSylNfY8

oblique umbra
#

I'll take a look

#

so basically you created a payment method that wasn't attached to a customer right?

boreal crystal
#

Yes

oblique umbra
#

you need to first attach it to the customer and then use it payment intents

boreal crystal
#

stripe.PaymentIntent.create(
amount=int(order.total_amount * 100),
currency=data.get("currency"),
payment_method_types=["card"],
payment_method=data.get("payment_method"),
customer=stripe_obj.stripe_id,
receipt_email=data.get("email"),
description="Payment For Order - {}".format(order.order_num),
setup_future_usage="on_session",
confirmation_method='manual',
confirm=True,

#

I am passing setup_future_usage="on_session'

#

The above key won't help?

oblique umbra
#

I don't think that combination works

celest bear
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!