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

Method start

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

* Starts the payments flow. * @return {!Promise}

()

Source from the content-addressed store, hash-verified

5730 * @return {!Promise}
5731 */
5732 start() {
5733 // Get the paySwgVersion for buyflow.
5734 const promise = this.clientConfigManager_.getClientConfig();
5735 return promise.then((clientConfig) => {
5736 this.start_(clientConfig.paySwgVersion);
5737 });
5738 }
5739
5740 /**
5741 * Starts the payments flow for the given version.

Callers

nothing calls this directly

Calls 3

start_Method · 0.95
getClientConfigMethod · 0.80
thenMethod · 0.45

Tested by

no test coverage detected