#alex_blm_rn

1 messages · Page 1 of 1 (latest)

heady flint
#

@main rover hi!
could you share a bit more context
-where exactly do you see this "This payment type is not supported yet" error, do you have a screenshot or a log I can look at

  • do you have an example PaymentIntent pi_xxx where this happens?
main rover
# heady flint <@!693523813337530449> hi! could you share a bit more context -where exactly d...

Sure, here is the last test I made :
**
Response from the payment intent creation : **{"id":"pi_3JmFTLLDvhGrVUL70L7WGOGg","object":"payment_intent","amount":100,"amount_capturable":0,"amount_received":0,"application":null,"application_fee_amount":null,"canceled_at":null,"cancellation_reason":null,"capture_method":"automatic","charges":{"object":"list","data":[],"has_more":false,"total_count":0,"url":"/v1/charges?payment_intent=pi_3JmFTLLDvhGrVUL70L7WGOGg"},"client_secret":"pi_3JmFTLLDvhGrVUL70L7WGOGg_secret_9pAX7ORtyzG84fKZ5Mt6knhXQ","confirmation_method":"automatic","created":1634638987,"currency":"gbp","customer":null,"description":null,"invoice":null,"last_payment_error":null,"livemode":false,"metadata":{},"next_action":null,"on_behalf_of":null,"payment_method":null,"payment_method_options":{"card":{"installments":null,"network":null,"request_three_d_secure":"automatic"}},"payment_method_types":["card"],"receipt_email":null,"review":null,"setup_future_usage":null,"shipping":null,"source":null,"statement_descriptor":null,"statement_descriptor_suffix":null,"status":"requires_payment_method","transfer_data":null,"transfer_group":null}

**Error received from the confirmPayment function : **
{"code": "Failed", "declineCode": null, "localizedMessage": "This payment type is not supported yet", "message": "This payment type is not supported yet", "stripeErrorCode": null, "type": null}

heady flint
#

hmm strange

#

this automatic payment method thing is still a beta so maybe it doesn't work with these SDKS yet

#

can you try changing your backend code to pass payment_method_types:["card"] when creating the PaymentIntent and then test again and see if the problem persists?

main rover
#

Ok i'll try

main rover
# heady flint can you try changing your backend code to pass `payment_method_types:["card"]` w...

Just added the "payment_method_type" to my backend coe but till getting the same error :/

Intent creation
{"id":"pi_3JmFtpLDvhGrVUL70gxbkbVA","object":"payment_intent","amount":100,"amount_capturable":0,"amount_received":0,"application":null,"application_fee_amount":null,"canceled_at":null,"cancellation_reason":null,"capture_method":"automatic","charges":{"object":"list","data":[],"has_more":false,"total_count":0,"url":"/v1/charges?payment_intent=pi_3JmFtpLDvhGrVUL70gxbkbVA"},"client_secret":"pi_3JmFtpLDvhGrVUL70gxbkbVA_secret_2AG775N17FnaZmKhC0xtR8YG5","confirmation_method":"automatic","created":1634640629,"currency":"gbp","customer":null,"description":null,"invoice":null,"last_payment_error":null,"livemode":false,"metadata":{},"next_action":null,"on_behalf_of":null,"payment_method":null,"payment_method_options":{"card":{"installments":null,"network":null,"request_three_d_secure":"automatic"}},"payment_method_types":["card"],"receipt_email":null,"review":null,"setup_future_usage":null,"shipping":null,"source":null,"statement_descriptor":null,"statement_descriptor_suffix":null,"status":"requires_payment_method","transfer_data":null,"transfer_group":null}
**
Confirmation error **
{"code": "Failed", "declineCode": null, "localizedMessage": "This payment type is not supported yet", "message": "This payment type is not supported yet", "stripeErrorCode": null, "type": null}

heady flint
#

can you share the exact frontend code you're using(like the full component that ends up calling confirmPayment)?

main rover
#

the full component is pretty big but I can if you want

#

the main functions that will interest you are :

  • handlingCarPayment
#

Do you also need the backend code ?

heady flint
#

try with type: 'Card' on line 130 and see if that makes a difference

main rover
#

@heady flint Oh yes that's it, it works again ! Thank you so much !