Method CreateRefundRequest
CreateRefundRequest(String, String, Decimal)
Create a new (unvalidated) refund request using default and supplied values.
Declaration
public OnlineEftposRefundRequest CreateRefundRequest(string orderId, string originalPaymentId, decimal amount)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderId | Your (merchant) reference for the transaction. |
System.String | originalPaymentId | The id of the original payment being refunded. |
System.Decimal | amount | The amount of the transaction as a decimal value. |
Returns
Type | Description |
---|---|
OnlineEftposRefundRequest | An OnlineEftposRefundRequest pre-populated with appropriate values, but unvalidated. Call the EnsureValid() method to confirm validity. |
CreateRefundRequest(String, String, Decimal)
Create a new (unvalidated) refund request using default and supplied values.
Declaration
public OnlineEftposRefundRequest CreateRefundRequest(string orderId, string originalPaymentId, decimal amount)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderId | Your (merchant) reference for the transaction. |
System.String | originalPaymentId | The id of the original payment being refunded. |
System.Decimal | amount | The amount of the transaction as a decimal value. |
Returns
Type | Description |
---|---|
OnlineEftposRefundRequest | An OnlineEftposRefundRequest pre-populated with appropriate values, but unvalidated. Call the EnsureValid() method to confirm validity. |
CreateRefundRequest(String, String, Decimal, String, String)
Create a new (unvalidated) refund request using default and supplied values.
Declaration
public OnlineEftposRefundRequest CreateRefundRequest(string orderId, string originalPaymentId, decimal amount, string userIP, string userAgent)
Parameters
Type | Name | Description |
---|---|---|
System.String | orderId | Your (merchant) reference for the transaction. |
System.String | originalPaymentId | The id of the original payment being refunded. |
System.Decimal | amount | The amount of the transaction as a decimal value. |
System.String | userIP | The IP address of the requesting client. |
System.String | userAgent | The user agent string of the requesting client. |
Returns
Type | Description |
---|---|
OnlineEftposRefundRequest | An OnlineEftposRefundRequest pre-populated with appropriate values, but unvalidated. Call the EnsureValid() method to confirm validity. |