Title: variable type for @total in class-start.php?
Last modified: May 24, 2018

---

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

 *  Resolved [simonpresp](https://wordpress.org/support/users/simonpresp/)
 * (@simonpresp)
 * [8 years ago](https://wordpress.org/support/topic/variable-type-for-total-in-class-start-php/)
 * 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.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fvariable-type-for-total-in-class-start-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Nick van Wobbie](https://wordpress.org/support/users/ndijkstra/)
 * (@ndijkstra)
 * [8 years ago](https://wordpress.org/support/topic/variable-type-for-total-in-class-start-php/#post-10346592)
 * Hi,
 * If you still need help, please send an email to: info[at]wobbie.nl

Viewing 1 replies (of 1 total)

The topic ‘variable type for @total in class-start.php?’ is closed to new replies.

 * ![](https://ps.w.org/mollie-forms/assets/icon-256x256.png?rev=3502800)
 * [Mollie Forms](https://wordpress.org/plugins/mollie-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mollie-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mollie-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/mollie-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mollie-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mollie-forms/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Nick van Wobbie](https://wordpress.org/support/users/ndijkstra/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/variable-type-for-total-in-class-start-php/#post-10346592)
 * Status: resolved