Way for manager state changes in a purchase (webhooks)

Solved! Go to solution
lucascorrea
Regular Visitor

Way for manager state changes in a purchase (webhooks)

Hi Visa Community,

 

I'll do an integration with Visa Checkout button and I need to take of bellow doubt:

 

- How I do for follow changes of status payment after the purchase with Visa Checkout? Is there a way to connect with WebHooks to manager it?

 

Thanks in advance!

6 REPLIES 6
API_Products
Visa Developer Support Specialist

Re: Way for manager state changes in a purchase (webhooks)

Hey @lucascorrea,

 

Can you please provide your use case and what it is that you're trying to do? If you'd like to integrate with Visa Checkout, please follow the integration guides below.

https://developer.visa.com/capabilities/visa_checkout/docs 

 

You'll need to remember that you'll need to have an active merchant acquiring account to process Visa Checkout transactions. Please let us know if the integration guides help answer your question or if I can provide you with further assistance. I'm happy to help.

 




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

lucascorrea
Regular Visitor

Re: Way for manager state changes in a purchase (webhooks)

Hi @API_Products ,
Thanks for response.
I had read this doc and not found about receive the update about the payment without make a Get request to API of Visa.

For exemplo:
The user make a purchase through button Visa Checkout, I receive the payload from event payment.success, right? From there I would like do a register in a service that tells me when has update status on this purchase. Is there something like this? It is well known as Web Hooks.

Many thanks!

 

API_Products
Visa Developer Support Specialist

Re: Way for manager state changes in a purchase (webhooks)

Hey @lucascorrea

 

Please take a look at this documentation for checking payment status and webhooks. Here's the link below for our newest Developer documentation.   https://developer.visa.com/products/visa_checkout  

 

 




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

lucascorrea
Regular Visitor

Re: Way for manager state changes in a purchase (webhooks)

Hi Diana

I can't find in this documentation, nothing about hooks. So, I think that I should make a request regularly to API Visa to know about one transaction, can you confirm if that is the only way to this?

Let me clear in why I'm looking for webhooks, (In a hypothetical situation)
If one client buy something with Credit Card, in the first moment the purchase was successful, but a few hours later, the purchase is canceled by the client. How Do I know about this change in status of purchase programmticly? 

Should I make a request each 5 minutes, for exemploe, waiting for changes, or there is a way which I can set one listener in API Visa for receive in my server any changes that can happen about the purchase?

Thanks in advance.
Have a great day!

API_Products
Visa Developer Support Specialist

Re: Way for manager state changes in a purchase (webhooks)

Hey @lucascorrea,

 

Thanks for providing the hypothetical situation, however, this is not the way Visa Checkout (VCO) functions.

So a Webhook is a tool for having VCO (or any processor) push an update on the status of a transaction that is processed by a third party. Paypal because they actually process the payment, I believe has a webhook program, to tell the merchant the status of the payment.

 

Visa checkout just sends payment information to the merchant. We do not process the order ourselves, it is a means to send payment and shipping information directly to the merchant with one login, rather than typing in card information. Because the status of the "order" is not related to Visa Checkout, this feature is not needed.

There is an option to update the information for Visa Checkout, so the customer can see the order, however, there is no way for the customer to affect the order through Visa Checkout.

 




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

lucascorrea
Regular Visitor

Re: Way for manager state changes in a purchase (webhooks)

Hi Diana.

So, it's not possible to change the transaction by payer side. In this way it is ok don't need a hook.

Thanks Diana for help.
😃