create an app for android like the posweb

Any issue about installation and configuration of the Cyclos software

Moderators: hugo, alexandre, rmvanarkel

Post Reply
discapacidad5
Posts: 4
Joined: Wed Nov 22, 2017 9:25 am

create an app for android like the posweb

Post by discapacidad5 » Wed Nov 22, 2017 6:56 pm

hello I want to create an app for android like the posweb
e tried the following code, place it in NetBeans IDE 8.2 without any results

Then, this code should run when using this member to perform the payment.
// The factory should be cached and shared between calls
CyclosWebServicesClientFactory factory = new CyclosWebServicesClientFactory();
factory.setServerRootUrl("http://localhost:8080/cyclos");
PaymentWebService paymentWebService = factory.getPaymentWebService();

BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
PaymentParameters params = new PaymentParameters();

// Prompt the parameters
System.out.print("Amount: ");
params.setAmount(new BigDecimal(in.readLine()));
System.out.print("Login name: "); //This user should have the channel set as enabled
params.setFromMember(in.readLine());
System.out.print("PIN: ");
params.setCredentials(in.readLine());

// Perform the payment
PaymentResult result = paymentWebService.doPayment(params);
switch (result.getStatus()) {
case PROCESSED:
String transactionNumber = result.getTransfer().getTransactionNumber();
System.out.println("The payment was successful. The transaction number is " + transactionNumber);
break;
case PENDING_AUTHORIZATION:
System.out.println("The payment is awaiting authorization");
break;
case INVALID_CHANNEL:
System.out.println("The given user cannot access this channel");
break;
case INVALID_CREDENTIALS:
System.out.println("You have entered an invalid PIN");
break;
case BLOCKED_CREDENTIALS:
System.out.println("Your PIN is blocked by exceeding trials");
break;
case INVALID_PARAMETERS:
System.out.println("Please, check the given parameters");
break;
case NOT_ENOUGH_CREDITS:
System.out.println("You don't have enough funds for this payment");
break;
case MAX_DAILY_AMOUNT_EXCEEDED:
System.out.println("You have already exceeded the maximum amount today");
break;
default:
System.out.println("There was an error on the payment: " + result.getStatus());
}

also try to modify the original app in android studio but do not pcue import the folder cyclos_mobile just let me import cyclos3_mobile_android but the war folder is not

juancax
Posts: 2
Joined: Mon Feb 18, 2019 2:13 pm

Re: create an app for android like the posweb

Post by juancax » Mon Feb 18, 2019 2:21 pm

Hello vondes,

It is not compatible with Android.

best regards,

phim sex
pornofete
chat sexo
gratis porno
porno zdarma
sexshop online
Last edited by juancax on Sun Jul 07, 2019 1:15 pm, edited 1 time in total.

Ionel
Posts: 1
Joined: Sun May 05, 2019 10:19 am

Re: create an app for android like the posweb

Post by Ionel » Sun May 05, 2019 11:18 am

Hello, so it is not compatible with android? :cry:

Post Reply