When building a product or service that requires your users to pay for something, there are many ways that things can go wrong, such as delayed payments, fraud, or other such issues.
Thus, it is crucial to track these events in real-time and alert you and your team in the event of a problem.
Palzin Track lets you track payment events such as User Subscription, User Purchase, User Cancellation, and User Redemption directly from your Java application.
Using Java with OkHttp
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"project\":\"my-project\",\"channel\":\"payments\",\"event\":\"Successful Payment\",\"description\":\"[email protected] - ($19.99)\",\"icon\":\"💸\",\"notify\":true}");
Request request = new Request.Builder()
.url("https://api.palzin.live/v1/log")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.addHeader("Authorization", "Bearer YOUR_API_TOKEN")
.build();
Response response = client.newCall(request).execute();
Using Java with Unirest
Unirest.setTimeouts(0, 0);
HttpResponseString> response = Unirest.post("https://api.palzin.live/v1/log")
.header("Content-Type", "application/json")
.header("Authorization", "Bearer YOUR_API_TOKEN")
.body("{\"project\":\"my-project\",\"channel\":\"payments\",\"event\":\"Successful Payment\",\"description\":\"[email protected] - ($19.99)\",\"icon\":\"💸\",\"notify\":true}")
.asString();
Connect Palzin Track to your Java code to easily track and keep a record of your product's payment events. With Palzin Track, you can create simple charts and journeys to help you better understand your product. Palzin Track also allows you to receive real-time push notifications on your desktop and mobile devices whenever a new payment event occurs.
Palzin Track reveals the human stories behind your data. Make user-centric decisions that drive growth.