Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test: &default
- client_id: Af9L4GJ7xxxxtp4wPQFqkL03bYYWuFius
- client_secret: xxxxxx*//*
- username: first.last_api2.corp.com
- password: YEQZF7KGCY5SFFGC
- signature: AFcWxV21C7fd0DDDDDSRl31ADLwdbXazZRfAA1zsZFfI4630wJS
- app_id: Braintree-1478556332407
- http_timeout: 120
- mode: sandbox
- sandbox_email_address: first.last@corp.com
- development:
- <<: *default
- with_authentication:
- <<: *default
- client_id: Af9L4GJ7xxxxtp4wPQFqkL03bYYWuFius
- client_secret: xxxxxx*//*
- def send_payment params
- begin
- payout = PayPal::SDK::REST::Payout.new(get_payout_attributes params)
- @@logger.info("Create a new Payout #{payout}")
- result = payout.create(true)
- @@logger.info("Sending Payout: #{result}")
- rescue PayPal::SDK::Core::Exceptions => err
- @@logger.info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
- @@logger.info("Error #{err}")
- @@logger.info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
- end
- result
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement