#ramakant_26645

1 messages · Page 1 of 1 (latest)

old sorrelBOT
eager ferry
#

Hi
Could you please share the PaymentIntent Id ?

uneven salmon
eager ferry
#

Please copy past that id here

uneven salmon
#

pi_3NexAjSCfPCuJGvg0PNrEHis

eager ferry
#

yes indeed, there is no payment attempt to that PaymentIntent

uneven salmon
#

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

eager ferry
#

This code is just for creating a customer and a PaymentIntent

#

you are missing the payment part