💰
elementor pay addons
  • 👋Welcome to Elementor Pay Addons
  • Getting started
    • âš ī¸Prerequisites
    • đŸ’ģInstallation
    • âš™ī¸Settings
    • â„šī¸Webhook Configuration
  • Elements
    • 🛴Checkout Button
    • ✅Confirmation Summary
    • 🚲Price Table Checkout
    • đŸī¸Checkout Credit Card Form (Pro)
    • đŸŽī¸Checkout Element Form (Pro)
    • 🚀Checkout Redirect Form (Pro)
  • FEATURES
    • Email Configuration
    • Decimal Form Field (Pro)
  • Customize confirmation page (Pro)
  • Developer APIs
  • Dynamic Tag PHP
  • Dynamic field by request parameter
Powered by GitBook
On this page
  • WordPress Filters
  • Access Stripe Instance in front-end JS

Developer APIs

Leverage our built-in APIs or WordPress filters for some advanced usages

WordPress Filters

apply_filters( 'elementor_pay_addons/forms/record/actions_before', $record, $this )

apply_filters('elementor_pay_addons/api/checkout_session_args', $session);

apply_filters( 'elementor_pay_addons/webhook/event', $event);

apply_filters( 'elementor_pay_addons/form/create_customer', $customer_params );

apply_filters( 'elementor_pay_addons/form/create_payment_intent', $payment_intent );

apply_filters('elementor_pay_addons/form/create_subscription', $subscription_params);

apply_filters( 'elementor_pay_addons/form/create_checkout_session', $checkout_session );

apply_filters('elementor_pay_addons/email/format_string', str_replace($find, $replace, $string), $this);

apply_filters('elementor_pay_addons/email/headers', $header, $this->id, $this->object, $this);

apply_filters('elementor_pay_addons/email/from_name', get_option('epa_email_sender_from_name'), $this, $from_name);

Access Stripe Instance in front-end JS

Make sure to fetch the form handlers after DOM is ready.

jQuery('.elementor-widget-form')[0].epaFormHandler.stripeElement.getElement('payment')
jQuery('.elementor-widget-form')[0].epaFormHandler.stripeElement.getElement('card')

Then we can execute the Stripe native method such as update in the front end.

jQuery('.elementor-widget-form')[0].epaFormHandler.stripeElement.update({ amount: total });

PreviousCustomize confirmation page (Pro)NextDynamic Tag PHP

Last updated 2 months ago

Let's say you want to get Stripe in :

Let's say you want to get Stripe in :

payment element
Checkout Element Form
card element
Checkout Credit Card Form