HRESULT GeneratePaymentInformation(
BSTRbstrFriendname// in
BSTRbstrTotal// in
BSTRbstrHashOrder// in
BSTRbstrAcceptTypes// in
SAFEARRAY (VARIANT) *ppsa// out
);
The GeneratePaymentInformation function returns a payment instruction (PI) based upon the instance.
If you are using a third-party CPC, the HTML (or .asp) page needs to handle the fields that the CPC returns from the GeneratePaymentInformation call. To do this, these fields need to be added to the hidden form on your HTML page in order to get posted. You should also add the lines to initialize these form fields to their appropriate values.
Note When this function is called, a dialog box should be displayed to the consumer warning that a specific instance of a payment type is being charged for a shopping transaction.
This function returns one of the following values.
Value | Meaning |
---|---|
E_FAIL | Failure. |
E_INVALIDARG | One or more of its arguments is invalid. |
E_OUTOFMEMORY | Out of memory. |
S_OK | Success. |