ePayco.Net
1.0.0
See the version list below for details.
dotnet add package ePayco.Net --version 1.0.0
NuGet\Install-Package ePayco.Net -Version 1.0.0
<PackageReference Include="ePayco.Net" Version="1.0.0" />
paket add ePayco.Net --version 1.0.0
#r "nuget: ePayco.Net, 1.0.0"
// Install ePayco.Net as a Cake Addin #addin nuget:?package=ePayco.Net&version=1.0.0 // Install ePayco.Net as a Cake Tool #tool nuget:?package=ePayco.Net&version=1.0.0
EPAYCO SDK .NET
Requisitos
Para el uso del sdk es necesario instalar las siguientes librerias:
- Microsoft.CSharp
- Newtonsoft.Json
Inicialización del SDK
Es recomendable inicilizar el SDK en el controlador o clase principal donde se desean implementar los métodos.
Epayco epayco = new EpaycoSdk.Epayco(
"public_key", //String
"private_key", //String
"languaje", //String
test //Boolean
);
METODOS DISPONIBLES
Create Token (Tokenizar un medio de pago)
Ejemplo de la petición:
TokenModel token = epayco.CreateToken(
"4575623182290326", //cardNumber
"2019", //expYear
"12", //expMonth
"123" //cvc
);
CUSTOMER
Create Customer
Ejemplo de la petición:
CustomerCreateModel customer = epayco.CustomerCreate(
"token_card", //string
"name", //string
"last_name", //string
"email", //string
is_default, //boolean
"city", //string
"address", //string
"phone", //string
"cell_phone" //string
);
Get Customer
Ejemplo de la petición:
CustomerFindModel customer = epayco.FindCustomer("customer_id");
Update Customer
Ejemplo de la petición:
CustomerEditModel customer = epayco.CustomerUpdate("customer_id", "name");
Customer Token Remove
Ejemplo de la petición:
CustomerTokenDeleteModel customer = epayco.CustomerDeleteToken(
"franchise",
"mask",
"customer_id"
);
Customer List
Ejemplo de la petición:
CustomerListModel customer = epayco.CustomerGetList();
PLANS
Plan Create
Ejemplo de la petición:
CreatePlanModel plan = epayco.PlanCreate(
"id_plan", //string
"name", //string
"description", //string
amount, //decimal
"currency", /string ej: COP
"interval", /string
interval_count, //int
trial_days // int
);
Get Plan
Ejemplo de la petición:
FindPlanModel plan = epayco.GetPlan("id_plan");
Get All Plans
Ejemplo de la petición:
FindAllPlansModel plan = epayco.GetAllPlans();
Plan Remove
Ejemplo de la petición:
RemovePlanModel plan = epayco.RemovePlan("id_plan");
SUBSCRIPTIONS
Create Subscription
Ejemplo de la petición:
CreateSubscriptionModel subscription = epayco.SubscriptionCreate(
"id_plan",
"customer_id",
"token_card",
"doc_type",
"doc_number",
"url_confirmation",
"method_confirmation"
);
Find Subscription
Ejemplo de la petición:
FindSusbscriptionModel subscription = epayco.getSubscription("subscription_id");
Find All Subscriptions
Ejemplo de la petición:
AllSubscriptionModel subscription = epayco.getAllSubscription();
Cancel Subscription
Ejemplo de la petición:
CancelSubscriptionModel subscription = epayco.cancelSubscription("subscription_id");
Pay Subscription
Ejemplo de la petición:
ChargeSubscriptionModel subscription = epayco.ChargeSubscription(
"id_plan",
"customer_id",
"token_card",
"doc_type",
"doc_number",
"ip",
"address",
"phone",
"cell_phone"
);
PSE
Pse Create
Ejemplo de la petición:
PseModel response = epayco.BankCreate(
"bank_code",
"invoice",
"description",
"value",
"tax",
"tax_base",
"currency",
"type_person",
"doc_type",
"doc_number",
"name",
"last_name",
"email",
"country",
"cell_phone",
"url_response",
"url_confirmation",
"method_confirmation"
);
PSE
Pse Create SplitPayment
Ejemplo de la petición:
List<SplitReceivers> splitReceiverses = new List<SplitReceivers>();
splitReceiverses.Add(new SplitReceivers(){id= "ID_COMMERCE_RECEIVER", fee = "1000", fee_type = "01"});
PseModel response = epayco.BankCreateSplit(
"bank_code",
"invoice",
"description",
"value",
"tax",
"tax_base",
"currency",
"type_person",
"doc_type",
"doc_number",
"name",
"last_name",
"email",
"country",
"cell_phone",
"url_response",
"url_confirmation",
"method_confirmation"
"splitpayment", // true or false
"split_app_id",
"split_merchant_id",
"split_type",
"split_primary_receiver",
"split_primary_receiver_fee",
splitReceiverses // Este sería un array de tipo SplitReceivers el cual se inicializa al principio del método
);
Get Transaction
Ejemplo de la petición:
TransactionModel transaction = epayco.GetTransaction("id_transaction");
Get Banks
Ejemplo de la petición:
BanksModel banks = epayco.GetBanks();
CASH
Cash Create
Ejemplo de la petición:
CashModel response = epayco.CashCreate(
"type", //efecty, gana, baloto, redservi, puntored
"invoice",
"description",
"value",
"tax",
"tax_base",
"currency",
"type_person",
"doc_type",
"doc_number",
"name",
"last_name",
"email",
"country",
"cell_phone",
"url_response",
"url_confirmation",);
Get Cash Transaction
Ejemplo de la petición:
CashTransactionModel cash = epayco.GetCashTransaction("ref_payco");
PAYMENT
Payment Create
Ejemplo de la petición:
ChargeModel response = epayco.ChargeCreate(
"token_card",
"customer_id",
"doc_type",
"doc_number",
"name",
"last_name",
"email",
"bill",
"description",
"value",
"tax",
"tax_base",
"currency",
"dues",
"caddress",
"phone",
"cell_phone",
"url_response",
"url_confirmation",
"ip");
Get Charge Transaction
Ejemplo de la petición:
ChargeTransactionModel cash = epayco.GetChargeTransaction("ref_payco");
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
-
- Newtonsoft.Json (>= 12.0.3)
- RestSharp (>= 106.10.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ePayco.Net:
Package | Downloads |
---|---|
FenixAlliance.ABS.Integrations.ePayco
Application Component for the Alliance Business Suite. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.1.5 | 94 | 7/12/2024 |
1.1.4 | 2,623 | 1/30/2023 |
1.1.3 | 267 | 1/24/2023 |
1.1.2 | 1,665 | 10/4/2022 |
1.1.1 | 1,626 | 6/16/2022 |
1.1.0 | 13,386 | 3/16/2022 |
1.0.14 | 873 | 11/3/2021 |
1.0.13 | 17,006 | 3/1/2021 |
1.0.12 | 1,658 | 1/27/2021 |
1.0.10 | 1,621 | 12/14/2020 |
1.0.9 | 384 | 12/11/2020 |
1.0.8 | 409 | 10/15/2020 |
1.0.7 | 557 | 9/12/2020 |
1.0.6 | 409 | 9/10/2020 |
1.0.5 | 485 | 9/1/2020 |
1.0.0 | 792 | 3/8/2020 |
(1.0.0) First deploy