Stripe Session Vars
  1. function my_em_stripe_payment($stripe_checkout,$EM_Booking){
  2. $stripe_checkout['payment_method_types'] = ['card', 'sepa_debit','sofort','us_bank_account'];
  3.  
  4. $stripe_checkout['invoice_creation'] = [
  5. 'enabled' => true,
  6. 'invoice_data' => [
  7. 'footer' => 'Thank you for your business!',
  8. 'metadata' => [
  9. 'booking_id' => $EM_Booking->booking_id,
  10. ],
  11. ]
  12. ];
  13.  
  14. $stripe_checkout['customer_email'] = $EM_Booking->get_event()->get_contact()->user_email;
  15.  
  16. return $stripe_checkout;
  17. }
  18. add_filter('em_gateway_stripe_checkout_session_vars', 'my_em_stripe_payment', 100,2);
Pasted 2026-09-09 12:41:12

Short link: