Skip to content

Instantly share code, notes, and snippets.

@dph01
Created April 21, 2012 10:14
Show Gist options
  • Select an option

  • Save dph01/2436355 to your computer and use it in GitHub Desktop.

Select an option

Save dph01/2436355 to your computer and use it in GitHub Desktop.
override def processPDT(r: Req)(): Box[LiftResponse] = {
val ret = for (tx <- r.param("tx").or(Failure("parameter tx missing in PayPal PDT call"));
val y = logger.debug("calling PaypalDataTransfer with paypayAuthToken: " + paypalAuthToken +
",tx: " + tx + ", mode: " + mode + ", connection: " + connection);
val resp = PaypalDataTransfer(paypalAuthToken, tx, mode, connection);
info <- resp.paypalInfo.or(Failure("Paypal Info not available. PaypalDataTransfer returned: " +
resp));
redir <- tryo(pdtResponse(info, r))) yield {
redir
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment