Socket
Socket
Sign inDemoInstall

machinepack-stripe

Package Overview
Dependencies
11
Maintainers
5
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 3.0.0

21

lib/delete-source.js

@@ -7,3 +7,3 @@ module.exports = {

description: 'Delete a payment source from a customer.',
description: 'Delete a customer\'s default payment source.',

@@ -14,5 +14,2 @@

sideEffects: 'idempotent',
inputs: {

@@ -22,2 +19,8 @@

customer: {
description: 'The ID of an existing customer whose card is being deleted.',
example: 'cus_4kmLwU2PvQBeqq',
required: true
},
source: {

@@ -35,5 +38,3 @@ description: 'The Stripe ID of the source to delete.',

success: {
outputFriendlyName: 'Deleted Stripe payment source',
outputDescription: 'Details of the just-deleted Stripe payment source.',
outputExample: require('../constants/source.schema')
description: 'The payment source has been deleted successfully.'
}

@@ -49,3 +50,3 @@ },

// Use the Stripe API to delete the source.
stripe.customers.deleteCard(inputs.customer, inputs.card, function(err, source) {
stripe.customers.deleteCard(inputs.customer, inputs.source, function(err) {
// Send any errors through the `error` exit.

@@ -56,4 +57,4 @@ // TODO: handle more specific exits (i.e. rate limit, customer does not

// Return info about the deleted source through the `success` exit.
return exits.success(source);
// Return through the `success` exit.
return exits.success();
});

@@ -60,0 +61,0 @@

{
"name": "machinepack-stripe",
"version": "2.0.0",
"version": "3.0.0",
"description": "Communicate with the Stripe API to charge credit cards, etc.",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc