cardcard_api_sdk 0.0.1
See the version list below for details.
dotnet add package cardcard_api_sdk --version 0.0.1
NuGet\Install-Package cardcard_api_sdk -Version 0.0.1
<PackageReference Include="cardcard_api_sdk" Version="0.0.1" />
<PackageVersion Include="cardcard_api_sdk" Version="0.0.1" />
<PackageReference Include="cardcard_api_sdk" />
paket add cardcard_api_sdk --version 0.0.1
#r "nuget: cardcard_api_sdk, 0.0.1"
#:package cardcard_api_sdk@0.0.1
#addin nuget:?package=cardcard_api_sdk&version=0.0.1
#tool nuget:?package=cardcard_api_sdk&version=0.0.1
CardCash API SDK C Sharp
This is currently a simple CardCash API SDK written in C Sharp to assist bulk seller partners in communicating with CardCash Client API.
Dependencies
- .NETStandard 2.0
- Microsoft.CSharp (>= 4.5.0)
- Newtonsoft.Json (>= 12.0.1)
Install
Package Manager
PM > Install-Package cardcard_api_sdk -Version 0.0.2
.NETCLI
dotnet add package cardcard_api_sdk --version 0.0.2
Visual Studio
1. In Solution Explorer, right-click References and choose Manage NuGet Packages.
2. Choose "nuget.org" as the Package source, select the Browse tab, search for cardcard_api_sdk, select that package in the list, and select Install:
3. Accept any license prompts.
Requirements
- CardCash Bulk Seller Agreement
- CardCash X-CC-APP-ID
- Bulk Seller Customer Account ( Sandbox can be created via this SDK )
- Default Bank Account w/ Default Payment Method for Bulk Seller Customer Account
Methods
CustomerLogin(string email, string password)- Logins a customer into their account.CreateCustomer(string firstName, string lastName, string email, string password)- Will Only Create a brand new customer account in sandbox.GetCustomer- Get your customer profile, this is used to get your paymentDetailID to place a order.GetMerchants- Get a list of currently accepted merchants with merchant sell percentages agreed upon with your Account Manager, you must be LOGGED IN to see your sell percentages.RetrieveCart- Will return a cart if one exists in the system.CreateCart- Will return a cart if one exists in the system with it's cards or create a new empty cart.DeleteCart(string cartID)- Delete an entire cart.AddCardToCart(string cartID, int merchantID, double cardValue, string cardNum = null, string cardPin = null, string refID = null)- Add Cart to a Cart, Cards must be added one-by-one there is no bulk method.UpdateCardInCart(string cartID, string cardID, double cardValue = 0, string cardNum = null, string cardPin = null, string refID = null)- Update a Card in a cart.DeleteCardInCart(string cartID, string cardID)- Delete a given card in a cart.PlaceOrder(string cartID, int paymentDetailID, string firstName, string lastName, string street, string city, string state, string postcode, string street2 = null)- Place your order.GetOrder(string orderID)- Get a single order details using the orders idGetAllOrders- Get a list of orders you've placed to CardCash.GetOrderCards(string orderID)- Get a list of cards associated with a given orderGetAllCards- Get a list of all the cards that you've sold to CardCash.GetAllPayments- Get a summary of all the Payments paid to you.GetPayment(string paymentID)- Get more details for single payment.
Note: All Optional Parameters are set to null or 0.
Order Status
- Pending - Your order is pending and is waiting for the payment to be processed.
- Review2 - Cards are going through the various checks required for sale.
- Review3 - Possible balance issues
- Review - This is where we enter it into our inventory system/ or order has an issue and customer will be contacted
- Processing - Your order is being prepared for shipment.
- On Payment Queue - Payment is being processed
- Payment Initiated - Payment sent to customer
- Paid - Customer has been successfully paid
Note: Pending is the only available order status in Sandbox.
Usage
You need to import the CardCash_API libary
You need to initialize a new API class API(string appID, Boolean isProduction = false, Boolean debug = false)
To Create new connection to sandbox:
var CC_API = new API(appID, false, false);
To Create new connection to production:
var CC_API = new API(appID, true, false);
To debug CardCash Cookies with CardCash help:
var CC_API = new API(appID, false, true);
IT IS HIGHLY RECOMMENDED TO ALWAYS START WITH A CUSTOMER LOGIN CALL - YOU CAN'T GET YOUR MERCHANT PRICING, SAVE YOUR CART, OR PLACE A ORDER WITHOUT BEING LOGGED IN!
await CC_API.CustomerLogin(emailAddr, pwd);
Examples
| 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 was computed. 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 was computed. 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 was computed. 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 | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. 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.0
- Microsoft.CSharp (>= 4.5.0)
- Newtonsoft.Json (>= 12.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.