new module:api/PaymentApi(apiClientopt)
This class subject to change without prior notice, Please dont use this class directly.
Constructs a new PaymentApi.Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
apiClient |
module:ApiClient |
<optional> |
Optional API client implementation to use, default to module:ApiClient#instance if unspecified. |
Methods
-
createPayment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_customer, create_payment_request, opts, callback)
-
Create Payment The API is used to make payments to service a customer account. Client systems can provide the unique identifier for the payment in their system as payment_reference.<p>Fee amount and fee type are conditional and should be provided if the details of the fee to be charged are maintained in the client system. The fee types that are supported in EBPP are add_to_principal and bill_separately. Alternatively, the fee information can be setup in EBPP, in which case, these fields are ignored. If fee information is setup in the system, the details of the fee are returned in the response.</p> <p> if payment_authorization.id is passed then the payment is charged from the amount that is hold as part of the create payment authorization API </p>
Parameters:
Name Type Description channelString The channel through which the API is invoked.
client_keyString The unique identifier assigned by EBPP to the client.
productmodule:models/String The product identifier corresponding to the API.
timestampString The timestamp for the moment when the API request is created.
idempotent_request_keyString The unique token that clients can generate and maintain in order to identify an API request.
requestor_typemodule:models/String Type of the requestor of the API.
id_customerString The unique identifier assigned by EBPP to the customer.
create_payment_requestmodule:models/CreatePaymentRequest JSON containing all the fields required to make a payment.
optsObject Optional parameters
Properties
Name Type Description requestorString The identifier for the requestor of the API.
x_opay_headersString Intended for the future use.
trace_idString The unique reference that can be used for tracing and debugging an API call.
callbackmodule:api/PaymentApi~createPaymentCallback The callback function, accepting three arguments: error, data, response data is of type: module:models/PaymentResponse
-
deletePayment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, id_customer, delete_payment_request, opts, callback)
-
Delete Payment The API is used to delete or cancel a payment. Payments that are under processing or have already been processed cannot be deleted.
Parameters:
Name Type Description channelString The channel through which the API is invoked.
client_keyString The unique identifier assigned by EBPP to the client.
productmodule:models/String The product identifier corresponding to the API.
timestampString The timestamp for the moment when the API request is created.
idempotent_request_keyString The unique token that clients can generate and maintain in order to identify an API request.
requestor_typemodule:models/String Type of the requestor of the API.
id_paymentString The unique identifier assigned by EBPP to the payment.
id_customerString The unique identifier assigned by EBPP to the customer.
delete_payment_requestmodule:models/DeletePaymentRequest Details of payment to be deleted/cancelled
optsObject Optional parameters
Properties
Name Type Description requestorString The identifier for the requestor of the API.
x_opay_headersString Intended for the future use.
trace_idString The unique reference that can be used for tracing and debugging an API call.
callbackmodule:api/PaymentApi~deletePaymentCallback The callback function, accepting three arguments: error, data, response data is of type: module:models/DeleteResponse
-
deleteRecordPayment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, delete_recorded_payment_request, opts, callback)
-
Delete Recorded Payment The API is used to delete the recorded payment. It returns 204 http status code with empty body in successful case
Parameters:
Name Type Description channelString The channel through which the API is invoked.
client_keyString The unique identifier assigned by EBPP to the client.
productmodule:models/String The product identifier corresponding to the API.
timestampString The timestamp for the moment when the API request is created.
idempotent_request_keyString The unique token that clients can generate and maintain in order to identify an API request.
requestor_typemodule:models/String Type of the requestor of the API.
id_paymentString The unique identifier assigned by EBPP to the payment.
delete_recorded_payment_requestmodule:models/DeleteRecordedPaymentRequest Details of payment to be deleted/cancelled
optsObject Optional parameters
Properties
Name Type Description requestorString The identifier for the requestor of the API.
x_opay_headersString Intended for the future use.
trace_idString The unique reference that can be used for tracing and debugging an API call.
callbackmodule:api/PaymentApi~deleteRecordPaymentCallback The callback function, accepting three arguments: error, data, response
-
getPayment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, id_customer, opts, callback)
-
Get Payment The API is used to retrieve the details of a payment or a recorded payment by id.
Parameters:
Name Type Description channelString The channel through which the API is invoked.
client_keyString The unique identifier assigned by EBPP to the client.
productmodule:models/String The product identifier corresponding to the API.
timestampString The timestamp for the moment when the API request is created.
idempotent_request_keyString The unique token that clients can generate and maintain in order to identify an API request.
requestor_typemodule:models/String Type of the requestor of the API.
id_paymentString The unique identifier assigned by EBPP to the payment.
id_customerString The unique identifier assigned by EBPP to the customer.
optsObject Optional parameters
Properties
Name Type Description requestorString The identifier for the requestor of the API.
x_opay_headersString Intended for the future use.
trace_idString The unique reference that can be used for tracing and debugging an API call.
callbackmodule:api/PaymentApi~getPaymentCallback The callback function, accepting three arguments: error, data, response data is of type: module:models/PaymentResponse
-
recordPayment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, record_payment_request, opts, callback)
-
Record Payment The API is used to record payments in EBPP those are made and fulfilled outside EBPP.
Parameters:
Name Type Description channelString The channel through which the API is invoked.
client_keyString The unique identifier assigned by EBPP to the client.
productmodule:models/String The product identifier corresponding to the API.
timestampString The timestamp for the moment when the API request is created.
idempotent_request_keyString The unique token that clients can generate and maintain in order to identify an API request.
requestor_typemodule:models/String Type of the requestor of the API.
record_payment_requestmodule:models/RecordPaymentRequest JSON containing all the fields required to record a payment.
optsObject Optional parameters
Properties
Name Type Description requestorString The identifier for the requestor of the API.
x_opay_headersString Intended for the future use.
trace_idString The unique reference that can be used for tracing and debugging an API call.
callbackmodule:api/PaymentApi~recordPaymentCallback The callback function, accepting three arguments: error, data, response data is of type: module:models/RecordedPaymentResponse
-
retrieveFeePayment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_fee, id_customer, opts, callback)
-
Get Fee Payment The API is used to retrieve the details of a fee payment by id.
Parameters:
Name Type Description channelString The channel through which the API is invoked.
client_keyString The unique identifier assigned by OrbiPay to the client.
productmodule:models/String The product identifier corresponding to the API.
timestampString The timestamp for the moment when the API request is created.
idempotent_request_keyString The unique token that clients can generate and maintain in order to identify an API request.
requestor_typemodule:models/String Type of the requestor of the API.
id_feeString The unique identifier assigned by OrbiPay to the FeePayment.
id_customerString The unique identifier assigned by OrbiPay to the customer.
optsObject Optional parameters
Properties
Name Type Description requestorString The identifier for the requestor of the API.
x_opay_headersString Intended for the future use.
trace_idString The unique reference that can be used for tracing and debugging an API call.
callbackmodule:api/PaymentApi~retrieveFeePaymentCallback The callback function, accepting three arguments: error, data, response data is of type: module:models/PaymentResponse
-
retrievePayments(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, opts, callback)
-
Retrieve Payments The API is used to retrieve the payments and recorded payments made by a customer. Payments can be filtered using the confirmation number, customer account, funding account, status and payment schedule type, payment method, by date range and others mentioned below. If no dates are provided for retrieval, payments in the last six months and all the payments scheduled for a future date are returned. In case a payment has failed due to ACH returns, then the payment return date and the return code will be available in the response. The results are sorted in descending order of the payment_date followed by the last_modified_time.
Parameters:
Name Type Description channelString The channel through which the API is invoked.
client_keyString The unique identifier assigned by EBPP to the client.
productmodule:models/String The product identifier corresponding to the API.
timestampString The timestamp for the moment when the API request is created.
idempotent_request_keyString The unique token that clients can generate and maintain in order to identify an API request.
requestor_typemodule:models/String Type of the requestor of the API.
optsObject Optional parameters
Properties
Name Type Description requestorString The identifier for the requestor of the API.
x_opay_headersString Intended for the future use.
trace_idString The unique reference that can be used for tracing and debugging an API call.
id_customerString The unique identifier assigned by EBPP to the customer.
id_funding_accountString The unique identifier assigned by EBPP to the funding account
id_customer_accountString The unique identifier assigned by EBPP to the customer account
confirmation_numberString The confirmation number or reference provided to the customer for the successful payment.
statusArray.<module:models/String> The status of the payment. This can take multiple values in the format key=value1&key=value2....
payment_schedule_typeArray.<module:models/String> The schedule type for the payment setup. This can take multiple values in the format key=value1&key=value2....
payment_methodArray.<module:models/String> The fulfillment method for the payment.
from_dateString The date from which payments, matching the criteria specified, need to be retrieved.
to_dateString The date upto which payments, matching the criteria specified, need to be retrieved.
page_sizeString The maximum number of objects returned in the query.
query_idString query id of the Retrieve/Search Customers lookup.
from_indexString To fetch the next set of objects that start after this object
to_indexString To fetch the previous set of objects that end at this object
callbackmodule:api/PaymentApi~retrievePaymentsCallback The callback function, accepting three arguments: error, data, response data is of type: module:models/PaymentsResponse
-
simplePayment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, simple_payment_request, opts, callback)
-
Simple Payment The API is used to make payments to service a customer account. Client systems can provide the unique identifier for the payment in their system as payment_reference. Fee amount and fee type are conditional and should be provided if the details of the fee to be charged are maintained in the client system. The fee types that are supported in EBPP are add_to_principal and bill_separately. Alternatively, the fee information can be setup in EBPP, in which case, these fields are ignored. If fee information is setup in the system, the details of the fee are returned in the response. This API updates the details of the customer, customer account and the funding account if those exist in EBPP or creates them otherwise.
Parameters:
Name Type Description channelString The channel through which the API is invoked.
client_keyString The unique identifier assigned by EBPP to the client.
productmodule:models/String The product identifier corresponding to the API.
timestampString The timestamp for the moment when the API request is created.
idempotent_request_keyString The unique token that clients can generate and maintain in order to identify an API request.
requestor_typemodule:models/String Type of the requestor of the API.
simple_payment_requestmodule:models/SimplePaymentRequest JSON containing all the fields required to make a payment.
optsObject Optional parameters
Properties
Name Type Description requestorString The identifier for the requestor of the API.
x_opay_headersString Intended for the future use.
trace_idString The unique reference that can be used for tracing and debugging an API call.
save_funding_accountmodule:models/String query param
callbackmodule:api/PaymentApi~simplePaymentCallback The callback function, accepting three arguments: error, data, response data is of type: module:models/SimplePaymentResponse
-
updatePayment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, id_customer, update_payment_request, opts, callback)
-
Update Payment The API is used to edit a payment. Only payments in scheduled status can be edited.
Parameters:
Name Type Description channelString The channel through which the API is invoked.
client_keyString The unique identifier assigned by EBPP to the client.
productmodule:models/String The product identifier corresponding to the API.
timestampString The timestamp for the moment when the API request is created.
idempotent_request_keyString The unique token that clients can generate and maintain in order to identify an API request.
requestor_typemodule:models/String Type of the requestor of the API.
id_paymentString The unique identifier assigned by EBPP to the payment.
id_customerString The unique identifier assigned by EBPP to the customer.
update_payment_requestmodule:models/UpdatePaymentRequest Details of the Payment to be updated.
optsObject Optional parameters
Properties
Name Type Description requestorString The identifier for the requestor of the API.
x_opay_headersString Intended for the future use.
trace_idString The unique reference that can be used for tracing and debugging an API call.
callbackmodule:api/PaymentApi~updatePaymentCallback The callback function, accepting three arguments: error, data, response data is of type: module:models/PaymentResponse
Type Definitions
-
createPaymentCallback(error, data, response)
-
Callback function to receive the result of the createPayment operation.
Parameters:
Name Type Description errorString Error message, if any.
datamodule:models/PaymentResponse The data returned by the service call.
responseString The complete HTTP response.
-
deletePaymentCallback(error, data, response)
-
Callback function to receive the result of the deletePayment operation.
Parameters:
Name Type Description errorString Error message, if any.
datamodule:models/DeleteResponse The data returned by the service call.
responseString The complete HTTP response.
-
deleteRecordPaymentCallback(error, data, response)
-
Callback function to receive the result of the deleteRecordPayment operation.
Parameters:
Name Type Description errorString Error message, if any.
dataThis operation does not return a value.
responseString The complete HTTP response.
-
getPaymentCallback(error, data, response)
-
Callback function to receive the result of the getPayment operation.
Parameters:
Name Type Description errorString Error message, if any.
datamodule:models/PaymentResponse The data returned by the service call.
responseString The complete HTTP response.
-
recordPaymentCallback(error, data, response)
-
Callback function to receive the result of the recordPayment operation.
Parameters:
Name Type Description errorString Error message, if any.
datamodule:models/RecordedPaymentResponse The data returned by the service call.
responseString The complete HTTP response.
-
retrieveFeePaymentCallback(error, data, response)
-
Callback function to receive the result of the retrieveFeePayment operation.
Parameters:
Name Type Description errorString Error message, if any.
datamodule:models/PaymentResponse The data returned by the service call.
responseString The complete HTTP response.
-
retrievePaymentsCallback(error, data, response)
-
Callback function to receive the result of the retrievePayments operation.
Parameters:
Name Type Description errorString Error message, if any.
datamodule:models/PaymentsResponse The data returned by the service call.
responseString The complete HTTP response.
-
simplePaymentCallback(error, data, response)
-
Callback function to receive the result of the simplePayment operation.
Parameters:
Name Type Description errorString Error message, if any.
datamodule:models/SimplePaymentResponse The data returned by the service call.
responseString The complete HTTP response.
-
updatePaymentCallback(error, data, response)
-
Callback function to receive the result of the updatePayment operation.
Parameters:
Name Type Description errorString Error message, if any.
datamodule:models/PaymentResponse The data returned by the service call.
responseString The complete HTTP response.