Since PHD returns a payment id after a attempting a payment this is what is used to check the state of a payment if we do not have this we cannot check and will get an error from phd. To avoid this we make sure we have an id in the right form before attempting to check if we do not the payment is in a unknown state.
Description
Since PHD returns a payment id after a attempting a payment this is what is used to check the state of a payment if we do not have this we cannot check and will get an error from phd. To avoid this we make sure we have an id in the right form before attempting to check if we do not the payment is in a unknown state.
closes: https://github.com/cashubtc/cdk/issues/384
Suggested CHANGELOG Updates
FIXED
cdk-phd: Error on check if we do not have the payment id ([thesimplekid])
Checklist
just final-check
before committing