PawaPay Java SDK

Local Integration & Testing Environment (but make it ✨silly🧠)

🐸 Server Status: Online (and slightly dizzy)
🤹‍♂️ 🦄 🔮

๐Ÿงช Java Deposit Simulator

SANDBOX MODE ON
runDeposit.java โ€” weird-mode
import com.katorymnd.pawapay.sdk.api.ApiClient;
import com.katorymnd.pawapay.sdk.config.Config;

// 1. Build Config with your Sandbox Token
Config config = new Config.Builder()
        .apiKey("")
        .environment("sandbox")
        .build();

// 2. Initialize Native Core Client
String apiVersion = ;
ApiClient client = new ApiClient(config, "KATORYMND_PAWAPAY_SDK_LICENSE_KEY", true, apiVersion);

// 3. Set Deposit Parameters
String amount = "";
String currency = "";
String payerMsisdn = "";
String provider = "";

// 4. Execute Surgical Request (async)
Map<String, Object> response = client.initiateDepositV2(
        Helpers.generateUniqueId(), amount, currency, payerMsisdn, provider, 
        "Java SDK Server Test", null, null, null
).join();

System.out.println("Result: " + response);
JAVA CONSOLE // OUT
Waiting for JVM to compile thoughts...
๐Ÿ’ก What this does:
  • Initiates a mobile money deposit (payment) from a customer to your merchant wallet
  • Supports both V1 and V2 API versions
  • Parameters: amount, currency, phone number, provider (MTN_MOMO_UGA, etc.)
  • Automatically checks transaction status after 3 seconds in sandbox
  • Returns detailed JSON response with transaction ID and status
  • โš ๏ธ Requires valid sandbox token from PawaPay dashboard