#kqtipow-checkout
1 messages ยท Page 1 of 1 (latest)
trying to read it through
I want to notice, code will be integrated in WP installation
just give me please a couple of minutes
Yes, of course, ask if it's not clear to you
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
Thank you!
let me know if you need any more help
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?
you shouldn't include them in the same file
maybe with php require method or html form post?
Can you check it, seems not work in new version or my mistake?
what's not working?
just found my mistake
I have included metadata on wrong place
should not be in line_items array