The amount displayed in the payment list is reduced by 1/100
-
Hello,
Thank you for the continued support with Simple Membership.
I am using Stripe to make subscription payments in Japanese yen, but the amount in the payment list shows a value of 1/100 after the second payment.
The first time ( Status is “subscription created” ) is the correct amount.The Stripe payment is being made with the correct amount, but the DB is storing the 1/100 value.
I checked and it seems that in line 88 of swpm-stripe-subscription-ipn.php, when the currency code is retrieved, it is not converted to upper case, so the amount is treated as cents.
I added$currency_code = strtoupper( $currency_code );
to make it capitalized and it now displays correctly.I don’t know if this fix has any other impact, but could you please fix this problem in a future update?
Best regards
- You must be logged in to reply to this topic.