This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* INSTRUCTIONS: | |
* | |
* Make sure you are on the Broadband > Daily Usage tab of the MySLT Portal | |
* | |
* Right click any where on the web page and click "Inspect". | |
* The Inspect window will open, go to the "Console" tab. | |
* | |
* Select the month you want to the total for in the MySLT Daily Usage tab | |
* Copy & paste in the following code in the Console tab of the Inspector window. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package CRM | |
* @copyright CiviCRM LLC https://civicrm.org/licensing | |
* | |
* Generated from xml/schema/CRM/Core/Extension.xml | |
* DO NOT EDIT. Generated by CRM_Core_CodeGen | |
* (GenCodeChecksum:8d9c173c0d7da38d4c28c6b712aecee0) | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_gateway_icon', 'modify_payhere_ico', 10, 2 ); | |
function modify_payhere_ico($ico_html, $payment_gateway_id){ | |
if ( $payment_gateway_id != 'payhere' ){ | |
return $ico_html; | |
} | |
$current_image_url = '/(.+)(https:\/\/www.payhere.lk\/downloads\/images\/payhere_long_banner.png)(.+)/'; | |
$new_image_url = 'https://bit.ly/3pijjpk'; // replace this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Security.Cryptography; | |
public class PaymentPayHereController : BasePaymentController{ | |
/** | |
MD5 Hashes the input string. | |
Return value contains only lowercase alphabeticals and numbers. | |
*/ | |
private string GenerateHash(string input) | |
{ | |
MD5 provider = new MD5CryptoServiceProvider(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// PHBottomViewController.swift | |
// payHereSDK | |
// | |
// Created by Kamal Upasena on 12/17/19. | |
// Copyright © 2019 PayHere. All rights reserved. | |
// | |
import UIKit | |
import Alamofire |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// PHBottomViewController.swift | |
// payHereSDK | |
// | |
// Created by Kamal Upasena on 12/17/19. | |
// Copyright © 2019 PayHere. All rights reserved. | |
// | |
import UIKit | |
import Alamofire |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Fixed identifiers for the Fields | |
*/ | |
enum FieldID{ | |
case unknown | |
case country | |
case registration | |
case condition | |
case quantity | |
case year |