Author Topic: How do I edit the "Secure payment form" page within the Authorize.net Gateway?  (Read 3428 times)

Offline uwskigy

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
I want to edit the text at the top of the "Secure Payment Form" page which takes the credit card information from the user.  Here is the text I'd like to edit, where can I do this?  I'd also like to add a visa/mastercard logo to indicate to the user that these are the only two types of cards accepted.

Thanks.

Please verify the information below, and enter your card details. Mandatory fields are marked with an asterisk (*). Before entering your card details, make sure that your browser is displaying a padlock icon, and that the address of this web page starts with https://

Offline uwskigy

  • Jr. Member
  • **
  • Posts: 3
    • View Profile
Also is there a way to add the order total on the same page?  I've received lots of feedback from my customers that they never see an order total anywhere during checkout.

Thanks!

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,954
    • View Profile
The text that is output on the card details screen in the authorize.net gateway is held in the language file: /administrator/components/com_netinvoice/admin.gateway/admin.authnet/authnet_english.php.

You can modify the page (eg. to add images etc.) by editing the /administrator/components/com_netinvoice/admin.gateway/admin.authnet/authent_card_capture.php file.

To show a summary including the total amount to pay, make sure your order form has 'show summary' set to 'yes'.

Offline geo-track

  • Sr. Member
  • ****
  • Posts: 99
    • View Profile
How do i get to this file page?

Thanks I'm currently at the same step as he was,

David

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,954
    • View Profile
You would typically use an FTP client or perhaps a file manager in your web hosting control panel.

Offline geo-track

  • Sr. Member
  • ****
  • Posts: 99
    • View Profile
ah okay so i did get to the right place,

but i landed on a php file, how do i figure out the code to input to show the total amount on the form?

Thanks
DM

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,954
    • View Profile
As I said in a previous reply, if you set 'show summary' to 'yes' on the order form, it will show the amount to pay. If you want to add the amount to the card capture page as well, you could insert the following code at line 115 (just before the row containing the submit button):

               <tr>
                  <td class="field-title" align="left" valign="top"><strong>Amount to Pay</strong></td>
                  <td class="field-title" align="left" valign="top"><strong>$<?php echo format_number($params['x_amount'], 2); ?></strong></td>
               </tr>

Offline geo-track

  • Sr. Member
  • ****
  • Posts: 99
    • View Profile
How can i edit the secure page for it to show up in french language when chosen, the form on nbill is french but when we get to the CC info page, it defaults to english,

would i add this settings in /public_html/administrator/components/com_netinvoice/admin.gateway/admin.authnet/??

the .php file?

Thanks
David

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,954
    • View Profile
You would need to add a new file:

/administrator/components/com_netinvoice/admin.gateway/admin.authnet/authnet_french.php

You can copy the contents of the authnet_english file into that new file, and translate the text into French.

Offline geo-track

  • Sr. Member
  • ****
  • Posts: 99
    • View Profile
« Last Edit: 28/August/2009, 10:24:14 PM by geo-track »

Offline geo-track

  • Sr. Member
  • ****
  • Posts: 99
    • View Profile
Okay i was able to change the text, but I can't find the line
"Amount to pay"  >> Found it in auth_card_capture, how do i allow this to be in french when language chosen,

I tried making a file. fr.php but still doesn't work.

how do i make this work

Thanks
David
« Last Edit: 28/August/2009, 10:23:39 PM by geo-track »

Offline netshine

  • Administrator
  • Hero Member
  • *****
  • Posts: 4,954
    • View Profile
In the sample code, above, I hard-coded that text. If you want it picked up from the language file, you would need to add a new entry for it in both language files and use a constant like this:

               <tr>
                  <td class="field-title" align="left" valign="top"><strong><?php echo INV_AUTHNET_AMOUNT_TO_PAY; ?></strong></td>
                  <td class="field-title" align="left" valign="top"><strong>$<?php echo format_number($params['x_amount'], 2); ?></strong></td>
               </tr>


Then in the authnet_english.php file, add this to the end (before the ?> close tag, if applicable):

define("INV_AUTHNET_AMOUNT_TO_PAY", "Amount to Pay");

...and an equivalent line in the French file.

Offline geo-track

  • Sr. Member
  • ****
  • Posts: 99
    • View Profile
Perfect,

That worked great,

Thanks a million,

David ;D