TransactionModulepublic 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 void | deliverMissedTransactions()
impl.deliverMissedTransactions();
| public TransactionRecord[] | getPastTransactions(int max)
return impl.getPastTransactions(max);
| public int | process(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 int | process(int featureID, java.lang.String featureTitle, java.lang.String featureDescription, byte[] payload)
return impl.process(featureID, featureTitle, featureDescription,
payload);
| public void | setListener(TransactionListener listener)
impl.setListener(listener);
|
|