[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]
Informs the browser that the purchase is finished and the appropriate terminating UI screen (success or fail) should be shown. The complete() method must be called after the user has accepted the payment request and the promise has been resolved.
var retVal = PaymentResponse.complete(result);
- result [in]
[result]: PaymentComplete enum
|"success"||Indicates the payment was successfully processed. The browser may display UI indicating success.|
|"fail"||Indicates that the processing of payment failed. The browser may display UI indicating failure.|
|""||Default. The web page did not indicate success or failure. The browser should not display UI indicating success or failure.|