Hello. We’ve integrated webhooks (Django rest). Basically what the user sees on frontend once they click is a spinner. Meanwhile we fire purchasePackage which in no time upon finishing should fire a webhook to our backend.. on the backend we create a Payment object with the transaction id from the webhook. On frontend as the spinner is spinning, after the purchasePackage request goes through, we wanted to begin verifying whether the backend has synced already (aka created the payment object). We wanted to call in a loop payment/<payment_id>/state … but for that we need transaction_id that was send in the webhook which is what we assumed will be returned from purchasePackage as part of the response … but as we understood, we’re not going to receive the transaction ID in the response of purchasePackage at all? … so what is the best way with capacitor to proceed to get the correct transaction id? Or do we have to completely change this logic ..thank you
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.