I do not know/understand Corvid, so I’m hoping perhaps someone can either provide the code (rather than linking to a page where it is explained) or a link to a step-by-step tutorial video or something.
I need the Wix Pay Button (not a paypal button, but the actual Pay Button that is linked to the Wix back-end/Wix payments) to redirect the user after successful payment to a page that we have created.
It really seems like this is a basic thing that you should be able to specify in the button settings, but alas, it is not.
So if yes, perhaps you could doing something like…
export function myButton_click(event, $w) {
createMyPayment()
.then( (payment) => {
wixPay.startPayment(payment.id);
//expand code here with your own (after payment was done).
//redirection...
wixLocation.to("http://wix.com");
} );
}
How do you get to this section? I am in Dev Mode trying to code the button to redirect and it won’t let me code the button. Can I just copy and paste this with the appropriate costs and link in the Dev coding on that page?
Because of the structure of the product we are selling we cannot use Wix Stores, and so I need this button (see image) to redirect to another page within the website.
This is the page that I need to add code for this Pay Button to redirect