*** SOLVED *** Stripe ecommerce

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
VEDRAN
 
 
Posts: 86
Joined: Tue Feb 09, 2021 9:54 am
Contact:

*** SOLVED *** Stripe ecommerce

Post 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.
User avatar
Pablo
 
Posts: 23598
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Stripe ecommerce bug

Post by Pablo »

Do you have a demo project?
VEDRAN
 
 
Posts: 86
Joined: Tue Feb 09, 2021 9:54 am
Contact:

Re: Stripe ecommerce bug

Post by VEDRAN »

Here is a download link I hope it helps

https://anonfiles.com/hfTdq2L7u1/Stripe-wb17_wbs
User avatar
Pablo
 
Posts: 23598
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Stripe ecommerce bug

Post 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
amdore
 
 
Posts: 4
Joined: Thu Mar 03, 2022 3:51 pm

Re: Stripe ecommerce bug

Post 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.
User avatar
Pablo
 
Posts: 23598
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Stripe ecommerce bug

Post 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
amdore
 
 
Posts: 4
Joined: Thu Mar 03, 2022 3:51 pm

Re: Stripe ecommerce bug

Post by amdore »

User avatar
Pablo
 
Posts: 23598
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Stripe ecommerce bug

Post by Pablo »

The settings look ok.
Did you publish the page?
Are there any errors in the browser's error console?
amdore
 
 
Posts: 4
Joined: Thu Mar 03, 2022 3:51 pm

Re: *** SOLVED *** Stripe ecommerce

Post 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?
User avatar
Pablo
 
Posts: 23598
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: *** SOLVED *** Stripe ecommerce

Post by Pablo »

This seems to indicate that the product id is incorrect.
amdore
 
 
Posts: 4
Joined: Thu Mar 03, 2022 3:51 pm

Re: *** SOLVED *** Stripe ecommerce

Post by amdore »

Thank you for your help and an excellent product which I have used for years.
Post Reply