Sha256: 482d467f9e23eec6b7b47c15774cc04c24f68d110839e1db091bee40707d26e9
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
module CatarsePaypalExpress module Processors class Paypal def process!(backer, data) status = data["checkout_status"] || "pending" notification = backer.payment_notifications.new({ status: status, extra_data: data }) notification.save! backer.confirm! if success_payment?(status) end protected def success_payment?(status) status == 'PaymentActionCompleted' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
catarse_paypal_express-0.1.0 | lib/catarse_paypal_express/processors/paypal.rb |