eventsmanager icon

Adding Stripe invoice API param

eventsmanager | PRO | 08/01/26 12:59:46 PM UTC | 1 ⭐ | 17278 👁️ | Never ⏰ | []
text |

700 B

|

None

|

1 👍

/

0 👎

<?php
 /*
 * Not yet fully tested
 */
function my_em_stripe_payment($stripe_checkout,$EM_Booking){
 $stripe_checkout['payment_method_types'] = ['card', 'sepa_debit','sofort','us_bank_account'];
  $stripe_checkout['invoice_creation'] = [
										'enabled' => true, 
										'invoice_data' => [
															'footer' => 'Thank you for your business!',
															'metadata' => [
																'booking_id' => $EM_Booking->booking_id,
															],
														]
										];
  $stripe_checkout['customer_email'] = $EM_Booking->get_event()->get_contact()->user_email;
  return $stripe_checkout;
}
add_filter('em_gateway_stripe_checkout_session_vars', 'my_em_stripe_payment', 100,2);

Comments

  • polliocre icon
    08/09/26 04:14:36 PM UTC
    text |

    0 B

    |

    0 👍

    /

    0 👎

    Anyone tried this arbitrage trick? I just ran it and it went through and I'm already up a few hundred.
     Check the method here: pastebin.com/MuP7BqCy
     DM me if you need help