Skip to content

Commit ca45d11

Browse files
committed
!! Upgrade js SDK to v10
Changed - Upgrade js SDK to v10 - modify logic to work with v10 js SDK - update Readme.md file Added - paylike_currencies.php helper file (includes from php-api not working)
1 parent b9833ff commit ca45d11

5 files changed

Lines changed: 1124 additions & 20 deletions

File tree

README.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,11 @@ Released under the GPL V3 license: https://opensource.org/licenses/GPL-3.0
1919
4. Upload the files in the `upload` folder to root of your osCommerce store.
2020
5. In: `includes/template_top.php` add:
2121
```
22-
<?php
23-
if ( basename( $PHP_SELF ) == 'checkout_confirmation.php' ) {
24-
?>
25-
<script src="https://sdk.paylike.io/6.js"></script>
26-
<script src= "includes/javascript/paylike.js"></script>
27-
<?php
28-
}
29-
?>
30-
```
31-
Anywhere betwen the `head` tags.
22+
<?php if ( basename( $PHP_SELF ) == 'checkout_confirmation.php' ) : ?>
23+
<script src= "includes/javascript/paylike.js"></script>
24+
<?php endif ?>
25+
```
26+
Anywhere between the `head` tags.
3227
6. In: `includes/.htaccess` add:
3328
```
3429
<FilesMatch "paylike.php">
@@ -69,7 +64,7 @@ Released under the GPL V3 license: https://opensource.org/licenses/GPL-3.0
6964
if(isset($errorHandler))$errorHandler->display();
7065
```
7166
After case 'edit': line.
72-
8. Install the Paylike module from modules -> payment in the admin
67+
8. Install the Paylike module from modules -> payment in the admin (click on `Install Module` botton in the right corner)
7368
9. Insert the app key and your public key in the settings and enable the plugin
7469
7570
## Updating settings

0 commit comments

Comments
 (0)