#update payment_session client_secret
5 messages · Page 1 of 1 (latest)
i am trying to create new-order based on initial order for subscription system... i am getting payment_method and customer from previous or initial order which is created from frontend but on backend re-creating order although stripe payment get successfull but completing the cart does not placing order. so i thought it might be because newly created paymentIntent's client secret is different from new cart's payment_session client_secret ???
i am trying to create new cart from previous cart's line items and create and set payment session with "stripe" and creating paymentIntent using initial order payment_method and customer which works fine payment is successfull but completing cart does not placing order.... so i thought the problem might be client secret in new paymentInent and client_secret in new cart's payment session might be different
so thats why now i am trying to update payment_session client_secret with paymentIntents client secret
You're doing something wrong. cart.payment_session.data is current intent and it's controled by the plugin. It's remote data from stripe. You should not modify client secret like that