#ramakant_26645
1 messages · Page 1 of 1 (latest)
Hi
Could you please share the PaymentIntent Id ?
Please copy past that id here
pi_3NexAjSCfPCuJGvg0PNrEHis
yes indeed, there is no payment attempt to that PaymentIntent
I invite you to follow / start with this official python starter:
https://stripe.com/docs/payments/quickstart?lang=python&client=html
def charge(request):
amount = 5
if request.method == 'POST':
print('Data:', request.POST)
customer=stripe.Customer.create(
email=request.POST['email'],
name = request.POST['nickname'],
source = request.POST['stripeToken']
)
charge=stripe.PaymentIntent.create(
#payment_method_types = ['card'],
customer = customer,
amount = 500,
currency = 'inr',
description = 'wasooli',
automatic_payment_methods={"enabled": True},
)
Is this code correct?
Or am I missing something here