#kqtipow-checkout

1 messages ยท Page 1 of 1 (latest)

tender plume
#

๐Ÿ‘‹ happy to help

primal knot
#

Thanks!

#

I am waiting for your answer

tender plume
#

trying to read it through

primal knot
#

I want to notice, code will be integrated in WP installation

tender plume
#

just give me please a couple of minutes

primal knot
#

Yes, of course, ask if it's not clear to you

tender plume
#

I want to put custom product attributes, like custom_field = 34343;, how I can make that?
yes you can use the metadata field on the Checkout Session Object https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-metadata
Is it possible to be in JS part?
no you should send the info you need to add for the backend code that creates the checkout

#

Also my product price is being generated dynamically by selectind different checkboxes, so I have diffucult to make price with PHP part, can i override price in JS section?
same answer as above, you should collect all of the data you need and send them as params to the backend code that generates the Session

primal knot
#

Thank you!

tender plume
#

let me know if you need any more help

primal knot
#

I think I will try to combine PHP and JS in one file

#

So i can achieve that

#

Thanks, for now all clear if I need anything else, I will come back

#

Can you check it, seems not work in new version or my mistake?

tender plume
#

you shouldn't include them in the same file

primal knot
#

maybe with php require method or html form post?

tender plume
#

Can you check it, seems not work in new version or my mistake?
what's not working?

primal knot
#

I have included metadata on wrong place

#

should not be in line_items array