Skip to content

Commit 6977943

Browse files
committed
fixed bug where spaces in the item_name werent getting escaped and broke the QR code link
1 parent ffbca1d commit 6977943

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/paypal-button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ PAYPAL.apps = PAYPAL.apps || {};
151151
key;
152152

153153
for (key in data) {
154-
url += key + '=' + data[key] + '&';
154+
url += key + '=' + encodeURIComponent(data[key]) + '&';
155155
}
156156

157157
url = encodeURIComponent(url);

0 commit comments

Comments
 (0)