bitpay / jsonPaymentProtocol

JSON Payment Protocol Interface
46 stars 58 forks source link

paymentUrlObject.protocol checking against wrong strings #6

Closed zacleids closed 6 years ago

zacleids commented 6 years ago

you check against the strings 'http' and 'https', but you need to include the colon, making it 'http:' and 'https:'. Without the colon, invoice urls starting with https are falsely throwing errors.