Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Payment Service

Posts: 10
Registered: ‎03-08-2013
My Device: BB 10
My Carrier: -

can i use this line code and test in debug??

	        if (paymentservice_purchase_request(digital_good_id, digital_good_sku, digital_good_name,
	                metadata, purchase_app_name, purchase_app_icon, get_window_group_id(), &request_id) != BPS_SUCCESS) {
	            fprintf(stderr, "Error: purchase request failed.\n");

 can this line code tested in debug?

or it must tested in sandbox?

Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: can i use this line code and test in debug??

You can use it in debug but only when using local testing:


In sandbox/live testing mode you won't have access to the console logs so you may want to dump errors to the screen or a text document in the /shared directory.

Goodbye everybody!