Answers.Body: <p>I thought I would see how far i could get with dmaster test site. I added a new Payment Processor using PayPal - Website Payments Standard and a fake email. </p>
  
  <p>I went to a contact, tried "Submit Credit Card Event Registration" and saw the credit card fields which suggests this is working with the latest code.</p>
  
  <p>If that suggests tings are working fine, then have you tried just opening the payment processor settings and resaving?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-17T22:35:27.347Z
Answers.Text: I tried the same and the credit card section won't show for "PayPal - Website Payments Standard", but when I switch it to Dummy or Authorize, it works.
Answers.UserDisplayName: severdia
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-18T00:02:56.637Z
Answers.Text: For most of CiviCRM's history back office paypal std payments have been blocked - because of how paypal std works - ie. it will attempt to pay under the logged in user. That's why other processors work & paypal std doesn't,
  
  I don't understand how you would have been able to process a paypal std payment on behalf of someone else. Doesn't it create accounts for you when you try to add a payment
Answers.UserDisplayName: user4278
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-19T03:40:12.587Z
Answers.Text: I did just notice in the PHP error log a bunch of errors like this:
Answers.UserDisplayName: severdia
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-19T03:40:31.197Z
Answers.Text: [16-Jun-2018 11:38:41 America/Chicago] PHP Fatal error:  Smarty error: [in CRM/Event/Form/EventFees.tpl line 27]: syntax error: expecting '=' after attribute name 'neq' (Smarty_Compiler.class.php, line 1558) in /home/xxxxxx/administrator/components/com_civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1100
Answers.UserDisplayName: severdia
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-19T06:23:24.880Z
Answers.Text: Pradeep has submitted a fix and we will drop 5.2.2 soon
Answers.UserDisplayName: user4278
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-21T11:21:07.643Z
Answers.Text: The 5.2.2 release doesn't fix this issue. What does it take to get this into the issue tracker? This is clearly a bug if there's no documentation stating otherwise.
Answers.UserDisplayName: severdia
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-21T20:08:39.767Z
Answers.Text: I just tried again on dmaster, set up a new PP, and no longer get Paypal standard offered as a dropdown for Event by credit card - http://dmaster.demo.civicrm.org/civicrm/contact/view/participant?reset=1&action=add&cid=203&context=participant&mode=live
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-17T21:27:18.940Z
Answers.LastActivityDate: 2018-06-17T21:27:18.940Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>As per my knowledge CiviCRM  for version >= 4.6 never allowed to do offline credit card payment either for event registration or membership purchase or record of contribution for Paypal Standard payment processor or any other processor that is Website based gateway i.e payment information like credit or debit card not collected from CiviCRM forms. It does allow for payment processor like Paypal Express or Pro. Even i believe for Paypal standard CiviCRM doesn't show credit card section on online form. Adding paypal pro payment processor might be helpful.</p>
  
  <p>Thanks</p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-17T03:50:28.343Z
