Use mozPaymentProvider API instead of raw paymentSuccess and paymentFailed functions. (bug 877103) r=kumar