[Skip to main content](#vessel-content)

#   Adding description to payment confirmation

##

- **[williamstdd](/forum/user/1248-williamstdd "View williamstdd's Profile")**
- [![williamstdd's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1248.jpg)](/forum/user/1248-williamstdd "View williamstdd's Profile") Topic Author
- [ Offline](/forum/user/1248-williamstdd)

Less More

- Posts: 38
- Thank you received: 0
-
-
-
- [](http://www.rescuetheproblemproject.com)
-

15 years 8 months ago [\#9389](#9389) by [williamstdd](/forum/user/1248-williamstdd "View williamstdd's Profile")  *[Adding description to payment confirmation](/forum/4-how-to/9389-adding-description-to-payment-confirmation#9389 "After the user enters their credit card data and presses &quot;Next,&quot; they go to another screen that I am calling the confirmation screen. It has the PAN truncated CC number, and other CC data blanked...")* was created by *[williamstdd](/forum/user/1248-williamstdd "View williamstdd's Profile")*

After the user enters their credit card data and presses "Next," they go to another screen that I am calling the confirmation screen. It has the PAN truncated CC number, and other CC data blanked out. Is there a way to put an explanatory header at the top. Something like "Please confirm your order and press next to submit"?

---

Cheers,
Todd

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkzODktYWRkaW5nLWRlc2NyaXB0aW9uLXRvLXBheW1lbnQtY29uZmlybWF0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 8 months ago [\#9405](#9405) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Adding description to payment confirmation](/forum/4-how-to/9389-adding-description-to-payment-confirmation#9405 "After the user enters their credit card data and presses &quot;Next,&quot; they go to another screen that I am calling the confirmation screen. It has the PAN truncated CC number, and other CC data blanked...")*

Sure. you can go in the menu Display-&gt;Views and edit the file step of the view checkout for that. There you can add some code to display your message on your step:

if($this-&gt;current==XX){ //XX needs to be replaced by the step number on which you want to display your message
echo 'Please confirm your order and press next to submit';
}

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkzODktYWRkaW5nLWRlc2NyaXB0aW9uLXRvLXBheW1lbnQtY29uZmlybWF0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[williamstdd](/forum/user/1248-williamstdd "View williamstdd's Profile")**
- [![williamstdd's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1248.jpg)](/forum/user/1248-williamstdd "View williamstdd's Profile") Topic Author
- [ Offline](/forum/user/1248-williamstdd)

Less More

- Posts: 38
- Thank you received: 0
-
-
-
- [](http://www.rescuetheproblemproject.com)
-

15 years 8 months ago [\#9533](#9533) by [williamstdd](/forum/user/1248-williamstdd "View williamstdd's Profile")  Replied by *[williamstdd](/forum/user/1248-williamstdd "View williamstdd's Profile")* on topic *[Re: Adding description to payment confirmation](/forum/4-how-to/9389-adding-description-to-payment-confirmation#9533 "After the user enters their credit card data and presses &quot;Next,&quot; they go to another screen that I am calling the confirmation screen. It has the PAN truncated CC number, and other CC data blanked...")*

I could not get this to work. I placed it just below the line the declares the form action:

&lt;form action="&lt;?php echo hikashop::completeLink('checkout&amp;task=step&amp;step='.($this-&gt;step+1).$url_itemid); ?&gt;" method="post" name="hikashop_checkout_form" enctype="multipart/form-data"&gt;
&lt;?php
}
echo 'Step '.$this-&gt;current;
if($this-&gt;current==2){
echo '&lt;h2&gt;Please confirm your order and press next to submit&lt;/h2&gt;';
}
$this-&gt;nextButton = true;

But, this--&gt;current is empty. I also tried using this--&gt;step but it is always 1.

---

Cheers,
Todd

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkzODktYWRkaW5nLWRlc2NyaXB0aW9uLXRvLXBheW1lbnQtY29uZmlybWF0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 8 months ago [\#9538](#9538) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Adding description to payment confirmation](/forum/4-how-to/9389-adding-description-to-payment-confirmation#9538 "After the user enters their credit card data and presses &quot;Next,&quot; they go to another screen that I am calling the confirmation screen. It has the PAN truncated CC number, and other CC data blanked...")*

the number depends on your checkout workflow. With the default checkout workflow, you should use the code below and place it just before the next button display:
if($this-&gt;step==0 &amp;&amp; $this-&gt;nextButton){

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkzODktYWRkaW5nLWRlc2NyaXB0aW9uLXRvLXBheW1lbnQtY29uZmlybWF0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[williamstdd](/forum/user/1248-williamstdd "View williamstdd's Profile")**
- [![williamstdd's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1248.jpg)](/forum/user/1248-williamstdd "View williamstdd's Profile") Topic Author
- [ Offline](/forum/user/1248-williamstdd)

Less More

- Posts: 38
- Thank you received: 0
-
-
-
- [](http://www.rescuetheproblemproject.com)
-

15 years 8 months ago [\#9596](#9596) by [williamstdd](/forum/user/1248-williamstdd "View williamstdd's Profile")  Replied by *[williamstdd](/forum/user/1248-williamstdd "View williamstdd's Profile")* on topic *[Re: Adding description to payment confirmation](/forum/4-how-to/9389-adding-description-to-payment-confirmation#9596 "After the user enters their credit card data and presses &quot;Next,&quot; they go to another screen that I am calling the confirmation screen. It has the PAN truncated CC number, and other CC data blanked...")*

Okay, I am seeing the issue on why it will not work. I am not using the standard workflow. I am using "login,address_shipping_payment_confirm_coupon_cart_status_fields,end" The reason is that with the SIM version of the authorize.net it asks for the Credit Card data on the registration screen, which is lost when you click register. Moving it to its own step removes the issue from the "user experience" (BTW, with user registration confirmation on (i.e. the test site) you also lose which selection they make and the refresh of changing selection causes a submit.)

In this case though, the screen for entering the CC details is Step=1 and when you press next you stay in step 1, it does not advance. If I change the flow yet again to "login,address_shipping_payment_coupon_cart_status_fields,confirm,end". I get the confrim view and it is step 2.

So, where the confusion happens is on entering the CC data and pressing enter the software does not advance a step, it refreshing the screen with PAN truncation on the card data. In request I was erroneously calling that a confirmation screen.

So, with all of that (hopefully it makes sense) do you have any suggestions?
TCW

---

Cheers,
Todd

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkzODktYWRkaW5nLWRlc2NyaXB0aW9uLXRvLXBheW1lbnQtY29uZmlybWF0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 8 months ago [\#9598](#9598) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Adding description to payment confirmation](/forum/4-how-to/9389-adding-description-to-payment-confirmation#9598 "After the user enters their credit card data and presses &quot;Next,&quot; they go to another screen that I am calling the confirmation screen. It has the PAN truncated CC number, and other CC data blanked...")*

If you use the checkout workflow:
"login,address_shipping_payment_coupon_cart_status_fields,confirm,end" then, the code should be:
if($this-&gt;step==2){
since the confirm is on the step number 2.

If you want to remove the fact that the CC is displayed on the same step, you can remove the line:
return false;
in the code:
if($new_cc_valid){
$app-&gt;setUserState( HIKASHOP_COMPONENT.'.cc_number',base64_encode($cc_number));
$app-&gt;setUserState( HIKASHOP_COMPONENT.'.cc_month',base64_encode($cc_month));
$app-&gt;setUserState( HIKASHOP_COMPONENT.'.cc_year',base64_encode($cc_year));
$app-&gt;setUserState( HIKASHOP_COMPONENT.'.cc_CCV',base64_encode($cc_CCV));
$app-&gt;setUserState( HIKASHOP_COMPONENT.'.cc_owner',base64_encode($cc_owner));
}
return false;

in the file components/com_hikashop/controllers/checkout.php

I think that it makes sense to not have that supplementary step and you can still have it by creating an additional step.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkzODktYWRkaW5nLWRlc2NyaXB0aW9uLXRvLXBheW1lbnQtY29uZmlybWF0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[williamstdd](/forum/user/1248-williamstdd "View williamstdd's Profile")**
- [![williamstdd's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1248.jpg)](/forum/user/1248-williamstdd "View williamstdd's Profile") Topic Author
- [ Offline](/forum/user/1248-williamstdd)

Less More

- Posts: 38
- Thank you received: 0
-
-
-
- [](http://www.rescuetheproblemproject.com)
-

15 years 8 months ago [\#9982](#9982) by [williamstdd](/forum/user/1248-williamstdd "View williamstdd's Profile")  Replied by *[williamstdd](/forum/user/1248-williamstdd "View williamstdd's Profile")* on topic *[Re: Adding description to payment confirmation](/forum/4-how-to/9389-adding-description-to-payment-confirmation#9982 "After the user enters their credit card data and presses &quot;Next,&quot; they go to another screen that I am calling the confirmation screen. It has the PAN truncated CC number, and other CC data blanked...")*

Removing that screen (your second option) worked very well. Thanks.

---

Cheers,
Todd

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkzODktYWRkaW5nLWRlc2NyaXB0aW9uLXRvLXBheW1lbnQtY29uZmlybWF0aW9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.077 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
