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

Function isPaymentMethodValid

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

* Validate the payment method. * * @param {string} paymentMethod * @return {boolean} if the current payment method is valid.

(paymentMethod)

Source from the content-addressed store, hash-verified

16124 * @return {boolean} if the current payment method is valid.
16125 */
16126function isPaymentMethodValid(paymentMethod) {
16127 return Object.values(Constants.PaymentMethod).includes(paymentMethod);
16128}
16129
16130/**
16131 * Validate the auth method.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected