Ingenico-ePayments / connect-sdk-java

Ingenico Connect Java Server SDK
https://docs.connect.worldline-solutions.com/documentation/sdk/server/java/
Other
31 stars 23 forks source link

Hosted Checkout Payment success webhook #18

Closed lstoars closed 5 years ago

lstoars commented 5 years ago

Hi when client payment success by Hosted Checkout , webhook set in where ? i can't find it ,only find a returnUrl。

rob-spoor commented 5 years ago

If your question is how you will get webhooks events for payments performed from a hosted checkout, these will be regular payment events (e.g. payment.paid) with the hostedCheckoutSpecificOutput.hostedCheckoutId property set. See Get payment for more information.

lstoars commented 5 years ago

If your question is how you will get webhooks events for payments performed from a hosted checkout, these will be regular payment events (e.g. payment.paid) with the hostedCheckoutSpecificOutput.hostedCheckoutId property set. See Get payment for more information.

But i don't kown customer when is the payment successful , if use Get payment i need timer request (e.g. 1 min 1 times) , Have you taken the initiative to notify us of the system after success?

IngenicoEPayments commented 5 years ago

As soon as there is a successful (or unsuccessful) payment created using the hosted checkout it will fire of a webhook event. This event will let you know what the consumer has done. When the consumer doesn’t complete a payment (doesn’t press the pay button) you will not receive any webhook events. There is no need to poll for the status when you use webhooks.

lstoars commented 5 years ago

As soon as there is a successful (or unsuccessful) payment created using the hosted checkout it will fire of a webhook event. This event will let you know what the consumer has done. When the consumer doesn’t complete a payment (doesn’t press the pay button) you will not receive any webhook events. There is no need to poll for the status when you use webhooks.

thank you reply ,but i can't find how to set webhook url

rob-spoor commented 5 years ago

All documentation about webhooks can be found at https://epayments.developer-ingenico.com/documentation/webhooks/.

lstoars commented 5 years ago

All documentation about webhooks can be found at https://epayments.developer-ingenico.com/documentation/webhooks/.

sanbox configcenter my account can't find webhooks keys , webhooks keys only in live ? my sanbox merchant is 3376

IngenicoEPayments commented 5 years ago

Webhooks are sadly not yet available in our sandbox environment. All other environments (preproduction as well as production) accessible to merchants do have this functionality available.

lstoars commented 5 years ago

Webhooks are sadly not yet available in our sandbox environment. All other environments (preproduction as well as production) accessible to merchants do have this functionality available.

ok, thank you very much.