create an app for android like the posweb

Any issue about installation and configuration of the Cyclos software

Moderators: rmvanarkel, hugo, alexandre

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

create an app for android like the posweb

Post by discapacidad5 »

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 »

Hello vondes,

It is not compatible with Android.

best regards,

phim sex
porno romanesti
chat sexo
gratis porno
porno zdarma
sexshop online
Last edited by juancax on Tue Sep 08, 2020 6:10 am, edited 2 times 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 »

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