* @param {function(!Promise<!PaymentData>)} callback
(callback)
| 18070 | * @param {function(!Promise<!PaymentData>)} callback |
| 18071 | */ |
| 18072 | onResponse(callback) { |
| 18073 | this.responseCallback_ = callback; |
| 18074 | const response = this.response_; |
| 18075 | if (response) { |
| 18076 | Promise.resolve().then(() => { |
| 18077 | if (response) { |
| 18078 | callback(this.convertResponse_(response, this.request_)); |
| 18079 | } |
| 18080 | }); |
| 18081 | } |
| 18082 | } |
| 18083 | |
| 18084 | /** |
| 18085 | * @param {!Promise<!PaymentData>} responsePromise |
no test coverage detected