Advertisement
Guest User

Untitled

a guest
Nov 7th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. test: &default
  2. client_id: Af9L4GJ7xxxxtp4wPQFqkL03bYYWuFius
  3. client_secret: xxxxxx*//*
  4. username: first.last_api2.corp.com
  5. password: YEQZF7KGCY5SFFGC
  6. signature: AFcWxV21C7fd0DDDDDSRl31ADLwdbXazZRfAA1zsZFfI4630wJS
  7. app_id: Braintree-1478556332407
  8. http_timeout: 120
  9. mode: sandbox
  10. sandbox_email_address: first.last@corp.com
  11.  
  12. development:
  13. <<: *default
  14.  
  15. with_authentication:
  16. <<: *default
  17. client_id: Af9L4GJ7xxxxtp4wPQFqkL03bYYWuFius
  18. client_secret: xxxxxx*//*
  19.  
  20. def send_payment params
  21. begin
  22. payout = PayPal::SDK::REST::Payout.new(get_payout_attributes params)
  23. @@logger.info("Create a new Payout #{payout}")
  24. result = payout.create(true)
  25. @@logger.info("Sending Payout: #{result}")
  26. rescue PayPal::SDK::Core::Exceptions => err
  27. @@logger.info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
  28. @@logger.info("Error #{err}")
  29. @@logger.info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
  30. end
  31. result
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement