Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
c23f211
feat:se actualiza version de java
RicardoSaldarriagaPayco Dec 13, 2023
2ae9ffe
fix:se corrige anotation package on java
RicardoSaldarriagaPayco Dec 13, 2023
f6a8dcf
fix:se implementa Nullable complemento
RicardoSaldarriagaPayco Dec 13, 2023
4526d4b
feat:se implementa atributos de tipo final
RicardoSaldarriagaPayco Dec 13, 2023
7cbdcc4
feat:se implementa atributos de tipo final
RicardoSaldarriagaPayco Dec 13, 2023
f47d4df
feat:se implementa atributos de tipo final
RicardoSaldarriagaPayco Dec 13, 2023
1ac96f6
feat:se configura endpoint de produccion
RicardoSaldarriagaPayco Dec 13, 2023
ab32a7a
Merge pull request #20 from epayco/release/v3.15.0
danielquiroz87 Dec 13, 2023
ba780cb
feat:se agrega suscripciones v2
RicardoSaldarriagaPayco Mar 14, 2025
5baf2bb
feat:se actualiza gradle library
RicardoSaldarriagaPayco Mar 14, 2025
86933ca
merge branch
RicardoSaldarriagaPayco Apr 4, 2025
d05f71f
feat:Se actualiza version de sdk
RicardoSaldarriagaPayco Apr 9, 2025
b701461
feat:uplaod version
RicardoSaldarriagaPayco Apr 9, 2025
4c20da2
feat:se agrega maven al modulo
RicardoSaldarriagaPayco Apr 9, 2025
94ceb26
feat:se agrega id maven-publish al modulo
RicardoSaldarriagaPayco Apr 9, 2025
ad61e80
feat:add jitpack.yml file
RicardoSaldarriagaPayco Apr 9, 2025
a324a0b
feat:se realiza publicacion de versión en jitpac
RicardoSaldarriagaPayco Apr 10, 2025
04fce8b
fix:se corrige artifacId
RicardoSaldarriagaPayco Apr 10, 2025
a08eb8a
feat: se gradlew clean
RicardoSaldarriagaPayco Apr 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 50 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ epayco.getCustomer("id_customer", new EpaycoCallback() {
#### List

```java
epayco.getCustomerList(new EpaycoCallback() {
ClientList client = new ClientList();
client.setPage("6");
client.setPerPage("6 epayco");
epayco.getCustomerList(client, new EpaycoCallback() {
@Override
public void onSuccess(JSONObject data) throws JSONException {}

Expand Down Expand Up @@ -188,22 +191,34 @@ epayco.addNewToken(client, new EpaycoCallback() {
```java
Plan plan = new Plan();

plan.setIdPlan("reactcourse");
plan.setName("Course React");
plan.setDescription("Course react advanced");
plan.setIdPlan("reactcourse_001233");
plan.setName("Course React v02");
plan.setDescription("Course react advanced v02");
plan.setAmount("30000");
plan.setCurrency("COP");
plan.setInterval("month");
plan.setIntervalCount("1");
plan.setTrialDays("0");
plan.setTrialDays("30");
plan.setPlanLink("https://ejemplo.com/plan");
plan.setGreetMessage("Gracias por preferirnos");
plan.setLinkExpirationDate("2025-03-11");
plan.setSubscriptionLimit("10");
plan.setDiscountValue(5000.0f);
plan.setDiscountPercentage(19);
plan.setFirstPaymentAdditionalCost(45700.0f);

epayco.createPlan(plan, new EpaycoCallback() {
@Override
public void onSuccess(JSONObject data) throws JSONException {}
public void onSuccess(JSONObject data) throws JSONException {
Log.d("epayco", data.toString());
}

@Override
public void onError(Exception error) {}
public void onError(Exception error) {
Log.d("epaycoError", error.getMessage());
}
});

```

#### Retrieve
Expand All @@ -230,6 +245,34 @@ epayco.getPlanList(new EpaycoCallback() {
});
```

#### Update

```java
PlanUpdate plan = new PlanUpdate();
plan.setName("Course React v02");
plan.setDescription("Course react advanced v02");
plan.setAmount("30000");
plan.setCurrency("COP");
plan.setInterval("month");
plan.setIntervalCount("1");
plan.setTrialDays("0");
plan.setIp("127.0.0.1");
plan.setAfterPayment("afterPayment");

epayco.updatePlan("reactcourse_001233", plan, new EpaycoCallback() {
@Override
public void onSuccess(JSONObject data) throws JSONException {
Log.d("epayco", data.toString());
}

@Override
public void onError(Exception error) {
Log.d("epaycoError", error.getMessage());
}
});

```

### Subscriptions

#### Create
Expand Down
2 changes: 1 addition & 1 deletion app/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/build
/build
70 changes: 53 additions & 17 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,31 +1,67 @@
apply plugin: 'com.android.application'
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
namespace 'com.epayco.app'
compileSdk 34

defaultConfig {
applicationId "co.epayco.example"
minSdkVersion 14
targetSdkVersion 25
applicationId "com.epayco.app"
minSdk 24
targetSdk 34
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary true
}
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion '1.5.1'
}
packaging {
resources {
excludes += '/META-INF/{AL2.0,LGPL2.1}'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.1.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile project(':epayco')
}

implementation 'androidx.core:core-ktx:1.10.1'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.1'
implementation 'androidx.activity:activity-compose:1.7.0'
implementation platform('androidx.compose:compose-bom:2023.08.00')
implementation 'androidx.compose.ui:ui'
implementation 'androidx.compose.ui:ui-graphics'
implementation 'androidx.compose.ui:ui-tooling-preview'
implementation 'androidx.compose.material3:material3'
implementation project(':epayco')
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
androidTestImplementation platform('androidx.compose:compose-bom:2023.08.00')
androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
debugImplementation 'androidx.compose.ui:ui-tooling'
debugImplementation 'androidx.compose.ui:ui-test-manifest'
}
10 changes: 3 additions & 7 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/prismaymedia/Library/Android/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
Expand All @@ -22,4 +18,4 @@

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile

This file was deleted.

24 changes: 24 additions & 0 deletions app/src/androidTest/java/com/epayco/app/ExampleInstrumentedTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.epayco.app

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4

import org.junit.Test
import org.junit.runner.RunWith

import org.junit.Assert.*

/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.epayco.app", appContext.packageName)
}
}
31 changes: 17 additions & 14 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="co.epayco.example">

xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".example">
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.App"
tools:targetApi="31">
<activity
android:name=".MainActivity"
android:exported="true"
android:label="@string/app_name"
android:theme="@style/Theme.App">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.MAIN"/>

<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
Expand Down
Loading