VantagePay.Models
1.2026.510.2
dotnet add package VantagePay.Models --version 1.2026.510.2
NuGet\Install-Package VantagePay.Models -Version 1.2026.510.2
<PackageReference Include="VantagePay.Models" Version="1.2026.510.2" />
<PackageVersion Include="VantagePay.Models" Version="1.2026.510.2" />
<PackageReference Include="VantagePay.Models" />
paket add VantagePay.Models --version 1.2026.510.2
#r "nuget: VantagePay.Models, 1.2026.510.2"
#:package VantagePay.Models@1.2026.510.2
#addin nuget:?package=VantagePay.Models&version=1.2026.510.2
#tool nuget:?package=VantagePay.Models&version=1.2026.510.2
VantagePay.Models
VantagePay.Models is the public model package for the VantagePay platform.
It provides strongly typed request/response models, lookup enums, and shared value objects for payments, merchants, consumers, tokens, notifications, and reporting.
This package can be used on its own, without the SDK, in any integration where you need the VantagePay data contracts.
Installation
dotnet add package VantagePay.Models
Or via NuGet Package Manager Console:
Install-Package VantagePay.Models
Supported Target Frameworks
| Target framework | Supported |
|---|---|
.NET 10 (net10.0) |
✅ |
.NET 9 (net9.0) |
✅ |
.NET 8 (net8.0) |
✅ |
.NET Standard 2.1 (netstandard2.1) |
✅ |
Package Scope
The package contains data models and related helpers only. It does not include:
- HTTP client implementations
- authentication/session orchestration
- request execution/retry logic
Namespace Overview
| Namespace | Purpose |
|---|---|
VantagePay.Models |
Shared package-level helpers such as JsonSettings |
VantagePay.Models.Authentication |
Login, password, OTP, token, and claim models |
VantagePay.Models.Common |
Shared value objects such as Address, ContactDetails, Location, IdentityDocument |
VantagePay.Models.Consumers |
Consumer profile, accounts, beneficiaries, KYC, and debit order models |
VantagePay.Models.Devices |
Device identity and platform models |
VantagePay.Models.Extensions |
Utility extensions (for example GetEnumDescription()) |
VantagePay.Models.Lookups |
Lookup enums and in-memory lookup datasets |
VantagePay.Models.Merchants |
Merchant profile, terminal, settlement, notification, and product models |
VantagePay.Models.Merchants.Products |
Merchant product catalog detail models |
VantagePay.Models.Notifications |
Email, SMS, push, and in-app notification payloads |
VantagePay.Models.Notifications.Requests |
Notification request models |
VantagePay.Models.Payments |
Payment, refund, transaction, source, destination, and status models |
VantagePay.Models.Payments.Requests |
Payment request models (PaymentRequest, MerchantPaymentRequest) |
VantagePay.Models.Payments.ApplePay |
Apple Pay payment response/token payload models |
VantagePay.Models.Payments.GooglePay |
Google Pay payment data/token payload models |
VantagePay.Models.Reporting |
Transaction and sales reporting response models |
VantagePay.Models.Tokens |
Card and bank account tokenization models |
Basic Usage
Building a Payment Request
using System.Collections.Generic;
using VantagePay.Models.Lookups;
using VantagePay.Models.Payments;
using VantagePay.Models.Payments.Requests;
var request = new PaymentRequest
{
YourReference = "ORDER-9001",
PaymentSources = new PaymentSources
{
MobileWallets = new List<MobileWalletSource>
{
new MobileWalletSource
{
MobileWalletOperator = MobileWalletOperator.MTN,
Msisdn = "233241234567",
AmountInCents = 10000,
Currency = Currency.GHS,
}
}
},
PaymentDestinations = new PaymentDestinations
{
Merchants = new List<MerchantDestination>
{
new MerchantDestination
{
MerchantReference = "merchant-reference",
AmountInCents = 10000,
Currency = Currency.GHS,
PaymentType = MerchantPaymentType.BuyingGoods,
}
}
}
};
Building a Card Tokenization Request
using VantagePay.Models.Lookups;
using VantagePay.Models.Tokens;
var tokenRequest = new CardRequest
{
CardNumber = "4111111111111111",
NameOnCard = "Jane Doe",
ExpiryMonth = Month.March,
ExpiryYear = 2027,
};
Key Model Concepts
Payment Composition
PaymentRequestcontainsPaymentSources(debit side) andPaymentDestinations(credit side).- Each side can contain multiple transaction legs (for example split-source or split-destination flows).
- Common per-transaction fields such as
AmountInCentsandCurrencyare defined on shared base models.
Amounts Use Minor Units
All monetary amounts are integer minor units (for example cents, kobo, ngwe).
Example: 2550 represents 25.50.
Payment References
PaymentResponse.Referenceis the primary payment reference returned after submission.PaymentStatusResponse.PaymentReferencelinks status payloads back to the same payment.
Status & Lifecycle
TransactionStatus represents transaction lifecycle states such as Processing, Success, Failed, and Indeterminate.
Lookups and Enums
The VantagePay.Models.Lookups namespace includes enums such as:
Bank, Channel, Country, Currency, IdentityDocumentType, Language, MerchantCategory, MobileWalletOperator, Month, ProductType, and RepeatInterval.
It also includes static lookup datasets such as:
BankData, CurrencyData, CountryData, GhanaBankData, SouthAfricaBankData, NigeriaBankData, MobileWalletOperatorData, and LanguageData.
Use GetEnumDescription() from VantagePay.Models.Extensions to read [Description] values.
Serialization
Models are designed for JSON and contract-based serialization, including:
System.Text.JsonNewtonsoft.JsonDataContract/DataMemberworkflows
The package also includes JsonSettings.Default (Newtonsoft.Json) for consistent VantagePay-oriented serialization settings.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- CreditCardValidator (>= 3.0.1)
- Newtonsoft.Json (>= 13.0.4)
- System.ComponentModel.Annotations (>= 5.0.0)
-
net10.0
- CreditCardValidator (>= 3.0.1)
- Newtonsoft.Json (>= 13.0.4)
- System.ComponentModel.Annotations (>= 5.0.0)
-
net8.0
- CreditCardValidator (>= 3.0.1)
- Newtonsoft.Json (>= 13.0.4)
-
net9.0
- CreditCardValidator (>= 3.0.1)
- Newtonsoft.Json (>= 13.0.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on VantagePay.Models:
| Package | Downloads |
|---|---|
|
VantagePay.SDK
VantagePay API wrapper and SDK for integrating into VantagePay payment, consumer and merchant services. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.2026.510.2 | 102 | 5/10/2026 |
| 1.2026.505.1 | 122 | 5/8/2026 |
| 1.2026.312.4 | 154 | 3/12/2026 |
| 1.2026.218.2 | 249 | 2/18/2026 |
| 1.2026.206.8 | 354 | 2/10/2026 |
| 1.2026.129.4 | 267 | 1/29/2026 |
| 1.2025.1211.4 | 708 | 12/11/2025 |
| 1.2025.1119.2 | 736 | 11/19/2025 |
| 1.2025.1112.3 | 734 | 11/12/2025 |
| 1.2025.1015.2 | 711 | 10/15/2025 |
| 1.2025.1006.3 | 677 | 10/6/2025 |
| 1.2025.829.2 | 695 | 8/29/2025 |
| 1.2025.814.2 | 664 | 8/14/2025 |
| 1.2025.701.2 | 660 | 7/8/2025 |
| 1.2025.604.1 | 751 | 6/4/2025 |
| 1.2025.516.3 | 677 | 5/19/2025 |
| 1.2025.409.2 | 768 | 4/10/2025 |
| 1.2025.321.4 | 1,003 | 3/25/2025 |
| 1.2025.319.7 | 675 | 3/19/2025 |