new module:api/PaymentAuthorizationApi(apiClientopt)
This class subject to change without prior notice, Please dont use this class directly.
Constructs a new PaymentAuthorizationApi.Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
apiClient |
module:ApiClient |
<optional> |
Optional API client implementation to use, default to module:ApiClient#instance if unspecified. |
Methods
-
cancelPaymentAuthorization(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_customer, id_authorization, cancel_payment_authorization_request, opts, callback)
-
Cancel Payment Authorization The API is used to cancel a payment authorization. Payment Authorizations that are already been processed into Payment cannot be cancelled. 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_customerString The unique identifier assigned by EBPP to the customer.
id_authorizationString The unique identifier assigned by EBPP to the payment authorization.
cancel_payment_authorization_requestmodule:models/CancelPaymentAuthorizationRequest Details of payment authorization to be 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/PaymentAuthorizationApi~cancelPaymentAuthorizationCallback The callback function, accepting three arguments: error, data, response
-
createPaymentAuthorization(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, create_payment_authorization_request, opts, callback)
-
Create Payment Authorization The API is used to create a payment authorization with certain amount on a given card account. Client systems can provide the unique identifier for the payment authorization in their system as payment_auth_reference.
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.
create_payment_authorization_requestmodule:models/CreatePaymentAuthorizationRequest 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/PaymentAuthorizationApi~createPaymentAuthorizationCallback The callback function, accepting three arguments: error, data, response data is of type: module:models/PaymentAuthorizationResponse
Type Definitions
-
cancelPaymentAuthorizationCallback(error, data, response)
-
Callback function to receive the result of the cancelPaymentAuthorization operation.
Parameters:
Name Type Description errorString Error message, if any.
dataThis operation does not return a value.
responseString The complete HTTP response.
-
createPaymentAuthorizationCallback(error, data, response)
-
Callback function to receive the result of the createPaymentAuthorization operation.
Parameters:
Name Type Description errorString Error message, if any.
datamodule:models/PaymentAuthorizationResponse The data returned by the service call.
responseString The complete HTTP response.