Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ChaseWiseman/c829cc6d12e66589a3327b1221d6a426 to your computer and use it in GitHub Desktop.
Save ChaseWiseman/c829cc6d12e66589a3327b1221d6a426 to your computer and use it in GitHub Desktop.
Decode extra options when processing profile requests
<?php // only include this if needed
add_filter( 'wc_authorize_net_cim_api_request_data', function( $data ) {
if ( ! empty( $data['createCustomerProfileTransactionRequest']['extraOptions'] ) ) {
$data['createCustomerProfileTransactionRequest']['extraOptions'] = urldecode( $data['createCustomerProfileTransactionRequest']['extraOptions'] );
}
return $data;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment