Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

variable type for @total in class-start.php?

$
0
0

Replies: 0

I have made a little addition to class-start.php:

$total1 = strval(floatval($total)+15);
// Recurring payment, subscription
$payment = $this->mollie->payments->create(array(
‘amount’ => $total1,

this was in previous versions
now the code has changed with the currency option
I now have:

$total1 = strval(floatval($total)+15);
// Recurring payment, subscription
$payment = $this->mollie->payments->create(array(
‘amount’ => array(
‘currency’ => $currency,
‘value’ => (string) $total1
),

but now i see (string) in the code, I don’t know wat that means
is the variable $total still a string like before? Otherwise my code will not work. Can you please tell me if this variable is still a string?

This little piece of code adds 15 euros to the first paymanet. The later payments are without these 15 euros.

I see more demands for an extra amount in the first payment. Perhaps in this way you can program it in the plugin. This should not be very difficult.


Viewing all articles
Browse latest Browse all 59525

Trending Articles