MCPcopy Create free account
hub / github.com/ampproject/amphtml / createClient_

Method createClient_

third_party/subscriptions-project/swg.js:17963–17973  ·  view source on GitHub ↗

* @param {!PaymentOptions} options * @param {string} googleTransactionId * @param {function(!Promise<!PaymentData>)} handler * @return {!PaymentsAsyncClient} * @private

(options, googleTransactionId, handler)

Source from the content-addressed store, hash-verified

17961 * @private
17962 */
17963 createClient_(options, googleTransactionId, handler) {
17964 // Assign Google Transaction ID to PaymentsAsyncClient.googleTransactionId_
17965 // so it can be passed to gpay_async.js and stored in payment clearcut log.
17966 PaymentsAsyncClient.googleTransactionId_ = googleTransactionId;
17967 return new PaymentsAsyncClient(
17968 options,
17969 handler,
17970 /* useIframe */ false,
17971 this.activityPorts_.getOriginalWebActivityPorts()
17972 );
17973 }
17974
17975 /**
17976 * @param {!../utils/preconnect.Preconnect} pre

Callers 1

Calls 1

Tested by

no test coverage detected