Hi,
Free trials no longer work when checking out with StripeSubscriptions (only payment processor we are using so can't say if they work with other processors). They worked smoothly with the older version but since updating we get the below error after entering card details and continuing to make payment. We rolled back to 5.6.10 in our test site and it worked perfectly again so issue is occuring from the upgrade.
Hi,
We have sorted out a fix and thought we would share as below:
Stripe was saying that the error was caused from the total_tax_percent so we have done the below. This was updated in the Stripe Subscriptions plugin but only became an issue when updating to 5.7.2 so unsure how they integrate with each other.
Original code:
if (!empty($totalTaxPercentage)) {
$subscriptionParams["tax_percent"] = number_format($totalTaxPercentage, 4);
$subscriptionParams["metadata"] = $taxMetadata;
$subscriptionParams["metadata"]["total_tax_percent"] = number_format($totalTaxPercentage, 4);
Updated code (we just changed the tax percent to our countrys default tax which is 10%):
if (!empty($totalTaxPercentage)) {
$subscriptionParams["tax_percent"] = 10.00;
$subscriptionParams["metadata"] = $taxMetadata;
$subscriptionParams["metadata"]["total_tax_percent"] = 10.00;
Regards,
Anthony
Is this correct?