I want to correlate the appearance of the lightbox with the change of Text value. It is the value in which the phrase appears =====>>>>"Thank you for your payment" <========
export function btnPay_click(event,$w) { $w("#txtMessage").show(); $w("#txtMessage").expand(); $w('#txtMessage').text = "Waiting for response from Stripe..."; $w('#txtMessageLabel').hide(); $w("#txtMessageLabel").expand(); payNow(); } export function payNow() { let payment = { "amount": ($w("#Amount").value * 100), "currency": "USD", "description": $w("#iptDesc").value } createToken(encodeCard(createCard())) .then((token) => { charge(token, payment) .then((response) => { if(response.chargeId) { console.log(response.chargeId); $w('#txtMessage').text = "Thank you for your payment"; } else { console.log(response.error); $w('#txtMessage').text = "Processing error:" + response.error; } }); }); if ($w("#txtMessage").text ==="Thank you for your payment") ///HERE <<<<<====
(wixWindow.openLightbox("Payment Success") ) }
then appears this lightbox
Connection ---> Second-POST.....
https://www.wix.com/corvid/forum/community-discussion/i-need-help-in-connect-four-collection
right
can you work in my computer via team viewer program
When we finish this code, I want to communicate with you on Facebook😁
oky😊
😘 NO ERRORS
this code work fine and no error ✔️
Thank you. I benefited from your information and the codes are working well. Thanks and appreciation
title and first name and last name -----> name of field in application or Field Key
In other words, when you click on the button(Stripe Checkout), and the purchase is successful, it is saved in the database. In the event that the purchase process fails, it is not saved to the database
I have this form through which the customer fills in the data, selects the product, and then presses the purchase button... I want the customer when I click on the purchase button, the data is stored in the database at the same time, but only when the purchase is valid i.e. when this phrase appears "Thank you for your payment"
As in the previous example
I want another service if I don't bother you with my requests
Thank you very much ... the code works very well ..... all thanks and appreciation to you
When the "Thank you for your payment" message appears then the lightbox show
THANK YOU but the example in the link is completely different from what I want to do
Take a look at this example, then you should understand how to work with lightboxes and how to transfer data to them...
https://russian-dima.wixsite.com/meinewebsite/lightbox