This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Stripe { | |
private static String key ="xxxxxxxxxxxx"; //For tokenize use publish key, for customer and cards use private key | |
public static void createCustomer(final String email, final String userName, final VolleyCallback callback){ | |
String url = "https://api.stripe.com/v1/customers"; | |
StringRequest request = new StringRequest (Request.Method.POST, url, new Response.Listener<String>() { | |
@Override | |
public void onResponse(String response) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Inicia clase Log | |
class Log { | |
private PrintWriter output; //Permite la creacion de archivos | |
private String path= sketchPath; //Variable para guardar ruta de archivo | |
private String fileName; //Variable para el nombre del archivo | |
private int id=1; //id del archivo, se usa para renombrar | |
//Constructor de la clase | |
Log(String fileName, boolean overwrite) { | |
this.fileName=fileName; //Asigamos nombre del archivo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Inicia clase Log | |
class Log { | |
private PrintWriter output; //Permite la creacion de archivos | |
private String path= sketchPath; //Variable para guardar ruta de archivo | |
private String fileName; //Variable para el nombre del archivo | |
private int id=1; //id del archivo, se usa para renombrar | |
//Constructor de la clase | |
Log(String fileName) { | |
this.fileName=fileName; //Asigamos nombre del archivo |