{"action":"created","issue":{"url":"https://api.github.com/repos/AuthorizeNet/sdk-dotnet/issues/76","labels_url":"https://api.github.com/repos/AuthorizeNet/sdk-dotnet/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/AuthorizeNet/sdk-dotnet/issues/76/comments","events_url":"https://api.github.com/repos/AuthorizeNet/sdk-dotnet/issues/76/events","html_url":"https://github.com/AuthorizeNet/sdk-dotnet/issues/76","id":63023915,"number":76,"title":"Illegal child notes when rendering profileTransAuthCapture via CIM","user":{"login":"lorddev","id":2220085,"avatar_url":"https://avatars.githubusercontent.com/u/2220085?v=3","gravatar_id":"","url":"https://api.github.com/users/lorddev","html_url":"https://github.com/lorddev","followers_url":"https://api.github.com/users/lorddev/followers","following_url":"https://api.github.com/users/lorddev/following{/other_user}","gists_url":"https://api.github.com/users/lorddev/gists{/gist_id}","starred_url":"https://api.github.com/users/lorddev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorddev/subscriptions","organizations_url":"https://api.github.com/users/lorddev/orgs","repos_url":"https://api.github.com/users/lorddev/repos","events_url":"https://api.github.com/users/lorddev/events{/privacy}","received_events_url":"https://api.github.com/users/lorddev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-19T15:56:11Z","updated_at":"2015-05-20T20:24:10Z","closed_at":"2015-05-20T20:24:10Z","body":"STR:\r\n\r\n            var gateway = new CustomerGateway(_apiLogin, _transactionKey, _serviceMode);\r\n\r\n            var order = new Order(_customerProfileId, _paymentProfileId, null)\r\n            {\r\n                Amount = amount,\r\n                Description = placeholder\r\n            };\r\n\r\n            IGatewayResponse response = null;\r\n            \r\n            switch (_authType)\r\n            {\r\n                case \"AUTH_CAPTURE\":\r\n                    response = gateway.AuthorizeAndCapture(order);\r\n                    break;\r\n                default:\r\n                    throw new NotImplementedException(\"derp.\");\r\n            }\r\n\r\nResult:\r\n\r\n> \"exceptionMessage\": \"Error processing request: E00003 - The element 'profileTransAuthCapture' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'customerPaymentProfileId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'tax, shipping, duty, lineItems, customerProfileId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.\",\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/AuthorizeNet/sdk-dotnet/issues/comments/104024436","html_url":"https://github.com/AuthorizeNet/sdk-dotnet/issues/76#issuecomment-104024436","issue_url":"https://api.github.com/repos/AuthorizeNet/sdk-dotnet/issues/76","id":104024436,"user":{"login":"brianmc","id":1022976,"avatar_url":"https://avatars.githubusercontent.com/u/1022976?v=3","gravatar_id":"","url":"https://api.github.com/users/brianmc","html_url":"https://github.com/brianmc","followers_url":"https://api.github.com/users/brianmc/followers","following_url":"https://api.github.com/users/brianmc/following{/other_user}","gists_url":"https://api.github.com/users/brianmc/gists{/gist_id}","starred_url":"https://api.github.com/users/brianmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianmc/subscriptions","organizations_url":"https://api.github.com/users/brianmc/orgs","repos_url":"https://api.github.com/users/brianmc/repos","events_url":"https://api.github.com/users/brianmc/events{/privacy}","received_events_url":"https://api.github.com/users/brianmc/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T20:24:10Z","updated_at":"2015-05-20T20:24:10Z","body":"Hi @lorddev   The standard createTransaction method is definitely the way to go for charging profiles going forward.  Here's the sample from our API Reference http://developer.authorize.net/api/reference/index.html#payment-transactions-charge-a-customer-profile\r\n\r\nWe have a few minor updates to this method still outstanding and then we'll be deprecating the CIM Gateway method http://developer.authorize.net/api/reference/index.html#charge-customer-profiles\r\n\r\nLet me know if you're not ok with closing this issue based on this approach."}}