FileDocCategorySizeDatePackage
TransactionModule.javaAPI DocphoneME MR2 API (J2ME)3072Wed May 02 18:00:44 BST 2007javax.microedition.payment

TransactionModule

public class TransactionModule extends Object
This class is defined by the JSR-229 specification Payment API (PAPI), Version 1.0.0

Fields Summary
private com.sun.j2me.payment.TransactionModuleImpl
impl
Constructors Summary
public TransactionModule(Object object)

        impl = PaymentModule.getInstance().createTransactionModule(object);
    
Methods Summary
public voiddeliverMissedTransactions()

        impl.deliverMissedTransactions();
    
public TransactionRecord[]getPastTransactions(int max)

        return impl.getPastTransactions(max);
    
public intprocess(int featureID, java.lang.String featureTitle, java.lang.String featureDescription)

        int transactionID = 0;
        try {
            transactionID = impl.process(featureID, featureTitle, 
                    featureDescription, null);
        } catch (TransactionPayloadException e) {
            // never happens
        }

        return transactionID;
    
public intprocess(int featureID, java.lang.String featureTitle, java.lang.String featureDescription, byte[] payload)

        return impl.process(featureID, featureTitle, featureDescription, 
                payload);
    
public voidsetListener(TransactionListener listener)

        impl.setListener(listener);