{"action":"opened","issue":{"url":"https://api.github.com/repos/braintree/braintree_ios/issues/421","repository_url":"https://api.github.com/repos/braintree/braintree_ios","labels_url":"https://api.github.com/repos/braintree/braintree_ios/issues/421/labels{/name}","comments_url":"https://api.github.com/repos/braintree/braintree_ios/issues/421/comments","events_url":"https://api.github.com/repos/braintree/braintree_ios/issues/421/events","html_url":"https://github.com/braintree/braintree_ios/issues/421","id":364694803,"node_id":"MDU6SXNzdWUzNjQ2OTQ4MDM=","number":421,"title":"V4.10 tokenizeCard Got 'Expiration date is required ' when nonce is used by the server","user":{"login":"xuaninbox","id":5108256,"node_id":"MDQ6VXNlcjUxMDgyNTY=","avatar_url":"https://avatars0.githubusercontent.com/u/5108256?v=4","gravatar_id":"","url":"https://api.github.com/users/xuaninbox","html_url":"https://github.com/xuaninbox","followers_url":"https://api.github.com/users/xuaninbox/followers","following_url":"https://api.github.com/users/xuaninbox/following{/other_user}","gists_url":"https://api.github.com/users/xuaninbox/gists{/gist_id}","starred_url":"https://api.github.com/users/xuaninbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuaninbox/subscriptions","organizations_url":"https://api.github.com/users/xuaninbox/orgs","repos_url":"https://api.github.com/users/xuaninbox/repos","events_url":"https://api.github.com/users/xuaninbox/events{/privacy}","received_events_url":"https://api.github.com/users/xuaninbox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-28T00:03:47Z","updated_at":"2018-09-28T00:03:47Z","closed_at":null,"author_association":"NONE","body":"### General information\r\n\r\n* SDK/Library version: 4.10\r\n* Environment: Production\r\n* iOS Version and Device: 12\r\n* Integration type and version:  CocoaPods\r\n\r\n### Issue description\r\n\r\nWhen our backend receive the tokenizeCard nonce and try to create a payment method, the backend return \"Expiration date is required\" Error.\r\n\r\niOS:\r\n\r\n```\r\nvar parameters = [\"expiration_month\": expirationMonth, \"expiration_year\": expirationYear, \"cvv\": cvv, \"billing_address\": [\"postal_code\": postalCode]] as [String: Any]\r\nlet card = BTCard(parameters: parameters)\r\ncardClient.tokenizeCard(card) { tokenizedCard, error in\r\n\r\n    >>> Send tokenizedCard?.nonce to backend\r\n\r\n}\r\n```\r\n\r\nBackend:\r\n\r\n```\r\ngateway.paymentMethod.create({\r\n      customerId,\r\n      paymentMethodNonce,\r\n      options: {\r\n        verifyCard: true\r\n      }\r\n    }, callbackFunction)\r\n```\r\n\r\nFailed with:\r\n\r\n```\r\nErrorResponse {\r\n     errors: \r\n      ValidationErrorsCollection {\r\n        validationErrors: {},\r\n        errorCollections: [Object],\r\n        imageUrl: 'https://assets.braintreegateway.com/payment_method_logo/unknown.png' },\r\n     params: { paymentMethod: [Object], merchantId: 'XXX' },\r\n     message: 'Expiration date is required.',\r\n     success: false,\r\n     paymentMethod: \r\n      UnknownPaymentMethod {\r\n        validationErrors: {},\r\n        errorCollections: [Object],\r\n        imageUrl: 'https://assets.braintreegateway.com/payment_method_logo/unknown.png' } }\r\n```\r\n\r\n\r\nThe backend and iOS haven't been changed in the last 6 month and this issue only start to show up 1 or 2 days ago. Android also works without ant issue. Is there a deprecation on the older sdk that caused this issue?\r\n\r\nThanks!"}}
{"actor":{"display_login":"xuaninbox"}}