WebHook not firing

Hello,
I have registered a WebHook to receive changes for
"eventTypes": [ "ORDER_OPENED", "ORDER_COMPLETED", "ORDER_CANCELLED", "ORDER_UPDATED" ]

After that, i make a payment using
Intent collectPaymentIntent = new Intent(Intents.ACTION_COLLECT_PAYMENT); collectPaymentIntent.putExtra(Intents.INTENT_EXTRAS_PAYMENT, payment); startActivityForResult(collectPaymentIntent, COLLECT_PAYMENT_REQUEST);

But the webhook is not fired, what do i have to do?
Thanks

Hi there,

Payment fragment flow does not create an order by itself, it creates a transaction. If you want to create an order and associate the transaction with that order you would set the order id in the payment object you are sending in the Intent and after the payment is completed save the order (You can use IPoyntOrderService.createOrder method). If you just want to receive webhooks for transactions you should subscribe to these event types:

TRANSACTION_AUTHORIZED
TRANSACTION_CAPTURED
TRANSACTION_VOIDED
TRANSACTION_REFUNDED
TRANSACTION_DECLINED
TRANSACTION_SAVED
TRANSACTION_UPDATED