mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 1615630 - Call PaymentRequestManager::NotifyRequestDone() when PaymentShowActionResponse.status() is not PAYMENT_ACCEPTED before calling PaymentRequest::RespondShowPayment r=baku,alchen
Differential Revision: https://phabricator.services.mozilla.com/D65692 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
703ed9959d
commit
0ae0e5703d
@ -683,13 +683,16 @@ nsresult PaymentRequestManager::RespondPayment(
|
||||
break;
|
||||
}
|
||||
}
|
||||
// If PaymentActionResponse is not PAYMENT_ACCEPTED, no need to keep the
|
||||
// PaymentRequestChild instance. Otherwise, keep PaymentRequestChild for
|
||||
// merchants call PaymentResponse.complete()
|
||||
if (rejectedReason.Failed()) {
|
||||
NotifyRequestDone(aRequest);
|
||||
}
|
||||
aRequest->RespondShowPayment(response.methodName(), responseData,
|
||||
response.payerName(), response.payerEmail(),
|
||||
response.payerPhone(),
|
||||
std::move(rejectedReason));
|
||||
if (rejectedReason.Failed()) {
|
||||
NotifyRequestDone(aRequest);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case IPCPaymentActionResponse::TIPCPaymentAbortActionResponse: {
|
||||
|
Loading…
Reference in New Issue
Block a user