Troubleshooting
Order is not generated on the Fynd Commerce.
The extension may not have properly updated the status of payment through the updatePaymentSession
API. In the updatePaymentSession API, we accept status from these only: started, complete, failed, pending. You should ensure that you properly map the payment status.
Unable to read properties of null (reading expires_in
)
The extension is not installed correctly or the access token is expired. Make sure you use refresh_token
to update access_token
before it expires.
What is the behavior of updating the payment status? What happens if extension updates status multiple times?
API will throw any error. Its flow is as follows:
- If API is called multiple times with the same payment status, e.g.,
complete
, only the first API will be taken, and subsequent API will be ignored. - If the current status is failed, pending, or started and the API marks it
complete
then platform will update it tocomplete
. But if the invalid status is being marked, for example, the current status iscomplete
and update status isstarted
, then it will be ignored. - However, the extension should also ensure that an invalid status is not sent to update status.