I’m working on a custom WHMCS payment gateway module for the Mollie payment gateway. So far I integrated one-off payments with no issue, but I’m having some trouble implementing recurring payments. The flow for either a subscription or authorization to charge the customer on-demand differs slightl…
Tag: php
Missing JSON_PRESERVE_ZERO_FRACTION in php 5.6.8
I’m using php 5.6.8 on ubuntu 12.04, trying to json_encode($arr, JSON_PRESERVE_ZERO_FRACTION) but JSON_PRESERVE_ZERO_FRACTION is undefined. I thought maybe it was introduced in php-json 1.3.7+, so i tried to sudo apt-get install –only-upgrade php5-json, it tells me i have the newest version of php…
Add an icon to custom WooCommerce payment gateway
I would like to add a custom icon to my payment gateway. I have read the WOO gateway API and have zero help. This is my code below. please help me find a functional way to include the icon so I have …
Woocommerce – Getting the order item price and quantity.
Using Woocommerce 2.6.8 , I can’t get the Order Item Data information as described in the docs and here on SO. All I want is to get the Line Item price and Quantity, which should be as simple as: Looking closer at what gets returned returned This is all using documented Woocommerce methods, why is the i…
Doctrine Extensions Sortable not working correctly when changing position by more than 1
Im using Symfony 3.1 + Doctrine GEDMO extensions (via StofDoctrineExtensionsBundle). I’ve set my entity to have Sortable behavior: When i proceed to change position by one the sorting behavior is acting OK: But when I’ve implemented JS drag&drop to change positions the whole thing gets weird. …
php changed database date value
review this piece of code: $values = $mysqli->query(“select * from `my_table`”); while($value = $values->fetch_array()) { print_array($value); } however one column having a date structure …
Uncaught Error: Call to undefined function mysql_select_db()
I’m trying to fetch data from the database using Xamp Server but am getting this error. Fatal error: Uncaught Error: Call to undefined function mysql_select_db() in E:xamphtdocsPoliceAppNews…
League Scheduling without RoundRobin
currently I am actually looking for a term specific for my problem: I’ve created a league of >4 Teams The League lasts 3 Rounds (Numbers for the sake of simplicity) Matchups shall be assigned randomly out of Teams a Team has not yet played against. I am struggling to get my current code running with …
How to add private github repository as Composer dependency
I have the following in my Laravel 5.1 projects composer.json to add a public github repository as a dependency. … “repositories”: [ { “type”: “package”, “package”: { “name”: “…
WordPress: Check if plugin is installed (ACF)
I want to prevent fatal error in my theme if the ACF plugin is deactivated or not installed. The main function of the plugin is get_field(). I wrote this code in my functions.php to check: if ( !…