Last active
July 5, 2016 18:47
-
-
Save etagwerker/0f264e51486ba25413339e7f51ee9942 to your computer and use it in GitHub Desktop.
check_payments.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PaymentGateway::MangoGateway < PaymentGateway | |
# Checks for payments | |
def check_payments | |
begin | |
payments = Mango::Charges.list(secret_api_key) | |
if payments.any? | |
logger.info "payments: #{payments.inspect}" | |
logger.info "[Mango] Payment Found! " | |
# ... | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment