ghost-payment-service
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -203,2 +203,17 @@ 'use strict'; | ||
* @param {object} data | ||
* @param {string} data.planId | ||
* @return Promise | ||
*/ | ||
getPlan (data) { | ||
return new Promise((resolve, reject) => { | ||
this._stripe.plans.retrieve(data.planId, (err, plan) => { | ||
if (err) reject(err); | ||
else resolve(plan); | ||
} | ||
); | ||
}) | ||
} | ||
/** | ||
* @param {object} data | ||
* @param {string} data.cardId | ||
@@ -205,0 +220,0 @@ * @param {string} data.customerId |
{ | ||
"name": "ghost-payment-service", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "nodejs client to interact with the authorize.net & stripe apis", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34983
1019