def send_receipt(payment)
      @payment = payment
      @payment_url = public_receipt_payment_url(:payment_id => @payment.id,
                                                :public_token => @payment.public_token)

      mail(:to => "#{@payment.customer.email}", 
           :from => Jackpot.configuration.mailer[:from],
           :subject => "Payment receipt")
    end
def send_receipt(payment)
      @payment = payment
      @payment_url = public_receipt_payment_url(:payment_id => @payment.id,
                                                :public_token => @payment.public_token)

      mail(:to => "#{@payment.customer.email}", 
           :from => Jackpot.configuration.mailer[:from],
           :subject => "Payment receipt")
    end
Sends the receipt to the customer who made this payment