Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only split/explode the payment meta by ":" once #232

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jan 18, 2021

  1. Only split/explode the payment meta by ":" once

    Some payment gateway (like Square) tokens include a ':' character in the token.
    When exporting payment gateway data we concat 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.
    
    Example Square export value:
    "_wc_square_credit_card_payment_token:ccof:xyz|_wc_square_credit_card_customer_id:abc"
    james-allan committed Jan 18, 2021
    Configuration menu
    Copy the full SHA
    89958dc View commit details
    Browse the repository at this point in the history