net.liftmodules.paypal
To handle IPN transactions you need to do the following:
// in Whatever.scala object MyPayPalHandler extends PayPal { import PaypalTransactionStatus._ def actions = { case (ClearedPayment, info, _) => // write the payment to the database case (RefundedPayment, info, _) => // process refund } } // in Boot.scala LiftRules.statelessDispatchTable = MyPayPalHandler orElse LiftRules.statelessDispatchTable
In this way you then get all the DispatchPF processing stuff for free.
How many times do we try to verify the request
To handle IPN transactions you need to do the following:
// in Whatever.scala object MyPayPalHandler extends PayPal { import PaypalTransactionStatus._ def actions = { case (ClearedPayment, info, _) => // write the payment to the database case (RefundedPayment, info, _) => // process refund } } // in Boot.scala LiftRules.statelessDispatchTable = MyPayPalHandler orElse LiftRules.statelessDispatchTable
In this way you then get all the DispatchPF processing stuff for free.