Visa Developer Community

Highlighted
Regular Visitor

Newbie Question - Visa Checkout Payment workflow

Hi guys,

I'm struggling a bit to understand the workflow of Visa Checkout

so I've managed to initialise the visa checkout button in my page, I have put through a payment which has returned a "success" result.

At this point is the payment made (as in funds are transferred)? Or do I need to do something further?

3 REPLIES
Regular Contributor

Re: Newbie Question - Visa Checkout Payment workflow

Hi,

Thanks for your question.

 

Please see the below code snippet. That particular callback function will be invoked upon a successful payment. So if you are getting a succesful message from that paticular function; that means the payment has been made successfully and you can display the response appropriately to the client in your web application.

Otherwise, if payment has been voided/canceled or unsuccessful, one of the other functions will be invoked in respective to the out come.

 

Hope this clarrifies and helps.

Should you need further information/clarification kindly revert back to us.

 

V.on("payment.success", function(payment)
		
	  {
		
		document.getElementById("id_contents").textContent = JSON.stringify(payment);
		alert("payment success");
		
	  }
	  
	  );

 

Cheers

Lakshan

Regular Visitor

Re: Newbie Question - Visa Checkout Payment workflow

Thanks Lakshan - I was a bit thrown by the documentation which indicated that you had to send some kind of update after this.
Regular Visitor

Re: Newbie Question - Visa Checkout Payment workflow

Need to after complete work bank account,nambur ,cvv