#Asad

1 messages · Page 1 of 1 (latest)

regal gyroBOT
frank shoal
#

Where did you add the payment methods? Can you share an example object ID? Which payment page and payment integration (Payment Element, Checkout Session... etc) are you referring here?

narrow current
#

i added those via this link

#

?

frank shoal
#

Thanks for waiting! Discord is busy now

#

Where did you expect to see these payment methods at?

#

Which integration type are you using?

narrow current
#

i m using stripe checkout page

frank shoal
#

In your Checkout Session creation request https://dashboard.stripe.com/logs/req_7fWo1HkO7IZCjy, your system hard coded to accept card payment only:

  payment_method_types: {
    0: "card",
  },

payment_method_types will override the settings in the Dashboard. I'd recommend removing payment_method_types , so that Checkout Session will then pick up the payment method configuration in the Dashboard

narrow current
#

checkout_session = stripe.checkout.Session.create(
# new
client_reference_id=request.user.id if request.user.is_authenticated else None,
success_url="https://simplestudying.com/" + f'?redirect_page={redirect_page}',
cancel_url="https://simplestudying.com/",
# payment_method_types=['card','klarna'],
payment_method_types = { 0: "card", 1:"klarna", },
customer=request.user.customer_id,
mode=mode,
line_items=[
line_items
],
metadata=data,
),

#

this is not working

frank shoal
narrow current
#

req_7fWo1HkO7IZCjy

frank shoal
#

You should remove payment_method_type entirely

narrow current
#

so how the diffreent payment methods will be selected?

frank shoal
narrow current
#

okay,let me try this