developer:soap-1.6:methods:savecard

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

developer:soap-1.6:methods:savecard [2012/07/03 09:58]
tem created
developer:soap-1.6:methods:savecard [2014/01/23 17:04] (current)
yura [C# (.Net)]
Line 54: Line 54:
  
 ?> ?>
 +</​code>​
 +
 +==== C# (.Net) ====
 +
 +<code c#>
 +private void btnruntransaction_Click(object sender, EventArgs e)
 +        {
 +            usaepay.usaepayService client = getClient();​
 +            usaepay.ueSecurityToken token = getToken();
 +
 +          ​
 +            usaepay.CreditCardData card = new usaepay.CreditCardData();​
 +            card.CardNumber = "​4444555566667779";​
 +            card.CardExpiration = "​0914";​
 +
 +            usaepay.CreditCardToken cctoken = new usaepay.CreditCardToken();​
 +
 +            try
 +            {
 +                cctoken = client.saveCard(token,​ card);
 +
 +              ​
 +                    MessageBox.Show(string.Concat("​Card Saved: ",​cctoken.CardRef));​
 +               
 +            }
 +            catch (Exception err)
 +            {
 +                MessageBox.Show(err.Message);​
 +            }
 +
 +
 +        }
 </​code>​ </​code>​
  
developer/soap-1.6/methods/savecard.1341334697.txt.gz ยท Last modified: 2012/07/03 09:58 by tem

Page Tools