{"repo":"mikechiloane/payfast-java-sdk","free":true,"listed":false,"github":"https://github.com/mikechiloane/payfast-java-sdk","clone":"git clone https://github.com/mikechiloane/payfast-java-sdk.git","description":"A comprehensive Java SDK for PayFast payment gateway integration with proper signature validation and PayFast-compliant URL encoding.","language":"Java","stars":11,"topics":["java","payfast","payments","sdk"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"PayFast Java SDK A comprehensive Java SDK for PayFast payment gateway integration with proper signature validation and PayFast-compliant URL encoding. Developer: Mike Chiloane Email: mike@mikechiloane.co.za Features - One-off payments - Single payment transactions - Automatic signature generation - Python-compatible URL encoding - Sandbox/Production modes - Easy environment switching - Comprehensive error handling - Specific exceptions for different scenarios - Full PayFast compliance - Matches official implementation Installation Add to your pom.xml : Quick Start 1. Basic Setup 2. One-off Payment java import com.recceda.payfast.model.PaymentRequest; import com.recceda.payfast.model.PayFastResponse; import java.math.BigDecimal; PaymentRequest payment = new PaymentRequest(); payment.setAmount(new BigDecimal(\"100.00\")); payment.setItemName(\"Demo Product\"); payment.setItemDescription(\"Product description\"); payment.setMPaymentId(\"ORDER-\" + System.currentTimeMillis()); // Optional: Set return URLs payment.setReturnUrl(\"https://yoursite.com/return\"); payment.setCancelUrl(\"https://yoursite.com/cancel\"); payment.setNotifyUrl(\"https://yoursite.com/notify\"); // Optional: Set buyer information payment.setNameFirst(\"John\"); payment.setNameLast(\"Doe\"); payment.setEmailAddress(\"john.doe@example.com\"); // Create payment form data with all fields and signature PayFastFormData formData = service.createPaymentFormData(payment); 3. Subscription Payment bash mvn exec:java -Dexec.mainClass=\"com.","default_branch":null,"files":null,"tree":[],"storefront":"/r/mikechiloane","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mikechiloane/payfast-java-sdk/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}