• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Add Form Title to Stripe Description

Add Form Title to Stripe Description 1 month 3 weeks ago #43290

  • huwhuw
  • huwhuw's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 1
Anyone using a stripe payment for their form may notice the description column in the Stripe dashboard is blank.
You can add this script to Form Properties > php Scripts > Script called after form has been processed.
This will put the title of the form into stripe desc.

$db = Joomla\CMS\Factory::getContainer()->get('DatabaseDriver');
$db->setQuery("SELECT FormTitle FROM #__rsform_forms WHERE FormId=" . (int) $formId . " LIMIT 1");
$result = $db->loadResult();
 
$stripe = RSFormProStripe::getInstance();
$stripe->args['payment_intent_data'] = array('description' => $result);

hope you find it useful.
The administrator has disabled public write access.
The following user(s) said Thank You: gregs
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!