Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter tugbucket

    (@tugbucket)

    the issue is in the rpress_stripe_get_payment_description()

    in your loop you have: $purchase_summary .= $item['name']; and some items have names of 50~ characters so a user adding 20 items like this will break the limit.

    So you should be able to simply do a
    $purchase_summary = substr($purchase_summary, 0, 100) . '...';

    to just shorten the description.

    Plugin Contributor Kshirod Patel

    (@kshirod-patel)

    Hello,

    Thanks for the suggestion and we really appreciate your help. We are looking into it and will release an update on this soon.

    Thread Starter tugbucket

    (@tugbucket)

    the above substr of course works fine but now seeing that this Stripe “description” is what shows up in a Credit Card statement, I could see having a new option allowing the user fill in that area in the admin as a better solution.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Stripe description character limit error’ is closed to new replies.