Skip to content

Tag: php

WHMCS payment gateway: recurring but not credit card

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…

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…

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 …