Answers.Text: Add the PayPal Pro processor requires PayPal Pro, which has fees and monthly subscription. That's not an acceptable solution for us when we've been using the standard free version. If that's really true, was/is there an official notice that PayPal was being dropped from 5.2.x before it happened so it wasn't a surprise?
Answers.UserDisplayName: severdia
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-17T17:23:42.847Z
Answers.Text: We have been able to use PayPal Standard for two years or so now on 4.7.x without a problem. The problem happened after going to 5.2.
Answers.UserDisplayName: severdia
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-16T20:24:29.893Z
Answers.LastActivityDate: 2018-06-16T20:24:29.893Z
Answers.UserDisplayName: Pradeep Nayak
Answers.Body: <p>Pradeep has submitted a fix and 5.2.2 will be released shortly</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-20T02:41:42.170Z
Answers.Text: (although the fix may or may not fix this problem as the paypal std 'shouldn't work backoffice')
Answers.UserDisplayName: user4278
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-21T11:17:26.653Z
Answers.Text: The 5.2.2 release doesn't fix this issue. Why do you say that "PayPal Standard shouldn't work backoffice" ?
Answers.UserDisplayName: severdia
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-21T21:40:06.320Z
Answers.Text: Paypal standard is not intended for backoffice data entry in general - it 'tries' to get the person doing the data entry to add the card to their account / sign up for an account etc & inexperienced or 'rushing' users can wind up with a paypal account with someone else's credit card attached.
  
  If you want to hack your install to permit paypal backoffice you should be able to (you will need to keep re-hacking after upgrades) Find the file
  
  CRM/Core/Payment/PaypalImpl.php
  
  And under the line
    protected function supportsBackOffice() {
  
  add 
  
  return TRUE;
Answers.UserDisplayName: user4278
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-22T02:59:39.400Z
Answers.Text: Thanks, but this only enabled the "Submit Credit Card Event Registration" button, but the credit card portion of that page as well as the "Add Event Registration" modal are still missing. The section about Credit Card information only allows me to enter the last 4 digits, not the entire card.
Answers.UserDisplayName: severdia
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-25T11:46:46.837Z
Answers.Text: @severdia - you're being advised that PayPal Standard is not intended to work on backoffice forms for various technical reasons so there won't be any support for that and it is not a bug.  Arguably the 'bug' was that it did show up previously where it should not have done.  I appreciate it is frustrating when something you have been using disappears, even if it was not intended to be there, but there are other payment processors that are supported for backoffice use and you would be better to use one of those instead of trying to hack in functionality that is deliberately disabled.
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-19T06:41:04.433Z
Answers.LastActivityDate: 2018-06-19T06:41:04.433Z
Answers.UserDisplayName: user4278
Body: <p>I upgraded to CiviCRM 5.2.1 (on Joomla 3.8.8) and can now no longer add credit card purchases for our customers. I used to be able to log in the Joomla admin, search for the user in CiviCRM, and add an event registration to fill out the details and credit card info. But now the credit card info section is not appearing.</p>
  
  <p>Upon investigating the help docs, I see there should be a "Submit Credit Card Event Registration" button there, which isn't (and I don't recall there ever being one). Searching through SE, I found an old post from a few years ago that the Payment Processor might be the issue so I created a dummy one, made it active and now that button appears. But it only works for the dummy processor and not the one we've been using for a few years now (PayPal) and it also doesn't show the credit card section. All of this works fine on the frontend of the website. We just can't register customers for them on the backend because the credit card processing section of the page is now gone.</p>
  
  <p>First I go to the contact's event tab.</p>
  
  <p><a href="https://i.sstatic.net/sTAdp.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/sTAdp.png" alt="Event tab of a contact"></a></p>
  
  <p>Then I add a new event registration and get this:</p>
  
  <p><a href="https://i.sstatic.net/sGFUS.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/sGFUS.png" alt="Event registration"></a></p>
  
  <p>There's obviously a big open space there where the credit card block is missing. On the first screenshot you can see what it looks like when I just register a participant to an event without payment (the first row where Fee Level and Amount are empty). The second row show a previous purchase that worked fine. If I try to view/edit registrations that were successful before the update, the credit card info is there:</p>
  
  <p><a href="https://i.sstatic.net/UIQ7v.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/UIQ7v.png" alt="Edit registration"></a></p>
  
  <p>This shows this was working correctly until recently. So how can I get this feature back?</p>
  
  <p>I should add that in 5.2.2 it seems I can get a step further, but I can't edit the full credit card number, only the last 4 digits.</p>
  
  <p><a href="https://i.sstatic.net/Jzvtw.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Jzvtw.png" alt="Credit card part of registration modal"></a></p>
  
  <p>Why wouldn't I be able to add the full credit card number, expiration date, etc.?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-06-16T18:19:36.037Z
Comments.Text: Which paypal are you using?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-06-16T19:36:51.417Z
Comments.Text: I'm using "PayPal - Website Payments Standard".
Comments.UserDisplayName: severdia
Tags: <civievent><joomla><payment-processor>
Title: Can't submit credit card payment after update to 5.2.1/5.2.2 (Joomla)
ThreadText: # Can't submit credit card payment after update to 5.2.1/5.2.2 (Joomla)
  
  (Asked by: username_0 on 2018-06-16)
  
  I upgraded to CiviCRM 5.2.1 (on Joomla 3.8.8) and can now no longer add credit card purchases for our customers. I used to be able to log in the Joomla admin, search for the user in CiviCRM, and add an event registration to fill out the details and credit card info. But now the credit card info section is not appearing.
  
  Upon investigating the help docs, I see there should be a "Submit Credit Card Event Registration" button there, which isn't (and I don't recall there ever being one). Searching through SE, I found an old post from a few years ago that the Payment Processor might be the issue so I created a dummy one, made it active and now that button appears. But it only works for the dummy processor and not the one we've been using for a few years now (PayPal) and it also doesn't show the credit card section. All of this works fine on the frontend of the website. We just can't register customers for them on the backend because the credit card processing section of the page is now gone.
  
  First I go to the contact's event tab.
  
  [![Event tab of a contact](https://i.sstatic.net/sTAdp.png)](https://i.sstatic.net/sTAdp.png)
  
  Then I add a new event registration and get this:
  
  [![Event registration](https://i.sstatic.net/sGFUS.png)](https://i.sstatic.net/sGFUS.png)
  
  There's obviously a big open space there where the credit card block is missing. On the first screenshot you can see what it looks like when I just register a participant to an event without payment (the first row where Fee Level and Amount are empty). The second row show a previous purchase that worked fine. If I try to view/edit registrations that were successful before the update, the credit card info is there:
  
  [![Edit registration](https://i.sstatic.net/UIQ7v.png)](https://i.sstatic.net/UIQ7v.png)
  
  This shows this was working correctly until recently. So how can I get this feature back?
  
  I should add that in 5.2.2 it seems I can get a step further, but I can't edit the full credit card number, only the last 4 digits.
  
  [![Credit card part of registration modal](https://i.sstatic.net/Jzvtw.png)](https://i.sstatic.net/Jzvtw.png)
  
  Why wouldn't I be able to add the full credit card number, expiration date, etc.?
  
  **Tags:** civievent, joomla, payment-processor
  
  > **Comments:**
  > **username_1**: Which paypal are you using?  
  > **username_0**: I'm using "PayPal - Website Payments Standard".  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2018-06-17. Score: 0
  
  I thought I would see how far i could get with dmaster test site. I added a new Payment Processor using PayPal - Website Payments Standard and a fake email.
  
  I went to a contact, tried "Submit Credit Card Event Registration" and saw the credit card fields which suggests this is working with the latest code.
  
  If that suggests tings are working fine, then have you tried just opening the payment processor settings and resaving?
  
  > **Comments:**
  > **username_0**: I tried the same and the credit card section won't show for "PayPal - Website Payments Standard", but when I switch it to Dummy or Authorize, it works.  
  > **username_3**: For most of CiviCRM's history back office paypal std payments have been blocked - because of how paypal std works - ie. it will attempt to pay under the logged in user. That's why other processors work & paypal std doesn't,  I don't understand how you would have been able to process a paypal std payment on behalf of someone else. Doesn't it create accounts for you when you try to add a payment  
  > **username_0**: I did just notice in the PHP error log a bunch of errors like this:  
  > **username_0**: [16-Jun-2018 11:38:41 America/Chicago] PHP Fatal error:  Smarty error: [in CRM/Event/Form/EventFees.tpl line 27]: syntax error: expecting '=' after attribute name 'neq' (Smarty_Compiler.class.php, line 1558) in /home/xxxxxx/administrator/components/com_civicrm/civicrm/packages/Smarty/Smarty.class.php on line 1100  
  > **username_3**: username_1 has submitted a fix and we will drop 5.2.2 soon  
  > **username_0**: The 5.2.2 release doesn't fix this issue. What does it take to get this into the issue tracker? This is clearly a bug if there's no documentation stating otherwise.  
  > **username_2**: I just tried again on dmaster, set up a new PP, and no longer get Paypal standard offered as a dropdown for Event by credit card - http://dmaster.demo.civicrm.org/civicrm/contact/view/participant?reset=1&action=add&cid=203&context=participant&mode=live  
  
  ---
  
  ### Answer by username_1 on 2018-06-16. Score: 0
  
  As per my knowledge CiviCRM for version >= 4.6 never allowed to do offline credit card payment either for event registration or membership purchase or record of contribution for Paypal Standard payment processor or any other processor that is Website based gateway i.e payment information like credit or debit card not collected from CiviCRM forms. It does allow for payment processor like Paypal Express or Pro. Even i believe for Paypal standard CiviCRM doesn't show credit card section on online form. Adding paypal pro payment processor might be helpful.
  
  Thanks
  
  username_1
  
  > **Comments:**
  > **username_0**: Add the PayPal Pro processor requires PayPal Pro, which has fees and monthly subscription. That's not an acceptable solution for us when we've been using the standard free version. If that's really true, was/is there an official notice that PayPal was being dropped from 5.2.x before it happened so it wasn't a surprise?  
  > **username_0**: We have been able to use PayPal Standard for two years or so now on 4.7.x without a problem. The problem happened after going to 5.2.  
  
  ---
  
  ### Answer by username_3 on 2018-06-19. Score: 0
  
  username_1 has submitted a fix and 5.2.2 will be released shortly
  
  > **Comments:**
  > **username_3**: (although the fix may or may not fix this problem as the paypal std 'shouldn't work backoffice')  
  > **username_0**: The 5.2.2 release doesn't fix this issue. Why do you say that "PayPal Standard shouldn't work backoffice" ?  
  > **username_3**: Paypal standard is not intended for backoffice data entry in general - it 'tries' to get the person doing the data entry to add the card to their account / sign up for an account etc & inexperienced or 'rushing' users can wind up with a paypal account with someone else's credit card attached.  If you want to hack your install to permit paypal backoffice you should be able to (you will need to keep re-hacking after upgrades) Find the file  CRM/Core/Payment/PaypalImpl.php  And under the line   protected function supportsBackOffice() {  add   return TRUE;  
  > **username_0**: Thanks, but this only enabled the "Submit Credit Card Event Registration" button, but the credit card portion of that page as well as the "Add Event Registration" modal are still missing. The section about Credit Card information only allows me to enter the last 4 digits, not the entire card.  
  > **username_4**: @username_0 - you're being advised that PayPal Standard is not intended to work on backoffice forms for various technical reasons so there won't be any support for that and it is not a bug.  Arguably the 'bug' was that it did show up previously where it should not have done.  I appreciate it is frustrating when something you have been using disappears, even if it was not intended to be there, but there are other payment processors that are supported for backoffice use and you would be better to use one of those instead of trying to hack in functionality that is deliberately disabled.  
  
  ---
  
  