Actions :

  • ‘direct_stripe_before_button’ => Triggered before each button
  • ‘direct_stripe_after_form’ => triggered after each button
  • direct_stripe_before_success_redirection‘ => Triggered after a successful transaction
    1.$chargeID, 2.$post_id, 3.$button_id, 4.$user_id
  • ‘direct_stripe_before_error_redirection’ => Triggered after a transaction fails
    1.$chargeID, 2.$post_id, 3.$button_id, 4.$user_id

 

Filters :

  • ‘direct_stripe_donation_input’ => Edit donation input
     1.$html => <input type="number" name="donationvalue" id="donationvalue" />
  • ‘direct_stripe_button_class’ => Edit button classes
    1.$classes
  • ‘direct_stripe_processing_transaction_spinner’ => Edit Ajax spinner
    1.$all the html, 2.$begin, 3.$end, 4.$text, 5.$dots
  • ‘direct_stripe_success_user_email_subject’
    1.$token, 2.$amount, 3.$currency, 4.$email_address, 5.$description, 6.$user_id, 7.$button_id
  • ‘direct_stripe_success_admin_email_subject’
    1.$token, 2.$amount, 3.$currency, 4.$email_address, 5.$description, 6.$user_id, 7.$button_id
  • ‘direct_stripe_error_user_email_subject’
    1.$token, 2.$amount, 3.$currency, 4.$email_address, 5.$description, 6.$user_id, 7.$button_id
  • ‘direct_stripe_error_admin_email_subject’
    1.$token, 2.$amount, 3.$currency, 4.$email_address, 5.$description, 6.$user_id, 7.$button_id
  • ‘direct_stripe_success_user_email_content’
    1.$token, 2.$amount, 3.$currency, 4.$email_address, 5.$description, 6.$user_id, 7.$button_id
  • ‘direct_stripe_success_admin_email_content’
    1.$token, 2.$amount, 3.$currency, 4.$email_address, 5.$description, 6.$user_id, 7.$button_id
  • ‘direct_stripe_error_user_email_content’
    1.$token, 2.$amount, 3.$currency, 4.$email_address, 5.$description, 6.$user_id, 7.$button_id
  • ‘direct_stripe_error_admin_email_content’
    1.$token, 2.$amount, 3.$currency, 4.$email_address, 5.$description, 6.$user_id, 7.$button_id
  • ‘direct_stripe_donation_amount’
    1.$amount

4 commentaires pour “Direct Stripe Actions and Filters hooks

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *