paymentservice_event_get_extra_parameter_key_at_index()

Retrieve the extra parameter key from a PURCHASE_RESPONSE at the specified index.

Synopsis:

#include <bps/paymentservice.h>
 
BPS_API const char* paymentservice_event_get_extra_parameter_key_at_index(bps_event_t *event,
                                                                      unsigned int index,
                                                                      unsigned int key_index)

Since:

BlackBerry 10.0.0

Arguments:

event

The event containing the array of existing purchases.

index

The index into the array of existing purchases. You can specify an index value that ranges from zero to the number of purchases minus one. You can retrieve the number of purchases using the paymentservice_event_get_number_purchases() function.

key_index

The index into the list of extra parameters. You can specify an index value that ranges from zero to the number of extra parameters minus one. You can retrieve the number of extra parameters using the paymentservice_event_get_extra_parameter_count() function.

Library:

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

Description:

Returns:

The extra parameter key at the specified key_index, or NULL if the key_index was out of bounds.

Last modified: 2014-09-30



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

comments powered by Disqus