{"action":"closed","issue":{"url":"https://api.github.com/repos/AuthorizeNet/sample-code-php/issues/23","labels_url":"https://api.github.com/repos/AuthorizeNet/sample-code-php/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/AuthorizeNet/sample-code-php/issues/23/comments","events_url":"https://api.github.com/repos/AuthorizeNet/sample-code-php/issues/23/events","html_url":"https://github.com/AuthorizeNet/sample-code-php/issues/23","id":117855837,"number":23,"title":"Charge customer profile - returning customer (and saved card)","user":{"login":"peppeocchi","id":4161743,"avatar_url":"https://avatars.githubusercontent.com/u/4161743?v=3","gravatar_id":"","url":"https://api.github.com/users/peppeocchi","html_url":"https://github.com/peppeocchi","followers_url":"https://api.github.com/users/peppeocchi/followers","following_url":"https://api.github.com/users/peppeocchi/following{/other_user}","gists_url":"https://api.github.com/users/peppeocchi/gists{/gist_id}","starred_url":"https://api.github.com/users/peppeocchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peppeocchi/subscriptions","organizations_url":"https://api.github.com/users/peppeocchi/orgs","repos_url":"https://api.github.com/users/peppeocchi/repos","events_url":"https://api.github.com/users/peppeocchi/events{/privacy}","received_events_url":"https://api.github.com/users/peppeocchi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-19T16:50:01Z","updated_at":"2015-11-26T19:17:31Z","closed_at":"2015-11-26T19:17:31Z","body":"The sample code [here](https://github.com/AuthorizeNet/sample-code-php/blob/master/PaymentTransactions/charge-customer-profile.php) covers only a scenario when a customer profile and a customer payment profile are created.\r\n\r\nWhat if I already have a customer profile id and a customer payment profile id?\r\nHow should I use the `TransactionRequestType `?\r\n\r\nFrom those ids I'm retrieving the customer profile and the customer profile id (when retrieving that data an instance of `*MaskedType ` is returned that is useless [here](https://github.com/AuthorizeNet/sample-code-php/blob/master/PaymentTransactions/charge-customer-profile.php#L142)), how can I set a customerProfileId and a customerPaymentProfileId in that object?"}}