Skip to content
Android SDK for Revenue Monster Payment
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
app
gradle/wrapper
revenuemonster
.gitignore
License
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
keystore
settings.gradle

README.md

RM SDK for Android

Add it to your build.gradle with:

allprojects {
    repositories {
        maven { url "https://jitpack.io" }
    }
}

and:

dependencies {
    compile 'com.github.RevenueMonster:RM-Android:{latest version}'
}


Checkout Sample Code

try {
	new Checkout(MainActivity.this).getInstance().
	setWeChatAppID("<< WeChat Open Platform AppID >>").setEnv(Env.SANDBOX).
	pay(Method.WECHATPAY_MY, "<<Get Checkout Id from API>>", new Result());
} catch(Exception e) {
	e.printStackTrace();
}

// Callback Result
static public class Result implements PaymentResult {
	public void onPaymentSuccess(Transaction transaction) {
		Log.d("SUCCESS", transaction.getStatus());
	}
	public void onPaymentFailed(Error error) {
		Log.d("FAILED", error.getCode());
	}
	public void onPaymentCancelled() {
		Log.d("CANCELLED", "User cancelled payment");
	}
}
You can’t perform that action at this time.