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

Payments Plugin for Stripe

Stripe payment plugins for your WordPress site

  • Home
  • Documentation
  • Addons
  • Login
    • Sign In
    • Edit Profile
    • Terms & Conditions
    • My Downloads
    • License Key
  • Support
    • Support Forum
    • Forum Search
    • Forum Login
    • Forum Registration
    • Email Support for Customers
  • Contact Us
  • Show Search
Hide Search
You are here: Home

Benjamin

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 19, 2018 at 6:14 pm in reply to: asp_stripe_payment_completed hook for individual products #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.

    October 18, 2018 at 8:42 pm in reply to: PDF's not opening. #1582
    Benjamin
    Participant

    Can you update your site’s .htaccess file?

    <FilesMatch "\.(?i:pdf)$">
        ForceType application/octet-stream
        Header set Content-Disposition attachment
    </FilesMatch>

    (Or something like that)

    October 18, 2018 at 8:03 pm in reply to: asp_stripe_payment_completed hook for individual products #1581
    Benjamin
    Participant

    And one additional question, does the asp_stripe_payment_completed hook fire after only a “product” is transacted successfully or does it also fire after a custom shortcode [accept_stripe_payment] is successfully transacted?

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)

Primary Sidebar

Featured Addons and Extensions

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

Addon Bundle

Stripe Payments Addon Bundle

A Simple & Lightweight Plugin

Our Philosophy with the Plugin

Support Links

  • Support Forum
  • Support Contact

Search

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