monero-integrations / monerowp

Monero WooCommerce Plugin for Wordpress
MIT License
105 stars 74 forks source link

QR URI fix with amount and payment id #57

Closed pitifultermite closed 6 years ago

serhack commented 6 years ago

Hi, sorry for the late answer but I was busy.

This function returns a bad url (example: monero%3Aaddress%3Ftx_amount%3Damount%26tx_payment_id%3Dpaymentid ) . Then I am requesting changes.

pitifultermite commented 6 years ago

This is intentional as the URI is passed to the QR generator script at https://api.qrserver.com/v1/create-qr-code/? as the data parameter. And hence the URI data needs to be urlencoded. Tested and works.