MCPcopy Create free account
hub / github.com/codecombat/codecombat / createBillingAgreement

Function createBillingAgreement

app/core/api/users.js:74–80  ·  view source on GitHub ↗
({ userID, productID }, options)

Source from the content-addressed store, hash-verified

72 },
73
74 createBillingAgreement ({ userID, productID }, options) {
75 if (options == null) { options = {} }
76 return fetchJson(this.url(userID, 'paypal/create-billing-agreement'), _.assign({}, options, {
77 method: 'POST',
78 json: { productID }
79 }))
80 },
81
82 executeBillingAgreement ({ userID, token }, options) {
83 if (options == null) { options = {} }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected