Page 1 of 1

*** SOLVED *** Stripe ecommerce

Posted: Sun Oct 03, 2021 1:17 pm
by VEDRAN
Hi Pablo,

I have tried out the new stripe payment feature that was added in wysiwyg v17.
Turns out that there is a bug with your script, it looks like it is unable to give success and cancel url to stripe's checkout and therefore it doesn't allow me to use it.

I have done the following:
1) I've made a button of type normal on a php page.
2) I've created success and cancel pages as php page
3) I went to settings and filled out the publish key with stripe's public key, than I filled out the website name field.
4) Then I added the click event onto the button.
5) In click event I have filled out price id, quantity, I've set type as payment and I have selected the pages that I created for success and cancel events.
6) I uploaded all three pages and tried the button but I got the following error:

Uncaught IntegrationError: stripe.redirectToCheckout: You must provide successUrl and cancelUrl.

Re: Stripe ecommerce bug

Posted: Sun Oct 03, 2021 1:46 pm
by Pablo
Do you have a demo project?

Re: Stripe ecommerce bug

Posted: Sun Oct 03, 2021 1:53 pm
by VEDRAN
Here is a download link I hope it helps

https://anonfiles.com/hfTdq2L7u1/Stripe-wb17_wbs

Re: Stripe ecommerce bug

Posted: Sun Oct 03, 2021 2:42 pm
by Pablo
Thanks! That was helpful.
I have updated the software to address this issue. You can download the update here (10/3/2021):
https://www.wysiwygwebbuilder.com/download.html

Re: Stripe ecommerce bug

Posted: Thu Mar 03, 2022 4:13 pm
by amdore
I have done as Vedran did. I set up a button with an eCommerce event, as well as an accept and decline page. I followed the instructions for setting up Stripe as explained in the manual. I have setup Product Ids correctly on Stripe's Dashboard, but when I press the Stripe button to which the eCommerce event is attached, nothing happens. I have downloaded the latest version so have the fixes Pablo is referring to.
Can somebody please offer some help. Is there something else I must do on Stripe or is it a WYSIWYG issue?
Thank you.

Re: Stripe ecommerce bug

Posted: Thu Mar 03, 2022 4:21 pm
by Pablo
To be able to help you, I need a DEMO project (.wbs file) so I can see all your settings.

I do not need the complete project because that will only take more time to figure out what you have done.
Basically, I just need a small project with one page and object(s) that are relevant to your question.

For further details about how to share a project file, please see this FAQ:
https://www.wysiwygwebbuilder.com/forum ... 10&t=82134

Re: Stripe ecommerce bug

Posted: Thu Mar 03, 2022 5:43 pm
by amdore

Re: Stripe ecommerce bug

Posted: Thu Mar 03, 2022 6:16 pm
by Pablo
The settings look ok.
Did you publish the page?
Are there any errors in the browser's error console?

Re: *** SOLVED *** Stripe ecommerce

Posted: Fri Mar 04, 2022 9:48 am
by amdore
These are the errors

► POST https://api.stripe.com/vl/pavment pages
4 Shared-4e08b2beac87f-e0d0e8bf03726a.js:1
0
0
► Uncaught (in promise)
IntegrationError: No such plan:
'prod_LFkx4dQfw9n7By'
at et (v3:1:94950)
at e._handleMessage (v3:1:103953)
at e._handleHessage (v3:1:74083)
at v3:1:101904

What does this mean?

Re: *** SOLVED *** Stripe ecommerce

Posted: Fri Mar 04, 2022 9:52 am
by Pablo
This seems to indicate that the product id is incorrect.

Re: *** SOLVED *** Stripe ecommerce

Posted: Fri Mar 04, 2022 10:38 am
by amdore
Thank you for your help and an excellent product which I have used for years.