cashubtc / cdk

Cashu Development Kit
MIT License
87 stars 44 forks source link

fix: check phd has valid payment id #467

Closed thesimplekid closed 4 days ago

thesimplekid commented 5 days ago

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