Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
patilajayr
Posts: 385
Registered: 07-28-2010
My Carrier: hi
Accepted Solution

IN purchasing getTransactionId() get value zero

[ Edited ]

Hello Friends,

                i am doing in app purchasing. purchasing id work fine. but getting problem when i am use getTransactionId(). i am getting 0.

my code is bellow.

public boolean startPurchase() throws IllegalArgumentException,IllegalApplicationException,PaymentServerException, UserCancelException,PaymentException,AppWorldUpdateRequired  {
         PurchaseArgumentsBuilder arguments = new PurchaseArgumentsBuilder()
        .withDigitalGoodSku( digitalGoodSku )
        .withDigitalGoodName( digitalGoodName )
        .withMetadata( digitalGoodName )
        .withPurchasingAppName( "PushLegal" );
       System.out.println("***************startPurchase************************");
  			 Purchase purchase= engine.purchase(arguments.build());
  		      
  			 Dialog.alert("Transiction id:: "+purchase.getTransactionId());
         	transactionId=purchase.getTransactionId();
         	System.out.println("***************startPurchase retrn true************************");
         	return true;
      }

 i am getting value 0 when i am using purchase.getTransactionID(); what should i do? please ans me..

 

Thanks and regards,

  Ajay Patil.

 

Please use plain text.
BlackBerry Development Advisor
gbeukeboom
Posts: 818
Registered: 10-16-2009

Re: IN purchasing getTransactionId() get value zero

Hi Ajay,

 

Are you testing in sandbox mode? If so the Transaction ID will always be 0 as no transaction is actually occurring.

 

Regards,

Garett Beukeboom
BlackBerry Development Advisor
Developer Zone

--
Think or a great new feature? Find a bug?
Log and track them using the Developer Issue Tracker
Please use plain text.
Developer
patilajayr
Posts: 385
Registered: 07-28-2010
My Carrier: hi

Re: IN purchasing getTransactionId() get value zero

Hai thanks for reply me. yes i am testing my application on sandbox mode. if i submit my application to app world than it work fine?

Thanks and regards,

    Ajay Patil.

Please use plain text.
BlackBerry Development Advisor
gbeukeboom
Posts: 818
Registered: 10-16-2009

Re: IN purchasing getTransactionId() get value zero

If you actually post your application for sale, download from outside the sandbox and actually purchase a digital good, then you should receive a valid Transaction ID.

Garett Beukeboom
BlackBerry Development Advisor
Developer Zone

--
Think or a great new feature? Find a bug?
Log and track them using the Developer Issue Tracker
Please use plain text.
Developer
himanshupatel
Posts: 72
Registered: 04-07-2010
My Carrier: vodafone

Re: IN purchasing getTransactionId() get value zero

 

Hi

We are right now useing PaymentApi.jar version 1.5 , now with latest appworld>3.0 we test it on OS6 and OS7 devices it works fine.

But for device 8520 OS version 5.0 same application we try to run on purchase .

 

When PaymentEngine.purchase() called , exception thrown

IllegalArgumentException: classname does not exist in the current application package

 

Please suggest as we are in trouble die to this.

 

Thanks,

Himanshu

Please use plain text.
Developer
patilajayr
Posts: 385
Registered: 07-28-2010
My Carrier: hi

Re: IN purchasing getTransactionId() get value zero

Hello,

          You are wrong. My application on appworld but i didnt get transactionID. i still get transactionID zero. i am not using now sandbox but still i get zero transection id. please help me for that....

 

Thanks and regards,

    Ajay Patil.

Please use plain text.
Developer
himanshupatel
Posts: 72
Registered: 04-07-2010
My Carrier: vodafone

Re: IN purchasing getTransactionId() get value zero

Hi Ajay,

 

Can give some hint for the my problem i have release in 2 days and i am stuck.

 

Thanks in advance.

 

Himanshu

 

 

Please use plain text.
Developer
patilajayr
Posts: 385
Registered: 07-28-2010
My Carrier: hi

Re: IN purchasing getTransactionId() get value zero

Please use plain text.
Developer
patilajayr
Posts: 385
Registered: 07-28-2010
My Carrier: hi

Re: IN purchasing getTransactionId() get value zero

Hello,

          You are wrong. My application on appworld but i didnt get transactionID. i still get transactionID zero. i am not using now sandbox but still i get zero transection id. please help me for that.... please help me....

 

Thanks and regards,

    Ajay Patil.

Please use plain text.
Developer
himanshupatel
Posts: 72
Registered: 04-07-2010
My Carrier: vodafone

Re: IN purchasing getTransactionId() get value zero

Thanks Ajay,

 

Ye the link is for registry.

can i have your contact mail so that i can contact you.

Himanshu Patel

Baroda, Gujarat

Please use plain text.