Support

Home Forums Event Espresso Premium Stripe Gateway – Transaction Details

Stripe Gateway – Transaction Details

Posted: February 23, 2016 at 11:48 am

Viewing 5 reply threads


furnituresociety

February 23, 2016 at 11:48 am

Hello – As far as I can tell, when a payment is sent to Stripe through the Stripe Gateway add-on the only identifying information is the user’s email address (username) and the total amount of the transaction.

Is it possible to include more detail about the transaction? Our treasurer would like to know what was purchased in order to keep the books clear, but that information does not appear to exist within Stripe.

It seems like there is a place to send this information to Stripe – in the ‘description’ field for instance, and something as simple as a list of ticket names or event/ticket names would be great.

Is this information available someplace?

I am using EE4 Version 4.8.34.p & EE Stripe Gateway Version 1.0.12.p on WordPress 4.4.2

Thank you,

Bart


Tony

  • Support Staff

February 23, 2016 at 12:11 pm

Hi Bart,

Event Espresso sends over the event name for the event the user is registering onto within the description field is that now shown on your payment within Stripe?

Are you using the Multi Event Registration Add-on and registering onto multiple events?

As far as I can tell, when a payment is sent to Stripe through the Stripe Gateway add-on the only identifying information is the user’s email address (username) and the total amount of the transaction.

Do you mean within Stripe or EE?


furnituresociety

February 23, 2016 at 12:43 pm

Hello – Thank you for getting back to me,

I see now that the event name is in the description field in Stripe. Unfortunately a) we are using the multiple event registration, and b) the event name does not identify the ticket.

When someone registers for 2 events, only 1 is listed in the Description.

We have 6 events, each with several tickets. All tickets come in three ‘flavors’ – Public, Member and Student.

Someone just bought a Member Pass to Event A for $425, a Member Ticket for Tour B for $100 and an Member Extra Meal Ticket (Event C) for $25 – the total is $550.

While the Member Pass for Event A is unique in price, the Extra Meal Ticket for Event C is not. There is another Special Event Ticket for Event C which is the same price as the Extra Meal Ticket.

When I look at the Payment in Stripe, I see a payment for $550 with a description of “Event A”.

If instead the description was:
“Member Pass (Event A): $425; Member Ticket (Event B): $100; Member Extra Meal Ticket (Event C): $25”
I would have everything I needed.

Does that help clarify the issue?

Bart

PS – All this being said, I appreciate how complete the EE admin interface within WordPress is. We can get the answer, it is just a pain to have to reconcile Stripe and EE/Wordpress by hand, and it seems unnecessary.


furnituresociety

February 24, 2016 at 10:39 am

Hi there – I went ahead and added a filter on the payment description in the Stripe gateway. This allows me to put whatever I want in the description.

I am including the patch in the hope that you might include it in the next release so that I do not have to worry about re-patching my installation. And because I think others might find it useful. Of course, you might have other ideas. But it is short and does not hurt anything.


--- original/eea-stripe-gateway/payment_methods/Stripe_Onsite/EE_PMT_Stripe_Onsite.pm.php 2015-10-21 17:14:47.000000000 -0400
+++ altered/eea-stripe-gateway/payment_methods/Stripe_Onsite/EE_PMT_Stripe_Onsite.pm.php 2016-02-24 12:33:35.707790381 -0500
@@ -89,10 +89,12 @@
*/
public function generate_new_billing_form( EE_Transaction $transaction = NULL, $extra_args = array() ) {
EE_Registry::instance()->load_helper( 'Money' );
- $event = '';
+ $description = '';
$email = '';
if ( $transaction->primary_registration() instanceof EE_Registration ) {
- $event = $transaction->primary_registration()->event_name();
+ $description = apply_filters( 'FHEE__EE_PMT_Stripe_Onsite__generate_new_billing_form__description',
+ $transaction->primary_registration()->event_name(),
+ $transaction );
if ( $transaction->primary_registration()->attendee() instanceof EE_Attendee ) {
$email = $transaction->primary_registration()->attendee()->email();
}
@@ -143,7 +145,7 @@
array(
'html_id' => 'ee-stripe-prod-description',
'html_name' => 'stripeProdDescription',
- 'default' => $event
+ 'default' => $description
)
)
)


Tony

  • Support Staff

February 24, 2016 at 12:55 pm

I’ve created a ticket requesting a filter is included within the Stripe gateway (very similar to yours, same filter name just done a little differently)

However this has also sparked an internal discussion on improving the way we handle payment method descriptions (and data in general) so depending on how that goes this may not be included in favor of that.

We’ll keep this thread updated with any news.


furnituresociety

February 24, 2016 at 4:56 pm

Great thank you – after I did the filter, I discovered the metadata fields on Stripe Charge objects. Exposing those would be fantastic!

Thanks again, I look forward to seeing what you come up with.

Bart

Viewing 5 reply threads

The support post ‘Stripe Gateway – Transaction Details’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso