Package net.auropay

Class AuropayConnect

java.lang.Object
net.auropay.AuropayConnect

public class AuropayConnect extends Object
  • Constructor Details

  • Method Details

    • createPaymentLink

      public org.json.JSONObject createPaymentLink(PaymentConfigBuilder builder) throws IOException
      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

      public org.json.JSONObject createQRCode(PaymentConfigBuilder builder) throws IOException
      Throws:
      IOException
    • getTransactionById

      public org.json.JSONObject getTransactionById(String transactionId) throws IOException
      Throws:
      IOException
    • getTransactionByRefNo

      public org.json.JSONObject getTransactionByRefNo(String referenceNo) throws IOException
      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:
      IOException
      AuropayConnectError
    • createRefund

      public org.json.JSONObject createRefund(String transactionId, double amountToRefund, String remark) throws IOException, AuropayConnectError
      Throws:
      IOException
      AuropayConnectError