eventsmanager

Add sepa to stripe

Sep 2nd, 2024 (edited)
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <?php
  2.  
  3. function my_em_stripe_payment($stripe_checkout,$EM_Booking){
  4. $stripe_checkout['payment_method_types'] = ['card', 'sepa_debit','sofort','us_bank_account'];
  5.  
  6. $stripe_checkout['invoice_creation'] = [
  7. 'enabled' => true,
  8. 'invoice_data' => [
  9. 'footer' => 'Thank you for your business!',
  10. 'metadata' => [
  11. 'booking_id' => $EM_Booking->booking_id,
  12. ],
  13. ]
  14. ];
  15.  
  16. $stripe_checkout['customer_email'] = $EM_Booking->get_event()->get_contact()->user_email;
  17.  
  18. return $stripe_checkout;
  19. }
  20. add_filter('em_gateway_stripe_checkout_session_vars', 'my_em_stripe_payment', 100,2);
Advertisement
Add Comment
Please, Sign In to add comment