Skip to content

Instantly share code, notes, and snippets.

View j3k0's full-sized avatar

Jean-Christophe Hoelt j3k0

View GitHub Profile
{
"applicationUsername": "my-username-123456",
"subscription": {
"transactionId": "apple:12309a12",
"platform": "apple",
"sandbox": true,
"productId": "apple:monthly.basic",
"purchasedAt": "2019-06-24T21:52:16.000Z",
"renewedAt": "2019-06-28T01:07:29.000Z",
"expiresAt": "2019-06-28T01:12:29.000Z",
{
"receiptId": "apple:2700001237189799",
"platform": "apple",
"updatedAt": "2019-07-02T07:25:36.700Z",
"amountsMicros": {
"GBP": 2970000
},
"amountUSD": 3.75,
"numTransactions": 2,
"source": {
{
"paging": {
"skip": 0,
"limit": 100,
"total": 3
},
"rows": [
{
"receiptId": "apple:1000000012309800",
"platform": "apple",
@j3k0
j3k0 / GET-customers-receipts-200.json
Created June 21, 2019 06:39
Response from fovea.billing customers receipts API
[{
"type": "android-appstore",
"appName": "test",
"bundleId": "cc.fovea.purchase.demo",
"receipt": {
"orderId": "GPA.3312-8483-xxxx-xxxxx..1",
"packageName": "cc.fovea.purchase.demo",
"productId": "cc.fovea.purchase.subscription1",
"purchaseTime": 1549447850144,
"purchaseState": 0,
@j3k0
j3k0 / index.html
Last active March 20, 2021 18:14
Tutorial Cordova In-App Purchase Non-Consumable
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;">
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<title>Hello World</title>
</head>
<body>
@j3k0
j3k0 / index.html
Last active September 15, 2022 09:51
Tutorial Cordova In-App Purchase Consumable
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;">
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<title>Hello World</title>
</head>
<body>
@j3k0
j3k0 / mutt2issue.py
Created November 6, 2018 07:03
mutt script that creates github issues
#!/usr/bin/env python
# -*- coding: utf-8 -*-
## About
# Use the content of an email to create a github issue
#
## Usage
# add this to your .muttrc:
# macro index,pager \ei "<pipe-message>~/path/to/mutt2issue.py<enter>"
#
@j3k0
j3k0 / android-release.sh
Created October 15, 2018 07:55
Generate an android release build with cordova
#!/bin/bash
cd "$(dirname "$0")"
ROOT_DIR="$(pwd)"
FINAL_APK="${FINAL_APK:-$ROOT_DIR/android-release-$(date +%Y%m%d-%H%M).apk}"
KEYSTORE="${KEYSTORE:-$ROOT_DIR/android-release.keystore}"
if test ! -e "$KEYSTORE"; then
echo "ERROR: Keystore file $KEYSTORE not found."
@j3k0
j3k0 / adt-output.xml
Created September 25, 2015 05:29
Output of adt package
verity:bin-mobile-debug jeko$ adt -package -target apk-debug -connect 172.20.10.4 -storetype pkcs12 -keystore ../android/fovea-devel.p12 -storepass xxxxxx Triominos.apk Triominos-app.xml Triominos.swf icons -extdir /Users/jeko/Fovea_AIR_Toolchains/1.3/libs -extdir /Users/jeko/Documents/triominos/client/submodule/foveas3/src/fovea/socialservices/libs
Warning: Resource values-af/messenger_button_strings.xml has been skipped because of mismatch with supported languages information in application descriptor.
Warning: Resource values-af/strings.xml has been skipped because of mismatch with supported languages information in application descriptor.
Warning: Resource values-ar/messenger_button_strings.xml has been skipped because of mismatch with supported languages information in application descriptor.
Warning: Resource values-ar/strings.xml has been skipped because of mismatch with supported languages information in application descriptor.
Warning: Resource values-bn/messenger_button_strings.xml has been skipped
@j3k0
j3k0 / mxmlc-output.txt
Created September 25, 2015 05:14
Output of mxmlc
Loading configuration: /Users/jeko/Documents/triominos/client/config-mobile-debug.xml
Warning: com.adobe.utils.ArrayUtil is defined by multiple files: /Users/jeko/Documents/triominos/client/submodule/foveas3/src/fovea/socialservices/libs/com/adobe/utils/ArrayUtil.as, /Users/jeko/Fovea_AIR_Toolchains/1.3/libs/as3corelib/src/com/adobe/utils/ArrayUtil.as
Warning: com.adobe.utils.NumberFormatter is defined by multiple files: /Users/jeko/Documents/triominos/client/submodule/foveas3/src/fovea/socialservices/libs/com/adobe/utils/NumberFormatter.as, /Users/jeko/Fovea_AIR_Toolchains/1.3/libs/as3corelib/src/com/adobe/utils/NumberFormatter.as
Warning: com.adobe.utils.DictionaryUtil is defined by multiple files: /Users/jeko/Documents/triominos/client/submodule/foveas3/src/fovea/socialservices/libs/com/adobe/utils/DictionaryUtil.as, /Users/jeko/Fovea_AIR_Toolchains/1.3/libs/as3corelib/src/com/adobe/utils/DictionaryUtil.as
Warning: com.adobe.utils.XMLUtil is defined by multiple files: /Users/jeko/Fovea_AIR_Toolchains/1