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)

Since:

BlackBerry 10.0.0

Arguments:

event

The event to get the response code from.

Library:

libbps (For the qcc command, use the -l bps option to link against this library)

Description:

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.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus