Sha256: 39dc1d0f75ba2d63fc72124d698402fc7307db852fa10dbf07294ded3f6b6e25
Contents?: true
Size: 322 Bytes
Versions: 2
Compression:
Stored size: 322 Bytes
Contents
module Tang class DeleteCard def self.call(card) begin Stripe::Customer.delete_source( card.customer.stripe_id, card.stripe_id, ) rescue Stripe::StripeError => e card.errors.add(:base, :invalid, message: e.message) end return card end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tang-0.2.2 | app/services/tang/delete_card.rb |
tang-0.2.1 | app/services/tang/delete_card.rb |