Package net.auropay
Class AuropayConnect
java.lang.Object
net.auropay.AuropayConnect
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAuropayConnect(String apiKey, String apiSecret, AuropayConnect.ENVIRONMENT env) -
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObjectcreatePaymentLink(PaymentConfigBuilder builder) Creates a payment link using the provided PaymentConfigBuilder.org.json.JSONObjectcreateQRCode(PaymentConfigBuilder builder) org.json.JSONObjectcreateRefund(String transactionId, double amountToRefund, double originalAmount, String remark) org.json.JSONObjectcreateRefund(String transactionId, double amountToRefund, String remark) org.json.JSONObjectgetTransactionById(String transactionId) org.json.JSONObjectgetTransactionByRefNo(String referenceNo) Creates a payment link using the provided PaymentConfigBuilder.
-
Constructor Details
-
AuropayConnect
-
-
Method Details
-
createPaymentLink
Creates a payment link using the provided PaymentConfigBuilder.- Parameters:
builder- The PaymentConfigBuilder object containing the configuration for the payment link.- Returns:
- A JSONObject representing the created payment link. This method utilizes the settings provided in the PaymentConfigBuilder to generate a payment link. The returned JSONObject contains details such as the payment link URL, expiration time, and other relevant metadata.
- Throws:
IOException
-
createQRCode
- Throws:
IOException
-
getTransactionById
- Throws:
IOException
-
getTransactionByRefNo
Creates a payment link using the provided PaymentConfigBuilder.- Returns:
- A JSONObject representing the created payment link. This method utilizes the settings provided in the PaymentConfigBuilder to generate a payment link. The returned JSONObject contains details such as the payment link URL, expiration time, and other relevant metadata.
- Throws:
IOException
-
createRefund
public org.json.JSONObject createRefund(String transactionId, double amountToRefund, double originalAmount, String remark) throws IOException, AuropayConnectError - Throws:
IOExceptionAuropayConnectError
-
createRefund
public org.json.JSONObject createRefund(String transactionId, double amountToRefund, String remark) throws IOException, AuropayConnectError - Throws:
IOExceptionAuropayConnectError
-