{"_id":"59cab74b95e8dd001031eee7","project":"55b933b3146ef121002158d3","version":{"_id":"5632a5e549e16d0d00122443","__v":6,"project":"55b933b3146ef121002158d3","createdAt":"2015-10-29T23:04:05.701Z","releaseDate":"2015-10-29T23:04:05.701Z","categories":["5632a5e749e16d0d00122444","5632a5e749e16d0d00122445","5632a5e749e16d0d00122446","5632a5e749e16d0d00122447","5632a5e749e16d0d00122448","5632a5e749e16d0d00122449","5632a5e749e16d0d0012244a","5632a5e749e16d0d0012244b","5632a5e749e16d0d0012244c","5632a5e749e16d0d0012244d","5632a5e749e16d0d0012244e","5632a5e749e16d0d0012244f","5632a5e749e16d0d00122450","5632b179df556c0d00cd095b","564e13053b2b4a19000cd69b","59caa9df65accc001a489c95","59cab50965accc001a489d28","59cadd464ab7b70024378e74"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.1.0","version":"1.1"},"category":{"_id":"59cab50965accc001a489d28","project":"55b933b3146ef121002158d3","version":"5632a5e549e16d0d00122443","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-09-26T20:14:01.669Z","from_sync":false,"order":8,"slug":"tokenization","title":"Tokenization"},"user":"55b932ba8fd1a02b00f496c8","githubsync":"","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-09-26T20:23:39.299Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"[block:api-header]\n{\n  \"title\": \"Description\"\n}\n[/block]\nCreating Credit Card token. \n[block:api-header]\n{\n  \"title\": \"Syntax\"\n}\n[/block]\n[CreditCardToken](doc:creditcardtoken)     saveCard ( [ueSecurityToken](doc:uesecuritytoken) Token, [CreditCardData](doc:creditcarddata)  CreditCardData ) \n[block:api-header]\n{\n  \"title\": \"Arguments\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Type\",\n    \"h-1\": \"Name\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"[ueSecurityToken](doc:uesecuritytoken)\",\n    \"0-1\": \"Token\",\n    \"0-2\": \"Merchant security token: used to identify merchant and validate transaction.\",\n    \"1-0\": \"[CreditCardData](doc:creditcarddata)\",\n    \"1-1\": \"CreditCardData\",\n    \"1-2\": \"Object containing credit card data.\"\n  },\n  \"cols\": 3,\n  \"rows\": 2\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Return Value\"\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"CreditCardToken\",\n    \"0-1\": \"Returns object containing card token data (including card ref)\"\n  },\n  \"cols\": 2,\n  \"rows\": 1\n}\n[/block]\n\n[block:api-header]\n{\n  \"title\": \"Examples\"\n}\n[/block]\nPHP\n\nFor directions on how to set up the WSDL link, create “$token” and “$client”, go to [PHP Guide](doc:php-guide) \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<?php \\n \\ntry { \\n \\n    $CreditCardData => array( \\n      'CardNumber' => '4444555566667779', \\n      'CardExpiration' => '0909', \\n      'CardCode' => '999' \\n      ) \\n    ); \\n \\n  $token=$client->saveCard($token, $CreditCardData); \\n \\n \\n} \\n \\ncatch (SoapFault $e) { \\n  die(\\\"saveCard failed :\\\" .$e->getMessage()); \\n} \\n \\n?>\",\n      \"language\": \"php\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"private void btnruntransaction_Click(object sender, EventArgs e)\\n        {\\n            usaepay.usaepayService client = getClient();\\n            usaepay.ueSecurityToken token = getToken();\\n \\n \\n            usaepay.CreditCardData card = new usaepay.CreditCardData();\\n            card.CardNumber = \\\"4444555566667779\\\";\\n            card.CardExpiration = \\\"0914\\\";\\n \\n            usaepay.CreditCardToken cctoken = new usaepay.CreditCardToken();\\n \\n            try\\n            {\\n                cctoken = client.saveCard(token, card);\\n \\n \\n                    MessageBox.Show(string.Concat(\\\"Card Saved: \\\",cctoken.CardRef));\\n \\n            }\\n            catch (Exception err)\\n            {\\n                MessageBox.Show(err.Message);\\n            }\\n \\n \\n        }\",\n      \"language\": \"csharp\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" \\n   xmlns:ns1=\\\"urn:usaepay\\\" \\n   xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\"\\n   xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" \\n   xmlns:SOAP-ENC=\\\"http://schemas.xmlsoap.org/soap/encoding/\\\" \\n   SOAP-ENV:encodingStyle=\\\"http://schemas.xmlsoap.org/soap/encoding/\\\">\\n<SOAP-ENV:Body>\\n<ns1:saveCard>\\n<Token xsi:type=\\\"ns1:ueSecurityToken\\\">\\n<ClientIP xsi:type=\\\"xsd:string\\\">192.168.0.1</ClientIP>\\n<PinHash xsi:type=\\\"ns1:ueHash\\\">\\n<HashValue xsi:type=\\\"xsd:string\\\">da4f177fb82a516da7b93cd725c0ac0fbead2ef4</HashValue>\\n<Seed xsi:type=\\\"xsd:string\\\">13413324111907933573</Seed>\\n<Type xsi:type=\\\"xsd:string\\\">sha1</Type>\\n</PinHash>\\n<SourceKey xsi:type=\\\"xsd:string\\\">_Ss7g8t6UW9b1Py6474F5Z1A8fmo22x2</SourceKey>\\n</Token>\\n<CreditCardData xsi:type=\\\"ns1:CreditCardData\\\">\\n<CardExpiration xsi:type=\\\"xsd:string\\\">2013-02</CardExpiration>\\n<CardNumber xsi:type=\\\"xsd:string\\\">4444-5555-6666-7779</CardNumber>\\n</CreditCardData>\\n</ns1:saveCard>\\n</SOAP-ENV:Body>\\n</SOAP-ENV:Envelope>\",\n      \"language\": \"xml\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"savecard","type":"basic","title":"saveCard"}
[block:api-header] { "title": "Description" } [/block] Creating Credit Card token. [block:api-header] { "title": "Syntax" } [/block] [CreditCardToken](doc:creditcardtoken) saveCard ( [ueSecurityToken](doc:uesecuritytoken) Token, [CreditCardData](doc:creditcarddata) CreditCardData ) [block:api-header] { "title": "Arguments" } [/block] [block:parameters] { "data": { "h-0": "Type", "h-1": "Name", "h-2": "Description", "0-0": "[ueSecurityToken](doc:uesecuritytoken)", "0-1": "Token", "0-2": "Merchant security token: used to identify merchant and validate transaction.", "1-0": "[CreditCardData](doc:creditcarddata)", "1-1": "CreditCardData", "1-2": "Object containing credit card data." }, "cols": 3, "rows": 2 } [/block] [block:api-header] { "title": "Return Value" } [/block] [block:parameters] { "data": { "0-0": "CreditCardToken", "0-1": "Returns object containing card token data (including card ref)" }, "cols": 2, "rows": 1 } [/block] [block:api-header] { "title": "Examples" } [/block] PHP For directions on how to set up the WSDL link, create “$token” and “$client”, go to [PHP Guide](doc:php-guide) [block:code] { "codes": [ { "code": "<?php \n \ntry { \n \n $CreditCardData => array( \n 'CardNumber' => '4444555566667779', \n 'CardExpiration' => '0909', \n 'CardCode' => '999' \n ) \n ); \n \n $token=$client->saveCard($token, $CreditCardData); \n \n \n} \n \ncatch (SoapFault $e) { \n die(\"saveCard failed :\" .$e->getMessage()); \n} \n \n?>", "language": "php" } ] } [/block] [block:code] { "codes": [ { "code": "private void btnruntransaction_Click(object sender, EventArgs e)\n {\n usaepay.usaepayService client = getClient();\n usaepay.ueSecurityToken token = getToken();\n \n \n usaepay.CreditCardData card = new usaepay.CreditCardData();\n card.CardNumber = \"4444555566667779\";\n card.CardExpiration = \"0914\";\n \n usaepay.CreditCardToken cctoken = new usaepay.CreditCardToken();\n \n try\n {\n cctoken = client.saveCard(token, card);\n \n \n MessageBox.Show(string.Concat(\"Card Saved: \",cctoken.CardRef));\n \n }\n catch (Exception err)\n {\n MessageBox.Show(err.Message);\n }\n \n \n }", "language": "csharp" } ] } [/block] [block:code] { "codes": [ { "code": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" \n xmlns:ns1=\"urn:usaepay\" \n xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"\n xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \n xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" \n SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">\n<SOAP-ENV:Body>\n<ns1:saveCard>\n<Token xsi:type=\"ns1:ueSecurityToken\">\n<ClientIP xsi:type=\"xsd:string\">192.168.0.1</ClientIP>\n<PinHash xsi:type=\"ns1:ueHash\">\n<HashValue xsi:type=\"xsd:string\">da4f177fb82a516da7b93cd725c0ac0fbead2ef4</HashValue>\n<Seed xsi:type=\"xsd:string\">13413324111907933573</Seed>\n<Type xsi:type=\"xsd:string\">sha1</Type>\n</PinHash>\n<SourceKey xsi:type=\"xsd:string\">_Ss7g8t6UW9b1Py6474F5Z1A8fmo22x2</SourceKey>\n</Token>\n<CreditCardData xsi:type=\"ns1:CreditCardData\">\n<CardExpiration xsi:type=\"xsd:string\">2013-02</CardExpiration>\n<CardNumber xsi:type=\"xsd:string\">4444-5555-6666-7779</CardNumber>\n</CreditCardData>\n</ns1:saveCard>\n</SOAP-ENV:Body>\n</SOAP-ENV:Envelope>", "language": "xml" } ] } [/block]