Answers.Body: <p>I have noticed this behavior in the past. When using a PayPal sandbox account, CiviCRM transactions are flagged as "test" even when using the sandbox credentials in the "live" processor configuration.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-22T15:13:18.160Z
Answers.Text: Not the answer I was hoping for! I was hoping that it worked for others and I was doing something stupid. This suggests that it spots the "sandbox" you enter for PayPal and decides its a test, which I think is unlikely and a quick search through Github doesn't find any relevant mentions of "sandbox". I think I will try something to the real PayPal account next.
Answers.UserDisplayName: Mick Kahn
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-22T15:38:42.350Z
Answers.Text: I'm guessing that it's something in the reply from PayPal that indicates it's a sandbox transaction and CiviCRM is picking it up. I would imagine it's possible to find it in the code and prevent this from happening.
Answers.UserDisplayName: Dan O'Brien
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-22T17:09:24.167Z
Answers.Text: That is possible, because when I first started looking at this, it seemed to be inconsistent. But some of the tests got stuck pending because I hadn't got everything configured correctly. So this could explain the inconsistency. I will do some more testing, but the good news is that my live test worked fine.
Answers.UserDisplayName: Mick Kahn
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-22T22:16:53.137Z
Answers.Text: Well, done some testing. First I took the plunge and tried it all with the live PayPal site (setting all the contributions to £0.01) and that seemed to work fine and it doesn't look if PayPal has charged more than £0.01 per transaction. But I can now get no sense out of the sandbox servers used as the CiviCRM live server and they are not completing the transaction on Civi. Can't see what is wrong. I'm giving up for now as I can progress to going live and will have to return to this later. So can't prove or disprove your theory.  But at least you have moved me forwards.
Answers.UserDisplayName: Mick Kahn
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-22T22:18:31.947Z
Answers.Text: Is this a one time transaction or a recurring one? Have you set the IPN URL?
Answers.UserDisplayName: Dan O'Brien
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-23T09:30:29.517Z
Answers.Text: One time transaction and yes I have set the IPN URL
Answers.UserDisplayName: Mick Kahn
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-22T13:29:22.913Z
Answers.LastActivityDate: 2017-09-22T13:29:22.913Z
Answers.UserDisplayName: Dan O'Brien
Body: <p>I'm very nearly there with setting up PayPal Standard. I'm using WordPress 4.8.2 and CiviCRM 4.7.22 at present.</p>
  
  <p>I have set up a PayPal sandbox account and everything seems to be working nicely with the exception that it is showing up as (test) in CiviCRM - it took me a while to work this out and find it in the contribution search. I am  definitely using the live link (if I use the test link, it goes to a different PayPal sandbox account that I have set up for that and that works as expected to produce a test contribution record.</p>
  
  <p>I have tried it with a membership contribution and an event contribution. If I switch to the dummy payment processor (no other changes) it gets treated as a live contribution, so I think it must be something to do with PayPal but can't see how.</p>
  
  <p>Is there some other setting I might have missed? Any suggestions very welcome.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-09-21T17:59:32.543Z
Comments.Text: I'm not sure to understand : you want to use paypal sandbox to get real contribution in CiviCRM ? Why would you want that ?
Comments.UserDisplayName: samuelsov
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-09-21T21:50:11.430Z
Comments.Text: With the production server, in the payment processor, I will configure the live payments to the real PayPal server and the test server to the PayPal sandbox. I would use the test server for such things as demonstrating a  new contribution set up. But currently I'm on a development server, I want to try as much out as possible without any real money (I will do the final testing on the with the real PayPal account). So I set the live server in the PayPal processor to the sandbox and surely it should not think they are test contributions (how would it know?)
Comments.UserDisplayName: Mick Kahn
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-09-22T13:32:46.107Z
Comments.Text: I've tried this setup, too. The link for the test contribution page isn't available if you're not logged in, so if you're trying to simulate the user experience without an actual credit card transaction taking place, your only choice is to use the sandbox credentials for live payments. It can be confusing when you can't find the contribution records unless you specify test transactions on your search.
Comments.UserDisplayName: Dan O'Brien
Tags: <civicontribute><paypal>
Title: Live Paypal transactions showing as Test
ThreadText: # Live Paypal transactions showing as Test
  
  (Asked by: username_0 on 2017-09-21)
  
  I'm very nearly there with setting up PayPal Standard. I'm using WordPress 4.8.2 and CiviCRM 4.7.22 at present.
  
  I have set up a PayPal sandbox account and everything seems to be working nicely with the exception that it is showing up as (test) in CiviCRM - it took me a while to work this out and find it in the contribution search. I am definitely using the live link (if I use the test link, it goes to a different PayPal sandbox account that I have set up for that and that works as expected to produce a test contribution record.
  
  I have tried it with a membership contribution and an event contribution. If I switch to the dummy payment processor (no other changes) it gets treated as a live contribution, so I think it must be something to do with PayPal but can't see how.
  
  Is there some other setting I might have missed? Any suggestions very welcome.
  
  **Tags:** civicontribute, paypal
  
  > **Comments:**
  > **username_1**: I'm not sure to understand : you want to use paypal sandbox to get real contribution in CiviCRM ? Why would you want that ?  
  > **username_0**: With the production server, in the payment processor, I will configure the live payments to the real PayPal server and the test server to the PayPal sandbox. I would use the test server for such things as demonstrating a  new contribution set up. But currently I'm on a development server, I want to try as much out as possible without any real money (I will do the final testing on the with the real PayPal account). So I set the live server in the PayPal processor to the sandbox and surely it should not think they are test contributions (how would it know?)  
  > **username_2**: I've tried this setup, too. The link for the test contribution page isn't available if you're not logged in, so if you're trying to simulate the user experience without an actual credit card transaction taking place, your only choice is to use the sandbox credentials for live payments. It can be confusing when you can't find the contribution records unless you specify test transactions on your search.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-09-22. Score: 1
  
  I have noticed this behavior in the past. When using a PayPal sandbox account, CiviCRM transactions are flagged as "test" even when using the sandbox credentials in the "live" processor configuration.
  
  > **Comments:**
  > **username_0**: Not the answer I was hoping for! I was hoping that it worked for others and I was doing something stupid. This suggests that it spots the "sandbox" you enter for PayPal and decides its a test, which I think is unlikely and a quick search through Github doesn't find any relevant mentions of "sandbox". I think I will try something to the real PayPal account next.  
  > **username_2**: I'm guessing that it's something in the reply from PayPal that indicates it's a sandbox transaction and CiviCRM is picking it up. I would imagine it's possible to find it in the code and prevent this from happening.  
  > **username_0**: That is possible, because when I first started looking at this, it seemed to be inconsistent. But some of the tests got stuck pending because I hadn't got everything configured correctly. So this could explain the inconsistency. I will do some more testing, but the good news is that my live test worked fine.  
  > **username_0**: Well, done some testing. First I took the plunge and tried it all with the live PayPal site (setting all the contributions to £0.01) and that seemed to work fine and it doesn't look if PayPal has charged more than £0.01 per transaction. But I can now get no sense out of the sandbox servers used as the CiviCRM live server and they are not completing the transaction on Civi. Can't see what is wrong. I'm giving up for now as I can progress to going live and will have to return to this later. So can't prove or disprove your theory.  But at least you have moved me forwards.  
  > **username_2**: Is this a one time transaction or a recurring one? Have you set the IPN URL?  
  > **username_0**: One time transaction and yes I have set the IPN URL  
  
  ---
  
  