PaidYET .NET SDK
Install
Download the NuGet package here
Or search PaidYET in the NuGet Manager
a very simple demo application can be found here https://bitbucket.org/paidyet/paidyetsdkdemo
Initialize
Call this to initialize the SDK:
BaseUrl Values:
Production | https://api.paidyet.com/v3 |
Sandbox | https://api.sandbox-paidyet.com/v3 |
PaidYETSDK.Settings.Initialize(BaseUrl, Subdomain, ApiKey)
Cards – CreditCardService()
Gets a list of all your cards
GetCardsAsync
Gets a card by its token
GetCreditCardAsync(string cardToken)
Get Card by the custom externalID set by merchant. ExternalId needs to be set via the API in order to search on this value.
GetCreditCardByExternalAsync(string externalId)
Tokenizes a card and returns the card object back
TokenizeCreditCardAsync(CreditCard card)
Customers – CustomerService()
Gets all customers
GetCustomersAsync
Get customer by ID
GetCustomerAsync(int customerId)
Get customer by the custom externalID set by merchant. ExternalId needs to be set via the API in order to search on this value.
GetCustomerByExternalAsync(string externalId)
Gets customer transactions
GetCustomerTransactionsAsync (int customerId)
Updates customer and returns the customer object back
UpdateCustomerAsync(Customer cust)
Adds customer and returns the customer object back
AddCustomerAsync(Customer cust)
Transactions – TransactionService()
Get transaction by id
GetTransactionAsync(int transactionId)
Process transaction
ProcessTransactionAsync(Transaction trans)
Refund transaction
RefundTransactionAsync(int transactionId, double amount)
Capture transaction
CaptureTransactionAsync(int transactionId, double amount)
Void transaction
VoidTransactionAsync(int transactionId)