HRESULT NewPaymentInstance(
BSTRbstrType// in
long FAR *pcIdx// out
);
The NewPaymentInstance function adds a new instance to the CPC. When this function is called, the Payment Selector provides the appropriate type of the instance and the CPC returns the index position of the new instance.
This function returns one of the following values.
Value | Meaning |
---|---|
E_INVALIDARG | One or more of the arguments is invalid. |
E_OUTOFMEMORY | Out of memory. |
E_FAIL | Failure. |
S_FALSE | Cancel by user. |
S_OK | Success. |
During add and modify operations, the IWalletCallback::Exists function must be called to verify that no instance with the same friendly name exists across payment modules.