paymentservice_event_get_response_code()
Retrieve the response code from a Payment Service event.
Synopsis:
#include <bps/paymentservice.h>
BPS_API int paymentservice_event_get_response_code(bps_event_t *event)
Arguments:
- event
-
The event to get the response code from.
Library:
libbpsDescription:
The paymentservice_event_get_response_code() function gets the response code from the specified event that is received from the Payment Service.
Returns:
SUCCESS_RESPONSE to indicate that the request made to the payment system was successful and FAILURE_RESPONSE to indicate that the request that was made to the payment system failed. Both SUCCESS_RESPONSE and FAILURE_RESPONSE indicate that a valid response code was extracted from the event, however, if BPS_FAILURE is returned, it indicates that there was an error determining the response code from the event.