• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Stripe Plugins

Stripe payment plugins for your WordPress site

  • Home
  • Documentation
  • Addons
  • Login
    • Sign In
    • Edit Profile
    • My Downloads
  • Support
    • Support Forum
    • Forum Search
    • Forum Login
    • Forum Registration
  • Contact Us
  • Show Search
Hide Search
You are here: Home / Replies /

Reply To: asp_stripe_payment_completed hook for individual products

· ·

Home › Forums › Stripe Payments Plugin › asp_stripe_payment_completed hook for individual products › Reply To: asp_stripe_payment_completed hook for individual products

October 19, 2018 at 6:14 pm #1594

Benjamin
Participant

Just thought I would put this here for anyone else who needs a solution like this:

Inside your function (that hooks to the asp_stripe_payment_completed hook) you can use the conditional tag:

if ($post_data['item_name'] == 'NAME HERE'){ //do this }

where the NAME HERE matches the name='NAME HERE' parameter in the [accept_stript_payment] shortcode.

This can be useful for all those “non-product” based stripe buttons you may need to create dynamically.

Primary Sidebar

Search

Featured Addons and Extensions

  • Subscription Payments Addon
  • Additional Custom Fields
  • Secure Downloads Addon
  • Apple Pay and Google Pay

Addon Bundle

Stripe Payments Addon Bundle

Support Links

  • Support Forum
  • Forum Registration

Copyright © 2021 | Stripe Plugins | A member of the Tips and Tricks HQ family.