Some payment gateway tokens, like Square, include a ':' character in the token itself. When exporting payment gateway data we concatenate the key and meta value with a ':' (see example below) and so splitting the value by ':' resulted in only saving the first half of the token.
This commit ensures we only explode/split the value once so the second half of the key is preserved.
Steps to test this PR:
Export your own Square subscriptions (only 1 is needed) via WooCommerce > Export Subscriptions making sure to include the payment data or...
Issue: #221
Description:
Some payment gateway tokens, like Square, include a ':' character in the token itself. When exporting payment gateway data we concatenate the key and meta value with a ':' (see example below) and so splitting the value by ':' resulted in only saving the first half of the token.
This commit ensures we only explode/split the value once so the second half of the key is preserved.
Steps to test this PR:
master
the resulting subscription's payment tokens will look like this: https://d.pr/i/xdBDRj