Jump to content

need some Help with the Paysafecard Gateway Modul (0100Dev)


Soldier

Recommended Posts

Hello there,

 

I need Help by customize the Payment Button of this Module because its Hardcoded. But the Dev of this Gateway just gave me this Code Lines for Help:

 

$('input[value=Pay with paysafecard]').setAttribute('type', 'image');

$('input[value=Pay with paysafecard]').setAttribute('src', 'https://www.paysafecard.com/fileadmin/Website/Dokumente/B2B/logo_paysafecard.jpg');

 

He told me that i can customize the Payment Button with js but i havent Experience with it so i ask you for some Help!

 

(sorry for my bad english)

 

 

- Soldier

Link to comment
Share on other sites

the safest way to do it is to use ActionHook, create new PHP file inside /includes/hooks/ directory and copy the following code inside it:

 

<?php

add_hook("ClientAreaHeadOutput", 1, function($vars){

return <<<HTML
   <script type="text/javascript">
   $(document).ready(function(){
       $('input[value="Pay with paysafecard"]').setAttribute('type', 'image');
       $('input[value="Pay with paysafecard"]').setAttribute('src', 'https://www.paysafecard.com/fileadmin/Website/Dokumente/B2B/logo_paysafecard.jpg');
   });
   </script>
HTML;

});

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated