-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
using TestApp.Common; | ||
using TestApp.Transaction; | ||
|
||
//using TestApp.Transaction; | ||
using TestApp.Services; | ||
namespace TestApp | ||
{ | ||
class Program | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
Utility.ConfigureInstance(); | ||
TransactionSamples.ProcessCreditCardSale(); | ||
|
||
//TransactionSamples.ProcessCreditCardSale(); | ||
ServicesSamples.PaymentAccountCreate(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using VXEN.Models.Services; | ||
using VXEN.Services; | ||
|
||
namespace TestApp.Services | ||
{ | ||
public partial class ServicesSamples | ||
{ | ||
public static void PaymentAccountCreate() | ||
{ | ||
typePaymentAccountCreateWithTransID paymentAccountCreateWithTransID = new typePaymentAccountCreateWithTransID(); | ||
typeCard card = new typeCard(); | ||
card.CardNumber = "12345678"; | ||
card.WalletType = typeCardWalletType.Item2; | ||
|
||
typePaymentAccount paymentAccount = new typePaymentAccount(); | ||
paymentAccount.PaymentAccountType = "0"; | ||
|
||
paymentAccountCreateWithTransID.Application = Session.Instance.GetApplication<typeApplication>(); | ||
paymentAccountCreateWithTransID.Credentials = Session.Instance.GetCredentials<typeCredentials>(); | ||
paymentAccountCreateWithTransID.PaymentAccount = paymentAccount; | ||
paymentAccountCreateWithTransID.Card = card; | ||
|
||
var xml = Serialization.Serialize<typePaymentAccountCreateWithTransID>(paymentAccountCreateWithTransID); | ||
Console.WriteLine("PAK"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters