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

Method purchaseWithPayPal

app/models/Product.js:60–68  ·  view source on GitHub ↗
(payment, options)

Source from the content-addressed store, hash-verified

58 }
59
60 purchaseWithPayPal (payment, options) {
61 return this.purchase(undefined, _.merge({
62 data: {
63 service: 'paypal',
64 paymentID: payment.id,
65 payerID: payment.payer.payer_info.payer_id
66 }
67 }, options))
68 }
69 }
70 ProductModel.initClass()
71 return ProductModel

Callers 1

Calls 1

purchaseMethod · 0.95

Tested by

no test coverage detected